Traincraft

Traincraft

1M Downloads

trains bug out when restarting world

traso56 opened this issue ยท 7 comments

commented

before everytime i restarted the world the trains would just mess up and i had to fix them every world restart and it suddently fixed itself but it started to happen again after upgrading my GPU, what happened?
Alt Text

using 014

commented

but it used to work just fine and also the trains are locked meaning even if I remove all carts except for one you can't move it either and if you destroy the track underneath it then the world eats it forever

commented

yeah it's a dupe of 320, and several dozen other reports.

Nothing related to the systems has changed, it just randomly breaks, it's not related to the server's hardware, although shutting down without actually quitting or using the stop command can make it more likely to happen.
I only found out exactly why this happens recently, the main problem is instead of using the UUID system, TC has it's own ID system which isn't reliable, add that to a number of variables being written to NBT but not actually read which can randomly cause byte buffer read errors.
The latter is fixed in 015, but the core ID thing is still a problem that I can't really address without a rewrite, unless i make the related code 3 times as big to use the old system as a backup and implement a proper one, but even as a backup the old code will still be able to break it, so that's a lot of work for running around in circles.

commented

oh well that there seems like a really hard to fix bug but i'm sad because it used to work just fine :(

commented

hello

duplicate of issue #320 (know long standing bug with nbt)

commented

yeah, it's a pretty random bug, some people never get it, others get it on a regular basis.

I can't even tell you how hard of a time i have replicating it to even attempt to figure out what it was.
Didn't actually figure out what it was till i stumbled across the code that was rather obviously causing it.

commented

The issue with the port is testers have to be able to compile the mod themselves (this wont be an issue with the rewrite), but if you can do that, yeah, we can use all the hands on deck we can get, lol.

commented

if you need any testers just tell me i can help just tell me also a workaround is to detach trains to only 2 linked carts when you are going to restart, it helped me