Error load Backup with DB
microwin7 opened this issue · 26 comments
I have fixed the bug when loading data of enderchests saved with version 2.1.0 of the plugin. Sorry I thought this bug had been fixed earlier! You can download the Jar with the fix here: https://ci.utarwyn.fr/job/EnderContainers
Hello @microwin7, I haven't seen this bug in the past, that's strange. What software and version of database server are you using? I will investigate more to know if there is an incompatibility or something else.
In general I'm not very happy with my backup management system. I should rework on it in the future. Anyway, thank you for the feedback!
Hello @microwin7,
I have changed the way to replace enderchests when loading a backup. This should now works for you thanks to the latest commit 772129b. Give me a feedback on that!
I have compiled the latest source code with the fix for you: EnderContainers-2.2.0-772129b.zip
@microwin7, have you tested with the fix? Is the problem stills present on your server?
It’s really strange that sometimes after restarting, I can’t open the chest on the right click, but only with the command
https://pastebin.com/X02Pbm4d
Error((
Yes sorry about that! As I have already mentioned it in another issue, there is a problem with the method getItemInMainHand()
. I will fix it!
I will also try to create a build pipeline for each versions of Minecraft on GitHub to be sure that all classes are compatible with these versions.
strange, not working for some reason)
maybe you have a better idea for implementation will be
https://pastebin.com/GCg7gpxD
replaced .getItemInMainHand () with .getItemInHand () and this is what I got
Error due to PlotSquared
https://pastebin.com/VyhqUjty
I strongly apologize, as it turned out I was not completely convinced of the work, checked on clean (new) databases, and when I put the plug-in on the base now, I got such an error when taking data. Given that I deleted the table for backups in advance, it means an error with existing player inventories
Yep I have changed how base64 data strings are stored. I'm now using the "Java traditional way" which is not using break lines in the serialized data. BUT this should not causes any problem because the new class supports both formats for deserialization. Can you send me the input data of the decode
method?
See it in action here:
https://pastebin.com/GCg7gpxD
replaced .getItemInMainHand () with .getItemInHand () and this is what I got
Error due to PlotSquared
Which version of PlotSquared do you use? The plugin only supports v5+ now. Do you want me to work on the compatibility with another version of PlotSquared?
I have also replaced the method getItemInMainHand()
with getItemInHand()
to solve your issue with 1.8 version of MC in the commit f0b3e3a.
@microwin7 Are all your problems been solved? If you want me to add support for another version of PlotSquared, please create a new issue. Also I have done some tests with the latest development version and the data loading (items) seems to work fine.