Multiple game servers on one host
ScratchMonkey
ScratchMonkey at SewingWitch.com
Wed Dec 11 12:14:02 EST 2002
There's a bugzilla about the need to specify the server config file on the
command line, but I think the more general need is the ability to run
multiple servers on one host using a single copy of the binaries.
For instance, with Tribes 2, my binaries are in
/usr/local/games/tribes2-<version> (I have multiple versions installed and
can run servers simultaneously with different versions). The binaries are
owned by root to protect them from the mortal running the server. Each game
instance is run by a different mortal, and its settings are in
~/.loki/tribes2 for that mortal.
The T2 dedicated server uses files in the ~/.loki/tribes2 tree in
preference to those in the binary's tree, so one can easily override
behavior on an instance-by-instance basis by simply installing a
replacement file in an instance's tree.
To follow this model, BF1942 should use files in ~/.ea/bf1942 in preference
to those in /usr/local/games/bf1942. (I'm assuming that EA might produce
game servers other than BF1942 to run under Linux. ;) ) All per-instance
configuration should be in the ~/.ea/bf1942 tree.
Are the devs using SDL? (http://www.libsdl.org/) This has the benefit of
leveraging the prior work used in other games to make the BF1942 server
more stable. (The same reasoning for using glibc instead of writing one's
own printf.) SDL is cross-platform so can be used with both the Linux and
Windows servers to further reduce porting effort.
More information about the Bf1942
mailing list