News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

[Online] Authorize script call

Started by Yona-TYT, August 25, 2017, 02:53:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT


Hi, how are you.

I am thinking of using the script  links "http://forum.simutrans.com/index.php?topic=17135.msg163121#msg163121" to improve the project of maps divided into regions.

The problem is that it can not be used in multiplayer mode, since there is no security measure that prevents an unauthorized player from using it.

Script -> regions-lite.zip


I hope that in the future it can culminate with this project, GREETINGS !!.  ;)


DrSuperGood

I do not know much about the internal working of the scripting engine. However from previous times it was requested the conclusion was that it would require non-trivial changes to the client/server system used so that players can be aware of other players and their authentication status with companies.

Dwachs

Player authentication can be done.

However, somebody has to check whether script calls send by clients are allowed to be executed. Otherwise, a maliciously modified client can send invalid scenario calls, and thus ruining the game.
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

@Dwachs

I can think of the following:  ;D

Use the toll signal window to authorize or not a player.



is it possible to know if the player is authorized to use the toll ?.