apocalyptech / bl3-cli-saveedit

Commandline Borderlands 3 Savefile/Profile Editor
zlib License
106 stars 20 forks source link

Guardian rank profile editing #9

Closed ensiform closed 4 years ago

ensiform commented 4 years ago

So I know currently there is no guardian rank editing options. As I'm not sure whether this is stored in the profile save at all. But last night I had a PC crash which seems to have been mid write of my profile during play and it corrupted my profile to a weird state. I still have my bonus stats unlocked, and each top guardian tree lists the correct number of tokens that were allocated in each tree. However my guardian rank is reset to 1 and none of the perks appear to be capable of being re-enabled at the moment. Thankfully the character save was unaffected.

Any ideas? I guess I could try consulting gbx/2k but just was curious if I can fix it myself eventually via some means of figuring out an approximate rank that is necessary for the number of alleged unlocked tokens.

NoneGiven commented 4 years ago

Strangely, it seems like Guardian Rank data is stored both in the profile and the character save. If you export these files to JSON and make some careful edits, then reimport the JSON back into the save and profile, you can probably fix this issue (make backups first!).

Look for the guardian_rank section in the profile and the guardian_rank_character_data section in the save.

image

image

Based on your description of the issue, I think you can you fix it by editing the value of guardian_rank (in both files) to the combined number of tokens you spent in the reward trees.

If the experience amounts look wrong then those also might need updating, but I'm not certain about the relationship between those values. Maybe post yours for comparison?

apocalyptech commented 4 years ago

So yeah, pretty much what @NoneGiven said - the JSON export/import capability could probably get you back to where you want to be.

You could also use FromDarkHell's Profile Editor instead, if you want; that'll let you just plug in however much Guardian Rank you want: https://github.com/FromDarkHell/BL3ProfileEditor/releases

ensiform commented 4 years ago

So it seems the guardian perks have fixed themselves, but still need to do the above recommendations for fixing the guardian rank. Thanks

apocalyptech commented 4 years ago

Yeah, it's a bit weird that Guardian Rank is stored in both the profile and the savegame, though your case here is probably why they did it that way. It's probably because it's stored in both locations that you got it back; when you loaded the savegame again, it noticed that your profile.sav GR was empty, and so it copied the savegame info over to the profile. This was actually causing all kinds of havoc originally, because the game would end up somewhat indiscriminately copying over savegame GR, and folks were having their profile GR "infected" by modded savegames that they were downloading online, etc.

I think nowadays it's smarter about it -- if you have at least one point of GR in the profile, it won't overwrite it with the savegame version. I still have no idea how exactly the two relate to each other, though. If one gets updated but not the other, etc. (It wouldn't be hard to figure out, given the JSON export, but I've just not taken the time to do so.)

apocalyptech commented 4 years ago

Okay, anyway -- I guess I'll close this out. If there's anything else, just let me know!