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

Closed
Rk8ley opened this issue Jul 12, 2019 · 3 comments
Closed

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

Rk8ley opened this issue Jul 12, 2019 · 3 comments

Comments

@Rk8ley
Copy link

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 - https://imgur.com/a/w7nodN1

Non-working Save game - https://drive.google.com/file/d/1HOTRSZLrYPpJAhrD-4mNg9bFLhQPwZs4/view?usp=sharing

Reddit post - https://www.reddit.com/r/openttd/comments/ccamz3/person_with_little_openttd_experience_here_my/

Save game with nothing done - https://drive.google.com/file/d/1fT7tQiDB6tLun7BSiBGxVoRi2sMU27L_/view?usp=sharing

The exact scenario that I used - https://drive.google.com/file/d/1m2PGehKRn_g0Gv00N-1pdL1KOGoP31P-/view?usp=sharing

The scenario that it is all ultimately based on - https://drive.google.com/file/d/1qGrdczGatKrdaz-EgPRC1nyVLIRp7JXX/view?usp=sharing

@Eddi-z
Copy link
Contributor

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

@nielsmh
Copy link
Contributor

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 as completed Jul 12, 2019
@James103
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants