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 · 2 comments

Comments

@Rk8ley
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 - 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

This comment has been minimized.

Copy link
Contributor

@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

@nielsmh

This comment has been minimized.

Copy link
Contributor

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.