lslib icon indicating copy to clipboard operation
lslib copied to clipboard

save edits reverting on load

Open aaron-j-reeves opened this issue 1 year ago • 1 comments

Hello, just trying to do a small simple edit but every time i extract the save, edit it, repackage it, and load it in game, the data gets reverted back to what it was previously. I dont even know where the game is keeping this data to know what to change the values back to. These are the steps I took:

Extract package: C:\Users\Aaron\AppData\Local\Larian Studios\Baldur's Gate 3\PlayerProfiles\Public\Savegames\Story\Arrick-512512321717__TestSave\TestSave.lsv Destination: C:\Modding\bg3\saves\testsave\extract Make a small edit to the xp values in SaveEdit.json: change from previous values to:

"Experience Points (Current level)" : 0,
"Experience Points (Total)" : 100000,

for each of the 4 characters. save the file and exit.

create package C:\Modding\bg3\saves\testsave\TestSave.lsv version v18 compression LZ4 priority:0 solid unchecked

Copy TestSave.lsv back to the original %localappdata% location, deleting the previous file first

Open the game, load the save -> all the XP values are the same as they were before the edit Extract the package again > open Save.Edit.json > all of the XP values are the exact same as they were before the edit. These are very specific xp values as well, like 16755 so not just a fall back value or anything, its getting specifically reverting to these exact numbers.

I have no idea why this is happening. Ive verified that steam cloud saves are disabled so that its not interfering or overwriting any files. Ive tried this numerous times with numerous save files with the same results.

Ive converted all of the save file .lsf to lsx and searched them very thoroughly to confirm the ONLY location this xp information is saved inside the .lsv is in the SaveEdit.json file and no where else. I thought there might be another file with that info that would be superseding SaveEdit.json and reverting the changes, but as far as I can tell that is not the case.

I looked around but wasnt able to find any documentation or logging capabilities, so I dont really have any other avenues to self troubleshoot. Below is the TestSave.lsv after editing, take a look and let me know if im doing something wrong or if there is a bug. Thanks and have a good day!

https://1drv.ms/u/s!AglgEK2-3FrYrLI2ReUXL6pmM3UAOw?e=mMsYHh

aaron-j-reeves avatar Aug 25 '23 22:08 aaron-j-reeves

Yes, I would like to bump this and agree! I keep trying to adjust DB_TUT_Start_InitialPartySizeAfterTUT (which worked prior to one of the more recent BG3 updates) and now it doesn't seem to store any changed data I make prior to loading. Seems data is reset on load, but if changed during runtime it will not revert to prior.

noahm1216 avatar Jul 17 '24 04:07 noahm1216