[NoBug] - Win savegames don't work in unix? (compile w zlib)

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
iivq
Engineer
Engineer
Posts: 4
Joined: 03 Mar 2005 18:49
Contact:

[NoBug] - Win savegames don't work in unix? (compile w zlib)

Post by iivq »

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
User avatar
StavrosG
Traffic Manager
Traffic Manager
Posts: 202
Joined: 13 Dec 2004 21:13
Location: Rodos, Greece
Contact:

Post by StavrosG »

you've probably compiled the linux version without zlib support, so it doesn't know how to open the compressed (from windows) savegame.
I've never had any problems when transferring saves from windows to linux and back.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

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.
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."
iivq
Engineer
Engineer
Posts: 4
Joined: 03 Mar 2005 18:49
Contact:

Yeee!

Post by iivq »

Thx, that worked!

(Well, I just added the zlib flag in UFED, I use Gentoo)

Tijmen
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

Out of curiousity, are save-games cross platform compatible with the Mac platform? Seeing as how OTTD Scripts arn't courtesy of the different return character's the OS's use.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

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."
Dr Blackross
Engineer
Engineer
Posts: 1
Joined: 11 Mar 2005 00:54

anyone ever make a TT classic to a OpenTTD import utility?

Post by Dr Blackross »

Darkvater wrote:Yes, OTTD savegames are portable between any type of OS. And we've talked about the scripts didn't we ;) ?
like a save game converter, or import ability in openttd?

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)
Attachments
crash.sav
and here's the emergency save file
(7.22 KiB) Downloaded 184 times
crash.txt
the crash log file from OpenTTD
(6.04 KiB) Downloaded 226 times
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

"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)
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."
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 11 guests