Auto Track Laying


Automatically lay track ghosts when walking or driving over them.

Content
21 hours ago
1.0 - 2.0
6.42K
Trains

g Non-recoverable error.

a day ago

I got an error with "auto-track-laying/control.lua:105: in function 'try revive entity'
"auto-track-laying/control.lua:249: in function
<auto-track-laying/control.lua:220>"
It happened as I pasted a rail blueprint, with a support in the location I was standing. And I think it might be because one of my construction bots placed the support and made me fly with a mech armor. Just a guess.

a day ago

Are you using the latest version? (Released 4 days ago)

If you are, could you share your save game and the blueprint you were using? Then I can see if I can reproduce and debug.

Thank you for the report!

a day ago

It is the latest version. Doesn't even have to be a specific blueprint it seems. I have found a way to make it happen consistently every time I try it with Editor Extension's testing lab. Here are the steps I used:

Started a new editor extensions map.
Once loaded in, marked all the spawned editor extension stuff for deconstruction and had them deconstructed without moving.
Disabled the personal roboport.
Picked up a full stack of rail supports and rails
Placed a rail support ghost about 10-20 tiles North, facing east/west.
Placed Ghost Rails from the rail support directly west in a straight line as far as possible.
Cancel placement, and walk straight north towards the first rail support, and the error will pop up.

For some reason, it required me to have rails and rail supports in my inventory, and it didn't cause the error if I placed ghost rail to spawn only one more rail support ghost. In needed 2 more, so 3 in total for it to cause an error this way. It has caused errors a few other ways too while messing about. And it is clearly related to rail supports somehow.

22 hours ago

I was unable to reproduce. Could you share a savegame with the setup you described?
I don't think you can upload a savegame here, but you can on github, so either create an issue here: https://github.com/TheOddler/factorio-auto-track-laying/issues or you can upload anywhere you like.

21 hours ago

Oh! I just randomly placed some rail support ghosts and ran around, and got an error too! Not sure yet how to consistently reproduce, but looks like just randomly placing some also works.

21 hours ago

Looks like it happens when: * You are standing where a rail support ghost exists (so it cannot be placed because you're in the way) * You can move around a bit (without leaving the rail support ghost) and that places a different rail support * You can move out of the rail support you were blocking

21 hours ago

I just released a new version that fixed it! Or at least fixes the bug I was able to reproduce. Let me know if this worked for you too.

Again thank you for the report! :D

5 hours ago

Yay. I disabled the mod to avoid getting the error and having to redo stuff. Gonna enable it again. :p

New response