Traincraft-5 icon indicating copy to clipboard operation
Traincraft-5 copied to clipboard

train position after server restart

Open quentfr21 opened this issue 7 years ago • 7 comments

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)

quentfr21 avatar Sep 12 '17 00:09 quentfr21

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...

EternalBlueFlame avatar Sep 18 '17 02:09 EternalBlueFlame

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

quentfr21 avatar Sep 18 '17 19:09 quentfr21

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

NitroxydeX avatar Sep 18 '17 19:09 NitroxydeX

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

EternalBlueFlame avatar Sep 18 '17 20:09 EternalBlueFlame

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

quentfr21 avatar Sep 22 '17 20:09 quentfr21

yeah, i already made a reply on it

EternalBlueFlame avatar Sep 22 '17 20:09 EternalBlueFlame

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

traso56 avatar Mar 11 '18 21:03 traso56