Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse save files looking for "persistentProfileData" to support New Game+ saves #28

Closed
Jaymus3 opened this issue May 12, 2023 · 1 comment

Comments

@Jaymus3
Copy link

Jaymus3 commented May 12, 2023

The current parsing regex doesn't look for the persistent profile data, so new game+ saves just read the starting money and xp values. Consider changing

string sPattern = @"\""money\""\:\d+";
to string sPattern = @"\""persistentProfileData\""(.*?)\""money\""\:\d+"; and
string sPattern = @"\""experience\""\:\d+";
to string sPattern = @"\""persistentProfileData\""(.*?)\""experience\""\:\d+";.
There's a few other things related to your file writing and such that will need to be modified as well. Attaching an example NG+ save for you to tinker with (file extension changed to log so Github will let me upload it).
CompleteSave1.log

@elpatron68
Copy link
Owner

Thanks, this will be fixed with the upcoming release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants