The International Simutrans Forum

 

Author Topic: [online] Scenario to share regions in multiplayer.  (Read 3950 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1206
    • Simutrans-BLOG
  • Languages: ES
[online] Scenario to share regions in multiplayer.
« on: February 23, 2018, 10:59:00 PM »

Hello everyone, I have finished this beautiful script for the multiplayer mode (one of the few that exist).

I would like someone to try this on a server, since I do not have a PC of my own I'm afraid  :-[ .


Scenario --> region-lite-v2.2.zip
Note: use the last night (r8385)

This is an amendment to my previous code, so many of the functions are the same. (https://forum.simutrans.com/index.php?topic=15388.msg152149#msg152149)

Change the savegame or map:
You can use any savegame, as long as it is from pak64, you just have to put the name of "map.sve" and replace the one in the "region-lite" directory.


Configure regions:
The public service is the only one that can do this, through a text label, it is possible:
1- choose the number of regions on the map, the values ​​are "2,4,6,8 and 12".
2- select the climate of the borders (0-7)

Number of players:
all players, with exemption of 13 and "Human" can have their own region, as long as there is an available region.

Share region:
Using the "gate road", you can choose any player to share your region. If you stop sharing the region with a player, he can still remove objects, but only if they are his property.

Stations / stops:
Players can eliminate any station from any player, but only if it is within the limits of their region.

Public stations:
Players can eliminate any public service station but only if it is within the limits of their region.


« Last Edit: February 27, 2018, 09:54:10 PM by Yona-TYT »

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4595
  • Languages: EN, DE, AT
Re: [online] Scenario to share regions in multiplayer.
« Reply #1 on: February 24, 2018, 03:01:32 PM »
Nice idea!

You can set in the scenario script
Code: [Select]
map.file = "<attach>"
Then when loading the scenario, it is applied to the current running game. No need to copy sve files around ;)

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1206
    • Simutrans-BLOG
  • Languages: ES
Re: [online] Scenario to share regions in multiplayer.
« Reply #2 on: February 25, 2018, 10:36:59 PM »
Nice idea!

You can set in the scenario script
Code: [Select]
map.file = "<attach>"
Then when loading the scenario, it is applied to the current running game. No need to copy sve files around ;)
This is great, but is it possible to do this ?? ... it would be nice.

Ready, I changed this  ;D .

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1206
    • Simutrans-BLOG
  • Languages: ES
Re: [online] Scenario to share regions in multiplayer.
« Reply #3 on: February 27, 2018, 09:49:16 PM »
New version ready for testing  :D

Scenario:  region-lite-v2.2.zip

Changes:
A savegame file is no longer necessary, now the script uses the current game "map.file =" <attach> "".
A few adaptations to make it work in any pakser, as long as it has gate road.