The International Simutrans Forum

 

Author Topic: -announce <number> command line parameter for server startup  (Read 1671 times)

0 Members and 1 Guest are viewing this topic.

Offline Ashley

  • Coder/Patcher
  • Devotees (Inactive)
  • *
  • Posts: 1288
    • entropy.me.uk
-announce <number> command line parameter for server startup
« 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.

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.

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: -announce <number> command line parameter for server startup
« Reply #1 on: January 16, 2011, 11:36:27 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

Offline Ashley

  • Coder/Patcher
  • Devotees (Inactive)
  • *
  • Posts: 1288
    • entropy.me.uk
Re: -announce <number> command line parameter for server startup
« Reply #2 on: January 16, 2011, 04:22:18 PM »
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".
« Last Edit: January 17, 2011, 12:32:16 AM by Timothy »