Jump to content

New world with imported base, but playerdata is messed up


Recommended Posts

Posted

I have a private server where I've spent 3 in-game years slowly building.  I wanted to upgrade to 1.21 as well as add in rivers and change some of the settings for BetterRuins.  I only care about a 20 chunk area of the world with my main base.  I couldn't find an easy/reliable way of deleting everything around my base and regenerating the chunks ... /db prune keeps crashing the instance.  So I decided to start a new world and cloned my base into it.  Other than some tree-limbs not rotating properly, most everything looks ok.  However, I am having an issue with the player data.

I wanted to keep my seraphim and items, so I stopped the instance, and used SQLite to copy the playerdata from the old instance to the new one. Everything is wrong. All of the tools in my hotbar (pick, shovel, axe, etc) were converted to ore chunks and storage bags gone, etc.  Seems like the block IDs are wrong.  If I copy the 1.20 world and start it locally with 1.21, the remapping seems to be fine and everything carries over.  But even copying this updated data results in the same issue.

Is there any way of resolving this short of going into creative and giving myself everything, one item at a time .. setting durability, etc.

Thanks.

Capture.PNG

  • Haha 1
Posted

Saw one suggestion in a thread like this, I think it was @LadyWYT? But dump all your stuff into a chest or two, then use the worldedit tools to export it from the old and import it into the new.

Posted

@Diff It could have been me, I have no idea. I've kind of lost track over which issues I've tried to help answer the past couple of days. Dumping things into chests and using world edit to save builds as schematics and port them to a new world might work, but best to make backups just in case, and write down a list of essential items so you can replace them via creative if needed.

As for what's going on here though...I honestly have no idea.

Posted

Thanks .. I will try the dumping into a chest.  I haven't looked into the implementation in detail, but I suspect each server has a somewhat unique registry of block/item ids.  I suspect this list is generated when the world is generated and the system/mods register their blocks/items.  If this registration is not deterministic (asynchronous), then the block/item ids may not align with that of other servers.  If the chest dumping doesn't work due to the same issue, then I will have to go into Creative.  The other solution would be to write a mod/utility that will retrieve the item names/ids from the "old world" and map them to the "new world" and update the player inventories.  I've been looking into the serialized data using 010Editor and have a template working that is parsing the inventory without using the VintageStory APIs.  I'll look into the APIs as well.

  • 2 weeks later...
Posted
On 8/28/2025 at 8:54 PM, LadyWYT said:

As for what's going on here though...I honestly have no idea.

There's an item remapping that happened between 1.20 and 1.21. I'm going to assume that the old 1.20 mapping info was copied over, without getting the 1.21 mapping update.

Of course, I was also under the impression that the item remapping for 1.21 only affected the new stuff, such as the clay items, so I could be wrong

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.