cheahjs / palworld-save-tools

Tools for converting Palworld .sav files to JSON and back
MIT License
776 stars 66 forks source link

[Feature Request] Editing Inventory/Currently equiped items #111

Open Pustekuchen98 opened 5 months ago

Pustekuchen98 commented 5 months ago

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!

Cr4nkSt4r commented 5 months ago

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