jmkl009 / PalworldCharacterTransfer

This script transfers character between worlds in Palworld, which allows friends to transfer their characters to each other's server without losing one's progress.
93 stars 5 forks source link

KeyError: 'inventoryInfo' #19

Closed Rod-fish closed 5 days ago

Rod-fish commented 1 week ago

palserver update Currently not functioning, here is the error message:

found instance
Found Character Parameter Map
Read 473 pals from source save
Searching for container data
Exception in Tkinter callback
Traceback (most recent call last):
  File "tkinter\__init__.py", line 1948, in __call__
  File "char-export-zh.py", line 540, in main
KeyError: 'inventoryInfo'
jmkl009 commented 6 days ago

I have pushed a fix, but I am not sure if this is fully compatible with the current version. If you can run python, you can try python char-export.py to help me test it.

MelonFruitbowl commented 5 days ago

Issue still occurs after grabbing the new build:

found instance Found Character Parameter Map Read 290 pals from source save Searching for container data Exception in Tkinter callback Traceback (most recent call last): File "tkinter__init.py", line 1967, in call__ return self.func(*args) ^^^^^^^^^^^^^^^^ File "PalworldCharacterTransfer-main\char-export.py", line 540, in main inv_info = host_json["SaveData"]["value"]["InventoryInfo"]["value"]


KeyError: 'InventoryInfo'
Rod-fish commented 5 days ago

I have pushed a fix, but I am not sure if this is fully compatible with the current version. If you can run python, you can try python char-export.py to help me test it.

During the migration to the new version, the following error occurred:

Found Character Parameter Map
Read 250 pals from source save
Searching for container data
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\tkinter\__init__.py", line 1921, in __call__
    return self.func(*args)
  File "C:\Users\28097\Downloads\PalworldCharacterTransfer-main\char-export-zh.py", line 540, in main
    inv_info = host_json["SaveData"]["value"]["inventoryInfo"]["value"]
jmkl009 commented 5 days ago

I have not updated char-export-zh.py, use char-export.py for now

wcx2147483647 commented 5 days ago

I am able to find "inventoryInfo" in my .sav file, so I need to modify "inv_info = host_json["SaveData"]["value"]["inventoryInfo"]["value"]" to remain as "inv_info = host_json["SaveData"]["value"]["inventoryInfo"]["value"]". The opposite situation should be similar.

Rod-fish commented 5 days ago

I have not updated char-export-zh.py, use char-export.py for now

Oh! Thank you very much, it's working fine now. I can enter the game without any issues. Waiting to continue testing the effects.