The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Yona-TYT on March 09, 2020, 08:20:31 PM

Title: Get net id from the transformers
Post by: Yona-TYT on March 09, 2020, 08:20:31 PM


With this I can know if an electrical network is connected to a factory, simply comparing the id from the transformers until they are all the same, resulting in all the factories connected to the same network.  8)

(https://www.mediafire.com/convkey/8bf1/8qd8vckgvppdipa6g.jpg)
Title: Re: Get net id from the transformers
Post by: Dwachs on March 22, 2020, 11:42:51 AM
I added some functionality to check this with r8960:

http://dwachs.github.io/simutrans-sqapi-doc/changelog.html
Title: Re: Get net id from the transformers
Post by: Yona-TYT on March 23, 2020, 04:57:12 AM
This is great. :D

I will solve the problem with my script, thank you very much!.