The International Simutrans Forum

 

Author Topic: Get net id from the transformers  (Read 742 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1845
    • Simutrans-BLOG
  • Languages: ES
Get net id from the transformers
« 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)


Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4957
  • Languages: EN, DE, AT
Re: Get net id from the transformers
« Reply #1 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

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1845
    • Simutrans-BLOG
  • Languages: ES
Re: Get net id from the transformers
« Reply #2 on: March 23, 2020, 04:57:12 AM »
This is great. :D

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