Author
Topic: How to set up a server (old) (Read 14664 times)

If you want to set up a server, you need a connection with a decent upload, as a savegame transfer easily takes 1MB. Therefore at least 10MBit/s is recommended.

Technically you need to make sure that port the server uses is open and forwarded to your computer (in case you have to connect via a router/ADSL/cable modem). The default port is 13353, but you can specify any other port, when starting the server.

When starting a decicated server on a remote machine, it is advised to compile it for yourself, using the posix backend. It will run without graphics, but will require much less CPU time, so it can even run decently on a virtual server.

There are some options in the simuconf.tab, which can/should be set for a server.

When selecting a pakset, you should either use a "standard" set or give a download for the entire modified pak. Please, remember that pak sets nightlies are updated every sunday night.

When creating a game, you can do as you like. Hoever, the time to download/save/load a game is somewhat ciritcal, as it will happen quite often. Therefore you might consider to create a map without trees and just distribute trees/forest manually.

If industry growth is enabled, but you still want some control about the locations of primary industries (coal mines, forest, ... ) you can place them also beforehand. When new undustries appear, they will try to connect to those first.

You should change the name of the public player to spectator and lock this player. All other stuff is with you.

When starting the server, I use "simutrans -log 1 -debug 2 -server 13353 -lang en -load network1"After a crash, you can restart the last state when the last client joined with "simutrans -log 1 -debug 2 -server 13353 -lang en". In such a case it will load the fiel "server-network.sve" from the user directory.

(The option "-lang en" is only needed on the dedicated server, as I cannot change the language manually there.)

Virtual server tend to be really slow during maps downloads or so was rumored in the german forum. However during play not much problems (since simutrans loads the CPU not very uniform, and spikes are served using other virtual servers CPU time.) But you will need at least 256 MB (or 512 MB for larger paks) garanteed main memory.