Player data cleared after switching to 14w10b
Upon launching the server with the snapshot installed, players' data will be cleared (inventory, location, et al.)
I can't seem to manually recover the inventories by renaming the old <player>.dat to the new <UUID>.dat and placing it in the playerdata folder.
Dinnerbone confirmed:
https://twitter.com/Dinnerbone/status/441617949087264768
Environment
Windows 8 64-bit, Java 1.7.0_51
Linked Issues
is duplicated by24
Created Issue:
Player data cleared after switching to 14w10b
Upon launching the server with the snapshot installed, players' data will be cleared (inventory, location, et al.)
I can't seem to manually recover the inventories by renaming the old <player>.dat to the new <UUID>.dat and placing it in the playerdata folder.Dinnerbone confirmed:
https://twitter.com/Dinnerbone/status/441617949087264768Environment
Windows 8 64-bit, Java 1.7.0_51
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
Yep, same thing with my server, big code re-write so I can understand.
Oh, and horses now attack players :c (just kidding)
Duplicate of MC-50288 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Duplicate of MC-50288 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
I had a world running on 14w07a, and when I started the new 14w10b jar up, all my whitelists, op lists, etc. converted fine, but when I went to log on, I found myself at the world spawn point with a completely empty inventory, as well as zeroed out statistics.
Note: I did try to search for this before reporting. If this is a duplicate, it is likely because the original reporter worded it different than the few ways that I tried my search.
Edit: Found original report. I don't think I have permission to mark bugs reported by me as duplicates, which is fine. Original report is MC-50288.
Duplicates MC-50288. This is caused by the recent switch to using UUID's instead of player names.
Duplicate of MC-50288 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Duplicate of MC-50288 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Yup just tried upgrading - Same thing happened to my server.
I even tried to downgrade my server to see if that would fix it. No such luck, it was still using the UUID setup.
I can confirm this bug is present on mac as well. I also tried copying and renaming .dat files. No success. Back to 14w08a for my server
@lorenzo +1
Yep, it is quite anoying :/
The old inventory is transferred into the new playerdata folder and the inventory in the game is in the the player folder. This is the error.
FIXED IT:
Stop your server
remove all the data from the player directory if there is
copy all the data from the playerdata folder to the player folder
rename everything like this
abcdabcdabcdabcdabcdabcdabcdabcd
to
abcdabcd-abcd-abcd-abcd-abcdabcdabcd
start server
tataaa fixed it
It's every time the server restarts. I will try to figure out that work around, but my skills are very rusty. Thank you, aronvw.
@karst if you know everything better, (betterknower #dutch lol) write a simple program that does this for you.
@aronvw thanks man, I will try that workaround and maybe write a bash script for it.
That work around does not work. it just moves the dat with the dashes inserted to yet another directory "unknownplayers", and recreates a fresh new version in "players" folder.
Hello, I found out how to go back to the last snapshot!
First you have to clear the player folder. After that you run a previous snapshot.
Go to the player data folder.
You need to use the userdata file to know which name which number has!
Rename the file with the username of the player. (My username is Stef_Heck, according to the userdata file my number as example 4321abcdef1234fedcba. I search the folder for that number. Then I rename it to Stef_Heck.dat.)
Repeat this for every player.
After that you move all player data folder files to the player folder, and then you launch your server!
I hope I helped with you guys out! I will go on playing on working snapshots! Next time I back up my world!
Regards Stef Heck.
Bu the way I'm using Time Machine on my Mac to back up, but I forgot to connect my external hard drive to my computer....
I would also like to note that newly created player information also Wipes on a server start/stop.
Meaning if you decide to "just deal with losing all your prior stuff and start new". You will be sadly disappointed each time the server is rebooted.
#notfun
I can confirm what Joseph Charron said -
That work around does not work. it just moves the dat with the dashes inserted to yet another directory "unknownplayers", and recreates a fresh new version in "players" folder.
welp im rolling back to 08a untill 10c or whenever this issue is resolved, i cant afford to spend time manually changing every users file over either
From
MC-50381:It will be fixed for the next version, but you will need to restore a backup prior to 14w10* to migrate playerdata again
Thanks Dinnerbone
Extra hugs to Dinnerbone for acting so promptly!
So, assuming I don't have a backup (because I am lazy and awful)... after the fix, will we be able to just proceed with the losses?
(Also, as an interesting note, has anyone noticed that the animals all still recognize the player?)
If you have a directory "playerdata" in your world directory and there are files named like 3bce967243f03d12a71c7fcdc529a9b1.dat, you can rename them with some dashes, in my example the correct name would be 3bce9672-43f0-3d12-a71c-7fcdc529a9b1.dat.
So the lengths of the groups of numbers and characters in the filename are: 8-4-4-4-12
Searge, I already said this.
However, on a restart of the server the data will get lost again.
All the files in the players folder wil be moved.
Thank you for solving the problem. I got a server with many friends who weren't happy when it happened. It took me much time to recover the items which were lost. I am happy I got Time Machine on my Mac.
Not resolved for me... my inventory is still empty when I log in.
EDIT : Oh, forgive me. If you rename it like said above it'll work even after a server reboot.
I searched this up because it just happened to a friend (client). He exited and upon rejoin as soon as possible, he found himself to be at the original spawn (inventory empty, achievements fresh), as if he had just joined for the first time. I do not have a crash report, but I am curious if the log file could be of any use. Thanks; not quite hammered out yet, but close
EDIT: Version - 1.8.7, LAN, Windows 8 (Server), Windows 10 Tech Preview (Client)
EDIT 2: A simple delete of the newer profile appears to have resolved this. Interesting... that is all.