get_attached_rail / get_attached_rail_signal

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Fahrradkette
Inserter
Inserter
Posts: 45
Joined: Thu Aug 27, 2015 4:37 pm
Contact:

get_attached_rail / get_attached_rail_signal

Post by Fahrradkette »

I'd like to get the attached rail track entity from a rail signal entity and vice versa.

The goal is to have a mod helping to place signals in specific intervals (so a i.e. 6 long train fits exactly in between two signals)
What I have in mind is something similar to the "ctrl + drag"-placing signals from openttd.
Also useful would be a way to delete the signals up to the next junction or the end of the track.


At the moment it's not possible to figure out all the placements of signals because some signal spots could be attached to two different tracks, like on a curve piece merging into a straight line.

Thanks for the consideration :)
Post Reply

Return to “Modding interface requests”