The International Simutrans Forum

Community => Social & Contests => Scenarios and Challenges => Topic started by: Yona-TYT on February 23, 2018, 10:59:00 PM

Title: [online] Scenario to share regions in multiplayer.
Post by: Yona-TYT 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 (http://files.simutrans.com/index.php/s/JKYAQfh5TSaK9Cg)
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 (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.


(http://files.simutrans.com/index.php/apps/gallery/preview/1028?width=1300&height=1300&c=10e35dfe8e4ead1db9c8aa34b5361eb3&requesttoken=NUNz68YYTSD6NZE12%2BvlbwuE5tfKHH%2BHWmDIhu4mmx0%3D%3AeXsX34xwKGqjZ9dh6NvQB23zj%2BOmLQbRMyS%2B751E13A%3D)
Title: Re: [online] Scenario to share regions in multiplayer.
Post by: Dwachs 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 ;)
Title: Re: [online] Scenario to share regions in multiplayer.
Post by: Yona-TYT 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 .
Title: Re: [online] Scenario to share regions in multiplayer.
Post by: Yona-TYT on February 27, 2018, 09:49:16 PM
New version ready for testing  :D

Scenario:  region-lite-v2.2.zip (http://files.simutrans.com/index.php/s/JKYAQfh5TSaK9Cg)

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.

(http://files.simutrans.com/index.php/apps/gallery/preview/1037?width=1300&height=1300&c=4f6c03dda9aa9602be7c716935aaea20&requesttoken=a05jlDKdLxUlU%2BvNBnmVjJFvdT2q5BghO00a3yrvse8%3D%3AIyUP%2FUf%2BWENyN6KESyDe%2FcAJAW%2FylHxJSmJUlRPAiYw%3D)