orwell96 / advtrains

Minetest Mod: Advanced Trains
https://forum.minetest.net/viewtopic.php?f=11&t=14726
GNU Lesser General Public License v2.1
43 stars 13 forks source link

Rail track breaks after placing ATC controller #116

Open codexp opened 6 years ago

codexp commented 6 years ago

After placing an ATC controller when train is close (maybe 20 blocks), this makes that train go off-track even though everything seems to be connected just fine.

If you drive the train far enough and go back again, then it goes over that same (previously) broken track without any issues.

This is very annoying when you don't even know what you may do wrong at that time. So initially I thought re-placing simple tracks from both sides of the ACT controller would fix that. Sometimes it seemed to work, the other times just didn't work at all (even after replacing everything again).

It seems to be related to issue #113

orwell96 commented 6 years ago

There are bugs with the node db somehow. I noticed this bug myself. The bug only appears when you place the rail, leave the area and then, while it's unloaded, a train passes over. Once the block is loaded again, the rail gets correctly registered in the node database by the LBM.