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

Save game can't open (liblzma returned error code)? #7649

Rk8ley opened this issue Jul 12, 2019 · 3 comments

Save game can't open (liblzma returned error code)? #7649

Rk8ley opened this issue Jul 12, 2019 · 3 comments


Copy link

@Rk8ley Rk8ley commented Jul 12, 2019

Reddit told me this was the best place to go for answers on this

Version of OpenTTD - 1.9.1

Expected result - Should let me load the game

Actual result - Load game screen says that libIzma returned error code

Steps to reproduce - No idea

Screenshot -

Non-working Save game -

Reddit post -

Save game with nothing done -

The exact scenario that I used -

The scenario that it is all ultimately based on -

Copy link

@Eddi-z Eddi-z commented Jul 12, 2019

That error usually means the file is corrupted (like, disk was full while saving). inthat case, there's probably no solution to that

Copy link

@nielsmh nielsmh commented Jul 12, 2019

I tried loading the savegame under debugger to get the exact error code. The LZMA library returns error 9 (LZMA_DATA_ERROR): "Decoders return this error if the input data is corrupt. This can mean, for example, invalid CRC32 in headers or invalid check of uncompressed data."

In short, the save file is plain broken. As far as I can tell from the internal data, the error happens about 128 kb before the end of the file.

@nielsmh nielsmh closed this Jul 12, 2019
Copy link

@James103 James103 commented Dec 16, 2019

Is there any way to display the exact error code that is being outputted by the LZMA library inside of the error text in the savegame select windows (i.e. "Broken savegame - liblzma returned error code 9") in the standard nightly OpenTTD versions? If so, how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.