News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

-announce <number> command line parameter for server startup

Started by Ashley, January 16, 2011, 10:31:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ashley

I've just found another thing that stands in the way of setting up multiple servers running off the same set of Simutrans game files. The "announce_server" setting in the config file determines the unique ID that is used to report server status to simutrans-germany.com's server list. Unfortunately since this is set in the config file all servers started off the same set of game files will end up with the same ID.

Could we have a command line parameter to set this on a per-instance basis? Something like:

-announce <number>

Also there needs to be a similar mechanism for specifying the server's name and comment, e.g.:

-servername <text>
-servercomment <text>


Alternatively maybe just a command line parameter -config <file location> which tells Simutrans where to read its configuration in from (this should override any and all automatic locations, though settings in paksets should override settings in this as usual). This would be the most flexible solution.

I feel this is something that would be really good to get into the next stable release, since it'd make running a set of Simutrans servers quite a bit more straightforward.
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

Frank

Quote from: Timothy on January 16, 2011, 10:31:56 AM
I've just found another thing that stands in the way of setting up multiple servers running off the same set of Simutrans game files. The "announce_server" setting in the config file determines the unique ID that is used to report server status to simutrans-germany.com's server list. Unfortunately since this is set in the config file all servers started off the same set of game files will end up with the same ID.
....

you can set the ID in /simutrans/[set]/config/simuconf.tab for different sets started

Ashley

That works where each server instance equates to a different pakset, but unfortunately doesn't help for multiple instances of the same pakset.


Edit:

Glad to see this has been implemented, thanks for the quick turnaround Prissi :)

Relevant changes:

Quote+If you want to announce your server, you need an ID from the serverlist
+of simutrans-germany.com. You can set this ID via simuconf.tab or
+commandline option "-server_id 12345678"

+Similary you can set serv name and commetns via -server_name "Testserver"
+and -server_comment "professionals".
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.