LuaTrain train_stop_point as coordinates

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

LuaTrain train_stop_point as coordinates

Post by ssilk »

For my mod it would be super useful to get the train_stop_point (can be seen in debug-mode) as coordinates as part of the LuaTrain.

Something similar would be useful for LuaEntity, if the entity is moving.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: LuaTrain train_stop_point as coordinates

Post by aubergine18 »

Is this of any use? viewtopic.php?p=201275#p201275
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: LuaTrain train_stop_point as coordinates

Post by ssilk »

No. :) But nice to see that.

The train_stop_point is in front of a train and with gaining speed it runs more and more in front of it. This is also the point, that switches a signal to yellow. :)

With full speed that point is eventually SOME chunks in front of the train. That is the reason, why I find that interesting for the RadarTracking, cause I cannot foresee the way a train runs through a number of rails. Currently I can just estimate it from direction and speed.

This point could be also quite useful for a mod, that warns a player to run onto rails...
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Post Reply

Return to “Modding interface requests”