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?
Commandline switches
Moderator: NADEO
Re: Commandline switches
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
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
Re: Commandline switches
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.
I can also report that if you specify ports with /bindip and /forceip it gets ignored.
-
- Nadeo
- Posts: 585
- Joined: 14 Jun 2010, 16:15
- Manialink: maniahome
- Location: In front of your hood with one lap late
Re: Commandline switches
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
Re: Commandline switches
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?
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?
-
- Nadeo
- Posts: 585
- Joined: 14 Jun 2010, 16:15
- Manialink: maniahome
- Location: In front of your hood with one lap late
Re: Commandline switches
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
It's the same for XML-RPC port and p2p port

Also known as: satanasdiabolo
Re: Commandline switches
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.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest