Auto Track Laying


Automatically lay track ghosts when walking or driving over them.

Content
3 years ago
1.0 - 1.1
6.25K
Trains

i Go by type?

3 years ago

Rather than go by entity name, wouldn't it work better to go by entity type?

3 years ago

That does sound like a better idea. I didn't know that's possible. Do you have a link to some documentation about this?

Thanks!

3 years ago

https://lua-api.factorio.com/latest/LuaItemStack.html#LuaItemStack.prototype

You can probably iterate all item prototypes on_configuration_changed, and record all of the rail type item names?

3 years ago

Interesting, I'll look into it. Thanks!

3 years ago

Also do it on_init, for first boot.

3 years ago

I just updated the code so it now goes by type. Thanks for the suggestion!

New response