Import 1.0.0 map into older version?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
Domovoi
Engineer
Engineer
Posts: 5
Joined: 19 Feb 2008 12:15
Location: Germany

Import 1.0.0 map into older version?

Post by Domovoi »

Hi,

while testing 1.0.0 beta I discovered the new feature for the map generation; variety distribution.
Using this function makes it in my opinion for the first time possible to generate realistic maps. But I still miss some other important features in 1.0.0 so I'm still playing with russian patchpack 1.5.0. Is there any possibility to import a generated map (or scenario) into this older version?

Thanks!
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Import 1.0.0 map into older version?

Post by FooBar »

No. Unless you're interested manual editing of the savegame...
Domovoi
Engineer
Engineer
Posts: 5
Joined: 19 Feb 2008 12:15
Location: Germany

Re: Import 1.0.0 map into older version?

Post by Domovoi »

I already thought about it, but I have no idea how to do that, which programs I would need etc. :?
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Import 1.0.0 map into older version?

Post by petert »

FooBar wrote:No. Unless you're interested manual editing of the savegame...
Would you care to expand on that? I tried opening *.sav with gedit on Ubuntu, but it gave me an error.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Import 1.0.0 map into older version?

Post by Yexo »

petert wrote:
FooBar wrote:No. Unless you're interested manual editing of the savegame...
Would you care to expand on that? I tried opening *.sav with gedit on Ubuntu, but it gave me an error.
That is because gedit is a text editor and can't open non-text binary files. Try a hexeditor, although most likely you won't be able to make any sense from the data.
Domovoi
Engineer
Engineer
Posts: 5
Joined: 19 Feb 2008 12:15
Location: Germany

Re: Import 1.0.0 map into older version?

Post by Domovoi »

Yexo wrote:Try a hexeditor, although most likely you won't be able to make any sense from the data.
It's cryptic... ?( Isn't there a documentation who these .scn-files are structured?
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Import 1.0.0 map into older version?

Post by Yexo »

I'm afraid that the only documentation in this case is the actual source code.
Eddi
Tycoon
Tycoon
Posts: 8271
Joined: 17 Jan 2007 00:14

Re: Import 1.0.0 map into older version?

Post by Eddi »

Domovoi wrote:
Yexo wrote:Try a hexeditor, although most likely you won't be able to make any sense from the data.
It's cryptic... ?( Isn't there a documentation who these .scn-files are structured?
  1. make an uncompressed savegame [can be set in openttd.cfg]
  2. it's a RIFF structure, so 4-byte chunk name, 4-byte chunk size, appropriate amount of data. the chunk names should appear in the source somewhere
  3. docs/landscape.html and docs/landscape_grid.html might be useful
or go with the idea to create a patch that can export into a PNG heightmap... [which, if done right, might even go to trunk]
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 31 guests