All Skill data getting reset when online world (Lan and Server) Close improperly (Crash or shutdown before player manually exits them)—Logs and reproduction steps added.
I finally found out how the skills get sometimes completely wiped and can reproduce it 100% of the time!
Since I finally managed to reproduce it, I am going to properly report it now. This one compared to the skills not syncing on death and respawn where you need to change a skill (upgrade or downgrade one) for it to work again is way worse. And I think it’s somewhat related.
So what happens is that on a Server or Lan world when you die in another dimension or simply die again before you resynced your skills manually by opening the book and upgrading / downgrading a skill, and the Server gets closed before you manually get of it or if the Lan host closes or crashes etc the Skills completely reset before they can resync on the server making you lose all skill pages and all levels on your skills as you basically start fresh. In the following logs it even says that the Skills reset for whatever reason ([Client thread/INFO] [improvableskills]: Reset client skill data ) multiple times, and I think when the client data resets before it can be resent to the server (or the lan world data as it counts as online server for data savings) (it resets even if the client still runs and only the server shut down) so if it resets the client skill info it will also not be able to resync the data back to the server character making you start from scratch on your skills.
These 3 logs are in my modpack when it happens below I run the test with just your mod it still happens gives a shorter log for you to read so you can ignore these 3 if you don’t need the extra info’s in them.
https://pastebin.com/WzWaJ3ec https://pastebin.com/Uia7mAv7 https://pastebin.com/Ly9RMdMs
It also sometimes simply runs the resetting client skill data when joining the world after a crash or shut down.
And here with only Improvable Skills 3 installed nothing else (well except hammer core lib) see how in the log it says resets skills data and it really does reset it.
It’s easy to reproduce with just your mod installed.
MC: 1.12.2 Forge 14.23.5.2838 Improvable Skills - 3.6.3r
- Go into world open Lan or join server.
- Give skills pages whatever even creative page just get some skills and plus them at best the extra heart skill as you can visually see it happen.
- Use /kill to kill yourself
- You will after respawn see that your hearts don’t regenerate that’s the issue I reported earlier the skill syncing etc
- Now instead of opening the skill book simply close the game not exit just make it crash close the window with the X button or shut down server
- Start it back up again and bam all your skills reset when you look at it.
I hope this helps fixing the Problem If you need any more information pictures or whatever let me know I can even stream you the situation of it happening takes less than 10 minutes to reproduce it know that I know how to.