problemsalved / balatro_save_editor

Python Balatro Save Editor
11 stars 2 forks source link

TypeError: compress() takes at most 2 arguments (3 given) #3

Open thevtm opened 2 months ago

thevtm commented 2 months ago

I ran into an issue when trying to execute the script.

I bet it's being caused due to a zlib version mismatch.

Managed to workaround doing this:

compressor = zlib.compressobj(level=1, wbits=-zlib.MAX_WBITS)
compressed_data = compressor.compress(bytes(str(new_text), 'ascii'))
compressed_data += compressor.flush()
chrisstuartparry commented 1 month ago

Also getting this issue on macOS (after editing file path)

anyRandomHuman commented 2 weeks ago

Check out my issue, maybe helpful. https://github.com/problemsalved/balatro_save_editor/issues/1