xNul / palworld-host-save-fix

Fixes the bug which forces a player to create a new character when they already have a save. Useful for migrating maps from co-op to dedicated servers and from one dedicated server to another.
MIT License
886 stars 65 forks source link

Error at end of process #146

Closed Astreo80 closed 4 months ago

Astreo80 commented 5 months ago

Here is the error i get at the end of the script. I've tried multiple times to run this using clean back ups. Always the same thing, file not found at the end of it.

Converting save files to JSON...

File C:/Users/XXXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Level.sav uncompressed successfully File C:/Users/XXXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Level.sav (type: 50) converted to JSON successfully File C:/Users/XXXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Players/129513AA000000000000000000000000.sav uncompressed successfully File C:/Users/XXXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Players/129513AA000000000000000000000000.sav (type: 49) converted to JSON successfully Done! Parsing JSON files...Done! Modifying JSON save data...Done! Exporting JSON data...Done! Converting JSON files back to save files... Converted C:/Users/XXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Level.sav.json to C:/Users/XXXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Level.sav Converted C:/Users/XXXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Players/129513AA000000000000000000000000.sav.json to C:/Users/XXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Players/129513AA000000000000000000000000.sav Done! Cleaning up miscellaneous files...Done! Traceback (most recent call last): File "C:\Users\OsPez\Desktop\palworld-host-save-fix-main\fix-host-save.py", line 276, in main() File "C:\Users\OsPez\Desktop\palworld-host-save-fix-main\fix-host-save.py", line 165, in main os.rename(old_sav_path, new_sav_path) FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:/Users/XXXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Players/129513AA000000000000000000000000.sav' -> 'C:/Users/XXX/Desktop/Palworld Test Save/11AE91BD407311508007E99D1FB6CEE0/Players/129513AA000000000000000000000000.sav'

xNul commented 4 months ago

It looks like you passed the same GUID for the new_guid and old_guid instead of the guid for the new server as the new_guid and the guid for the old server as the old_guid. If you do that, it will work for you.