Commandline switches

Moderator: NADEO

Post Reply
mdgrein
Posts: 8
Joined: 02 Jul 2012, 17:22

Commandline switches

Post 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?
User avatar
Xymph
Posts: 1399
Joined: 15 Jun 2010, 20:35
Contact:

Re: Commandline switches

Post by Xymph »

These are for TMF, but most apply to TM2C/MP too.
See here for more links.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
mdgrein
Posts: 8
Joined: 02 Jul 2012, 17:22

Re: Commandline switches

Post 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.
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: Commandline switches

Post 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 ;)
Also known as: satanasdiabolo
mdgrein
Posts: 8
Joined: 02 Jul 2012, 17:22

Re: Commandline switches

Post 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?
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: Commandline switches

Post 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:
Also known as: satanasdiabolo
mdgrein
Posts: 8
Joined: 02 Jul 2012, 17:22

Re: Commandline switches

Post by mdgrein »

Wonderful! :thumbsup:
_bb_mort
Posts: 100
Joined: 21 Aug 2011, 13:19

Re: Commandline switches

Post 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.
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest