The International Simutrans Forum

 

Author Topic: Starting servers with script  (Read 700 times)

0 Members and 1 Guest are viewing this topic.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 11097
  • Languages: De,EN,JP
Starting servers with script
« on: July 09, 2020, 04:22:31 AM »
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.
« Last Edit: July 09, 2020, 02:51:41 PM by prissi »

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4957
  • Languages: EN, DE, AT
Re: Starting servers with script
« Reply #1 on: July 09, 2020, 05:37:36 AM »
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

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 11097
  • Languages: De,EN,JP
Re: Starting servers with script
« Reply #2 on: July 09, 2020, 02:55:54 PM »
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?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4957
  • Languages: EN, DE, AT
Re: Starting servers with script
« Reply #3 on: July 09, 2020, 06:29:22 PM »
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.