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

Impossible to play a saved game or scenario from a previous versiomn #8380

Closed
piiskop opened this issue Dec 14, 2020 · 9 comments
Closed

Impossible to play a saved game or scenario from a previous versiomn #8380

piiskop opened this issue Dec 14, 2020 · 9 comments

Comments

@piiskop
Copy link

piiskop commented Dec 14, 2020

Version of OpenTTD

1.10.3

Expected result

I can play saved games and scenarios created with 1.9.3.

Actual result

I can't play saved games and scenarios created with 1.9.3.

Steps to reproduce

Play a game in 1.9.3 and then try to continue playing it in 1.10.3!

@TrueBrain
Copy link
Member

You ... really have to be more specific than this I am afraid :)

OpenTTD is fully backwards compatible with any savegame ever made by it, kinda, back to 15 years ago. If a game was made with vanilla 1.9.3 it is very likely it works without issues on 1.10.3. So we need more information :)

Most helpful would be the savegame or scenario you try to open, and a crashlog / error what happened when you try to open it :)

If you can help us there, we can most likely help you more too :) Tnx!

@piiskop
Copy link
Author

piiskop commented Dec 14, 2020

So I give you more information. So far, I started 1.9.3 server and I have lots of SAV-files played with 1.9.3. Once a buddy installed 1.10.3, he couldn't play my server as there was a version conflict. Even before that as I had like the version 1.7 and somebody else version 1.9 they didn't talk to each other. So I wanted to create a server with SAV-file under ~/.openttd/save/ in 1.10.3 and what happened was:

kalmer@test:/snap/bin$ sudo ./openttd -D -g ~/.openttd/scenario/island11.scn
mkdir: cannot create directory '/run/user/0': Permission denied
dbg: [net] Starting dedicated version 1.10.3
dbg: [net] [core] starting network...
dbg: [net] [udp] initializing listeners
dbg: [net] [core] network online, multiplayer available
dbg: [net] Detected broadcast addresses:
dbg: [net] 0) 192.168.1.255
dbg: [net] 1) 172.18.255.255
dbg: [net] 2) 172.17.255.255
dbg: [net] 3) 172.19.255.255
dbg: [sl] Game Load Failed
File not readable
dbg: [net] Loading game failed, so a new (random) game will be started!
dbg: [net] Generating map, please wait...
dbg: [net] Map generation percentage complete: 5
dbg: [net] Map generation percentage complete: 10
dbg: [net] Map generation percentage complete: 15
dbg: [net] Map generation percentage complete: 20
dbg: [net] Map generation percentage complete: 25
dbg: [net] Map generation percentage complete: 30
dbg: [net] Map generation percentage complete: 35
dbg: [net] Map generation percentage complete: 40
dbg: [net] Map generation percentage complete: 45
dbg: [net] Map generation percentage complete: 50
dbg: [net] Map generation percentage complete: 55
dbg: [net] Map generation percentage complete: 60
dbg: [net] Map generation percentage complete: 65
dbg: [net] Map generation percentage complete: 70
dbg: [net] Map generation percentage complete: 75
dbg: [net] Map generation percentage complete: 80
dbg: [net] Map generation percentage complete: 85
dbg: [net] Map generation percentage complete: 90
dbg: [net] Map generation percentage complete: 99
dbg: [net] Map generated, starting game
dbg: [net] Loading requested map failed, aborting
dbg: [net] Dedicated server could not be started, aborting
dbg: [net] [udp] closed listeners
dbg: [net] [udp] initializing listeners
dbg: [net] [udp] closed listeners
dbg: [net] [core] shutting down network

These files run very well in 1.9.3. And I can't open these files directly in 1.10.3 client neither. A further problem is that even the contents of folders are shown empty. Lately, I downloaded some sample scenarios and if I go into the folder /home/peacecop/snap/openttd/407/.openttd/scenario/ the client shows these downloaded scenarios as yellow there but if I go into that folder directly it's empty. This is very confusing.

@TrueBrain
Copy link
Member

The logs return File not readable. In other words, in your installation, OpenTTD cannot open the savegame. This is most likely due to permissions, or locations of file. Sadly not something we can really help with :(

You would have to solve this problem in order for this to work. I am really sorry, but there is not much I can do for you here ...

It seems you are using snap to run OpenTTD; possibly this has something to do with the permission problems. But as we don't make the snap versions of OpenTTD, that is a bit hard to tell ..

Again, really sorry, but there is not much I can do for you :(

@piiskop
Copy link
Author

piiskop commented Dec 14, 2020

Yes I run 1.10.3 via snap while 1.9.3 runs via apt. Who does make snap version? What version do you make and how can I use that? Even if I set world readable-writable-executable permissions I can't see that file listed within the game navigator.

@TrueBrain
Copy link
Member

We publish our binaries via https://www.openttd.org/ . I know snap does things with the filesystem, but I am not an expert here. So I don't know :) Maybe others do.

@piiskop
Copy link
Author

piiskop commented Dec 14, 2020

I don't think it's a snap issue. I just downloaded your binary and the problem remains.

@TrueBrain
Copy link
Member

Can you, as example, try to upload one of those savegames so we can take a look? Is it more than 0 bytes?

@piiskop
Copy link
Author

piiskop commented Dec 14, 2020

It really looks that snap-version has the problem only. Now, I removed 1.9.3 from my server machine and installed your binary of 1.10.3 and the result's amazing - it works with old savegames! Meanwhile the error message was because an incorrect file name. However, after copying the file over to snap part, there was the permission issue. So the issue can be considered as non-present for now. Thank's for making me rest assured that the game is backwards compatible!

@piiskop piiskop closed this as completed Dec 14, 2020
@TrueBrain
Copy link
Member

Great to hear it works again for you! That makes me happy :) Enjoy the game!!

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