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

Crash on load of exported & imported save #1

Open
jskrzypek opened this issue Mar 12, 2024 · 8 comments
Open

Crash on load of exported & imported save #1

jskrzypek opened this issue Mar 12, 2024 · 8 comments

Comments

@jskrzypek
Copy link
Contributor

On Mac OSX 14.2.1 & python 3.11, I'm getting this crash message:
Screenshot 2024-03-12 at 19 11 16

Here are the commands I ran:

BalatroSaveEditor on  main
[I] ➜ python3 main.py e "/Users/jskrzypek/Library/Application Support/Balatro/1/save.jkr" -o "/Users/jskrzypek/balatro/exported-clean.json"
Exported data saved to /Users/jskrzypek/balatro/exported-clean.json

BalatroSaveEditor on  main
[I] ➜ python3 main.py i "/Users/jskrzypek/balatro/exported-clean.json" -o "/Users/jskrzypek/Library/Application Support/Balatro/1/save.jkr" 
Imported data saved to /Users/jskrzypek/Library/Application Support/Balatro/1/save.jkr

Inspecting the exported-clean.json file, it looks fine.

@TeddyHuang-00
Copy link
Owner

Noted. I was looking into the problem. It seems that there was format misalignment in profile.jkr and save.jkr. I will fix this ASAP.

@TeddyHuang-00
Copy link
Owner

Yeah I found where the issue is. Expect to fix this in hours

@TeddyHuang-00
Copy link
Owner

Hi, would you like to try again with the latest commit? It passed on my tests and I want to see if this solves the problem. I am sorry that your save file might be lost in such a case as I have to migrate to a safer way to encode the key types, which in short means that the old exported json file will not be usable.

@jskrzypek
Copy link
Contributor Author

Yep, that fixed it!

@jskrzypek
Copy link
Contributor Author

Actually I take it back something is still wonky.. I loaded my save and it ended my run immediately, even though it didn't crash...

@jskrzypek
Copy link
Contributor Author

It works for me with my lua PR btw

@TeddyHuang-00
Copy link
Owner

I loaded my save and it ended my run immediately, even though it didn't crash...

I guess this should not happen at all... Did you checked the shasum of the re-imported file to see if it is the same? I suppose with everything exactly the same as the original, there's no reason that the run should end...

@jskrzypek
Copy link
Contributor Author

jskrzypek commented Mar 15, 2024 via email

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