Traincraft

Traincraft

1M Downloads

train position after server restart

quentfr21 opened this issue ยท 7 comments

commented

hello

before : http://mat.fr21.free.fr/report/before.png

after : http://mat.fr21.free.fr/report/after.png

all train are locked by a railcraft rail and are "running" (wait redstone signal to start only one)
all train pointing the South of the map

after the restart cart don't get their link or get bad position (fixed loco by using oneway rail (railcraft))

thanks in advance

edit: same type of result with the latest version (011)

commented

I have to note that i notcied new worlds i made are unaffected by this, they load just fine that may help but i'll do more testing

commented

It's a bug with the NBT data from what I know. 1.7.10 doesn't allow for as much data as older versions so some things tend to get lost in saving. it's rather random too, in some cases the data lost is harmless, although in other cases its like this.

Far as I know, short of reworking the data-structures of trains and rollingstock (and probably corrupting worlds by doing so), there is no fix short of the rewrite...

commented

yeah, those are already the methods i was referring too, unfortunately.

commented

hello

i make some try but i don(t get the requiered knowledge

but i found methods that may help

@OverRide
public void readFromNBT(NBTTagCompound data) {
super.readFromNBT(data);
}
@OverRide
public void writeToNBT(NBTTagCompound data) {
super.writeToNBT(data);
}
i hope this help or it's already this methods you told me

thanks again

commented

as he told you: it's a bug with NBT as it's not able to store ALL data we provide to NBT

commented

hello
i just push a nbt fixe if you can take a look
thanks in advance

commented

yeah, i already made a reply on it