Game Development Community

Server/Client Game Preferences

by Jeff Trier · in Torque Game Engine · 07/25/2003 (6:56 am) · 0 replies

Hi all,

What is the best way to add Game Preferences?

Basically I want to add switches that can toggle things like:
1) Hot-Seat Play
2) Game Time
3) Turn Length
4) Infinite Ammo
5) Maximum Units

etc...

I can think of various ways to implement these switches, but I was wondering which route would best suit this engines style (I want to make it generic for other games as well).

I was looking up some old Tribes 2 posts on other boards, and they seem to have stored the Options in a $Host::MaxPlayers sort of way.

Currently I am leaning toward just making a GameOptions.cs file and saving/referencing to/from that.

It seems that Torque currently saves everything to a gillian pref files(which I am not sure why yet), so I was wondering if I should just save these options there... However if I do, will I cause problems adding $Host::Option's among all of the $pref::server::option's?

Thanks guys,
-Jeff

About the author

Originally a Classical/Metal musician, I've always been attracted to anything involving computers, including: Networking, PC Building and Repair, software design and coding. I've been involved with game design and development for over 10 years.