[NoBug] - Win savegames don't work in unix? (compile w zlib)
Moderator: OpenTTD Developers
[NoBug] - Win savegames don't work in unix? (compile w zlib)
I downloaded and installed openttd (0.3.6) both on my linux box, and on my usb stick for use in windows. I use the same base files from ttd, but I can't open a savefile from the windows version on the linux version.
The upper one is a linux original, the lower one a windows savegame.
-rw-r--r-- 1 tijmen users 505210 Feb 25 13:00 Mendoza Transport, 6th Jul 1954.sav
-rw-r--r-- 1 tijmen users 100788 Mar 3 19:30 San Cristobal Transport, 13th Feb 1958.sav
as you can see, both are lowercase .sav, but the Mendoza (linux) is about 5 times as big as the windows version. Also the linux version starts with "OTTN", while the windows version starts with "o<a9><c4>." ...
So is the windows version gzipped or something? Is there a way to convert one to the other?
Sorry if there's allready a thread on this, I missed it.
Tijmen
The upper one is a linux original, the lower one a windows savegame.
-rw-r--r-- 1 tijmen users 505210 Feb 25 13:00 Mendoza Transport, 6th Jul 1954.sav
-rw-r--r-- 1 tijmen users 100788 Mar 3 19:30 San Cristobal Transport, 13th Feb 1958.sav
as you can see, both are lowercase .sav, but the Mendoza (linux) is about 5 times as big as the windows version. Also the linux version starts with "OTTN", while the windows version starts with "o<a9><c4>." ...
So is the windows version gzipped or something? Is there a way to convert one to the other?
Sorry if there's allready a thread on this, I missed it.
Tijmen
Yep, good solution by Stavrosg.
Compile on linux with ZLIB; make sure you have it installed and set WITH_ZLIB:=1 in makefile.config, or just delete it and call make which will recreate it with detected settings on your machine.
Compile on linux with ZLIB; make sure you have it installed and set WITH_ZLIB:=1 in makefile.config, or just delete it and call make which will recreate it with detected settings on your machine.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Yeee!
Thx, that worked!
(Well, I just added the zlib flag in UFED, I use Gentoo)
Tijmen
(Well, I just added the zlib flag in UFED, I use Gentoo)
Tijmen
Yes, OTTD savegames are portable between any type of OS. And we've talked about the scripts didn't we
?

TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
-
- Engineer
- Posts: 1
- Joined: 11 Mar 2005 00:54
anyone ever make a TT classic to a OpenTTD import utility?
like a save game converter, or import ability in openttd?Darkvater wrote:Yes, OTTD savegames are portable between any type of OS. And we've talked about the scripts didn't we?
tried to open a TT save game *.sv1 in openttd and well like most of linux kernels i've compiled it dropped a log file out and a *.sav file.
the game editor (from the uk site) said the save file (the original classic tt save file) was of the wrong filesize... sooo that was a game save from a win32 box. loaded on a win32 box here, i havent tried the *nix box yet.
but i was just wondering if or is anyone going to make a standalone utility?
i'll attach the logs for you to look at....
(its probably not a zlib problem since it was from the original game.... but if it doesnt work in *nix then i will recompile there with zlib support)
"Save load failed, there is no town in this scenario"
Rename the file to .scn and load it in the scenario editor
(it's just a big flat arctic grid)
Rename the file to .scn and load it in the scenario editor
(it's just a big flat arctic grid)
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Who is online
Users browsing this forum: No registered users and 11 guests