News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Starting servers with script

Started by prissi, July 09, 2020, 04:22:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prissi

No servers with scripts:
I think this is because nobody knows how to set up a server with scripts as intended. Even I am not sure how to do this on the commandline.

Dwachs

To get server running with script: Create map, create a scenario, load map and scenario, save the game, then start the server with this savegame
Parsley, sage, rosemary, and maggikraut.

prissi

Step 2 "create a scenario" is still unclear to me. Do you mean loading one of the scripts?

I think there is more need for some end user .documentation.

Assuming someone, who is not a programmar but wants to host a simutrans server, wants to use the region script with an existing map. What would he/she/it needs to do exactly?

Dwachs

1) Create the map (without server)
2) Choose a scenario, e.g., https://forum.simutrans.com/index.php/topic,17927.0.html  It will now use the currently running game.
3) Save the game.
4) Reload the map with starting a server. This should reload the savegame with the scenario script running.
Parsley, sage, rosemary, and maggikraut.