Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

train position after server restart #320

Open
quentfr21 opened this issue Sep 12, 2017 · 7 comments
Open

train position after server restart #320

quentfr21 opened this issue Sep 12, 2017 · 7 comments

Comments

@quentfr21
Copy link

quentfr21 commented Sep 12, 2017

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)

@EternalBlueFlame
Copy link
Owner

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

@quentfr21
Copy link
Author

quentfr21 commented Sep 18, 2017

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

@NitroxydeX
Copy link
Collaborator

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

@EternalBlueFlame
Copy link
Owner

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

@quentfr21
Copy link
Author

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

@EternalBlueFlame
Copy link
Owner

yeah, i already made a reply on it

@traso56
Copy link

traso56 commented Mar 11, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants