Page 1 of 1

Commandline switches

Posted: 30 Jul 2012, 23:22
by mdgrein
Ello!

First off, perhaps this is posted in the wrong section but I can't post in "Board index > ShootMania Alpha/ BETA > Multiplayer > Dedicated server" for some reason unknown to me.

Move this if needed. Now, back to topic.
------

Finally I've reduced my workload and activated the beta.
Of course I want to restart my dedicated servers.

However. I find it quite annoying that I have to duplicate the entire dedicated_cfg for each server instance, it feels icky, hurts my programmer soul and send chills down my spine to have all that redundant data.

All I'm changing is:
masterserver_account -> login & password
server_options -> name & comment
system_config -> server_port & server_p2p_port
(Sometime down the road I'll proabably want to change the xmlrpc_port aswell but that's a later issue.)

Sure, if it's possible to change more stuff from commandline that would be great but this is the bare minimum for me and all i'm asking for.

I've been fiddling (guessing wildly) a bunch now but I can't seem to change the ports.

Is there a way to do this?

Re: Commandline switches

Posted: 31 Jul 2012, 06:46
by Xymph
These are for TMF, but most apply to TM2C/MP too.
See here for more links.

Re: Commandline switches

Posted: 31 Jul 2012, 09:33
by mdgrein
Darn, seems like I can't get rid of all the configfile duplicates.

I can also report that if you specify ports with /bindip and /forceip it gets ignored.

Re: Commandline switches

Posted: 31 Jul 2012, 10:41
by farfa
You don't have to change your server port and p2p port as the server change them automatically if they are used. So you can change everything in command line ;)

Re: Commandline switches

Posted: 31 Jul 2012, 13:05
by mdgrein
That's awsome!

How do I know what port it chooses?
I have my server(s) behind a hardware firewall and only open specific ports.
Is there a fixed range the server tries to use?

Re: Commandline switches

Posted: 31 Jul 2012, 13:11
by farfa
It's pretty simple, it increments of 1 after the default port, etc. So if you use 2350 as a game port, the second server will be on 2351, then 2352, etc.
It's the same for XML-RPC port and p2p port :thumbsup:

Re: Commandline switches

Posted: 31 Jul 2012, 16:37
by mdgrein
Wonderful! :thumbsup:

Re: Commandline switches

Posted: 01 Aug 2012, 02:24
by _bb_mort
Only problem with letting it auto-select the ports is if you use a server controller. How does it know which port "instance" it should connect to? I use FAST with different configs for different servers, if you let TM auto pick ports then the FAST controller won't know which TM server it is supposed to connect to.