feat: add GlobalPalStorage.sav conversion support#167
Open
LFM097384 wants to merge 1 commit intodeafdudecomputers:mainfrom
Open
feat: add GlobalPalStorage.sav conversion support#167LFM097384 wants to merge 1 commit intodeafdudecomputers:mainfrom
LFM097384 wants to merge 1 commit intodeafdudecomputers:mainfrom
Conversation
This PR adds full read/write support for GlobalPalStorage.sav, the dedicated global Pal storage container introduced in Palworld v0.3.x+. ## What changed ### New conversion module src/palworld_toolsets/convert_global_pal_storage.py - Two-way conversion: GlobalPalStorage.sav <-> JSON - Accessible through the existing Conversion Options dialog in the Tools tab ### GUI src/palworld_aio/ui/tools_tab.py - Added two new options to ConversionOptionsDialog (indices 8 and 9): - Convert GlobalPalStorage.sav to JSON - Convert GlobalPalStorage.json to SAV ### Core logic src/palworld_aio/utils.py - load_global_pal_storage(save_dir): locates and deserializes GlobalPalStorage.sav - get_global_pal_storage_entries(gvas_file): extracts the SaveParameterArray src/palworld_aio/constants.py - Added global_pal_storage_gvas and global_pal_storage_path to global state src/palworld_aio/save_manager.py - Auto-loads GlobalPalStorage on every save-folder open/reload - Writes GlobalPalStorage.sav back on every save operation - Includes GlobalPalStorage Pals in the existing Pal audit / report flow src/palworld_aio/main.py / unc_manager.py - GlobalPalStorage is loaded at startup alongside Level.sav - Priority list for location ordering now includes 'Global Pal Storage' ### Internationalisation All 8 supported locales updated with three new keys: - ool.convert.global_pal_storage.to_json - ool.convert.global_pal_storage.to_sav - ool.convert.global_pal_storage_done ## Technical notes - Save type: PLM / Oodle compression (save_type=49), handled transparently by the existing GVAS pipeline - Container header: /Script/Pal.PalGlobalPalStorageSaveGame with 960 slots - No breaking changes to existing save-loading paths; GlobalPalStorage is loaded in addition to, not instead of, the standard Level.sav flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds full read/write support for GlobalPalStorage.sav, the dedicated global Pal storage container introduced in Palworld v0.3.x+.
Closes no existing issue, but extends the conversion and save-management capabilities of the toolset.
Changes
New file
src/palworld_toolsets/convert_global_pal_storage.py
GUI
src/palworld_aio/ui/tools_tab.py
Added two new options to ConversionOptionsDialog (indices 8 and 9):
Core logic
src/palworld_aio/utils.py
src/palworld_aio/constants.py
Added global_pal_storage_gvas and global_pal_storage_path to global state.
src/palworld_aio/save_manager.py
src/palworld_aio/main.py / **unc_manager.py**
Internationalisation
All 8 supported locales (de_DE, en_US, es_ES, r_FR, ja_JP, ko_KR,
u_RU, zh_CN) updated with three new keys:
Technical notes