-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
I keep losing my inventory #2
Comments
There is something weird going on. It looks like the world is not loading (it's null). I don't think the database was fully reset or the world you are using isn't being loaded correctly. Can you tell me what add-ons you are actually running? |
It would be good to see your console log during the server startup phase. You can zip it up and drag and drop it to this ticket. Thanks. |
logs https://paste.helpch.at/riyujoheje.md |
ERROR [BentoBox] Could not load object from database! java.util.List<org.bukkit.inventory.ItemStack> |
@krustymk It looks like there's an item in your inventory that cannot be loaded. Are you using YAML? If this happens, then it'd be good to get a copy of the YAML file in the BentoBox database in the Inventory Switcher folder. |
https://pastebin.com/2tsGg3Aw I only have 2 players with access currently so ive copied both files cab2ff56-9182-4151-802e-4911fc93d18e has only has never had creative and only been building an island for an hour or so, its this character i noticed the inventory loss with (Im not saying the other hasnt lost items ive not checked yet) |
So, the issue is with these -null. I have also encounter it in Challenges addon. Sometimes it did not correctly stores items and ruins it. |
Its all still in 'break it and see what needs fixing stage' so its cool if anything is lost, ill just delete the files and let them regenerate, if the -null comes back ill remove them and see what happens |
The -null just appears to be an empty slot in your inventory. As soon as i changed worlds it generated a new YAML file full of -null's |
restarted server and went back to skyblock and inv clear again with '[Server] ERROR [BentoBox] Could not load object from database! java.util.List<org.bukkit.inventory.ItemStack> |
Same goes for me. I've installed this addon to test it for our upcoming server database restart and my inventory stuff deleted.
BBox output:
Additional:
|
Okay, I'm looking into this. This never used to be a problem, so I'm not sure why it changed, but maybe a change to how the server operates. |
@BONNe The issue is that I don't have recursive deserialization with YAML. So the inventory Map<String, List> (World name, Inventory list) is not being correctly deserialized. The add-on works fine on JSON and other databases.
Analysis:
I'll need @Poslovitch input about this too. |
A variation on 3 would be to still support it, but deprecate it and make JSON the default. |
Database migration is supported now. Closing. |
Description
I log out and when I return my inventory is missing for all three worlds.
Steps to reproduce the behavior:
Expected behavior
to have my armor and items in my inventory where I left them
Screenshots
If applicable, add screenshots to help explain your problem.
Server Information:
[Please complete the following information:]
Database being used (YAML, JSON, MySQL, MongoDB): default yml
OS: [e.g. iOS] debian
Java Version: [e.g. Java 8] java 8
BentoBox version: [e.g. 1.7.2.21] 1.3.1
Addons installed? [Do '/bentobox version' and copy/paste from the console]
https://paste.helpch.at/iquxuqofup.bash
Other plugins? [Do '/plugins' and copy/paste from the console]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: