cheahjs/palworld-save-tools

[Feature Request] Editing Inventory/Currently equiped items

Pustekuchen98 opened this issue · 4 comments

Hello,

I tried to edit my inventory data through this tool. Unfortunately I couldnt find the right data in the converted json file. Is it possible to add and option to change the currently equiped gear and the current items in a players inventory?

I am thankful for any help regarding this topic & thanks for coding this tool in the first place!

This is more a converter than a modificator for palworld savegames.
I would recommend to post this feature request to one of the savegame editors out there, which do manipulate the savegame.
But, if you want to do this in an editor, here a short explaination:

  1. Convert your PLAYERID00000.sav
  2. Open the converted json and search for inventoryInfo
  3. Underneath you have different keys like:
    1. CommonContainerId
    2. DropSlotContainerId
    3. EssentialContainerId
    4. WeaponLoadOutContainerId
    5. PlayerEquipArmorContainerId
    6. FoodEquipContainerId
  4. Most of the above should be self-explaining
  5. Write down their ID value, the GUID (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx),, the only one without zeroes only
  6. Convert your Level.sav
  7. Open the converted json and search for the GUIDs copied
  8. You should be able to find the items you have in your inventory by their name when scrolling down and edit the number for their value count.
  9. Save -> Convert Level.sav.json back to sav -> Copy onto your server after you've shut it down -> Then start the server

I don't know what data DropSlotContainerId stores? Can you tell me?

@Cr4nkSt4r: Have you actually tried this? I just tested it through the website as described here: iebb/PalworldSaveEditor#6 I tried to increase the amount of an item already present in my inventory and sadly it did not work: The game loaded the save file but asked me to create a new character at launch (so I assume it discarded the one with an edited inventory somehow...). A rollback of Level.sav did fix it though, yet inventory editing does not work this way...

@FlorentP42
Never encountered any issues when editing the raw files to this day.
Idk about the saveeditor you linked tho.