Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2003:
[Freeciv-Dev] Re: (PR#4034) External Map Generator
Home

[Freeciv-Dev] Re: (PR#4034) External Map Generator

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4034) External Map Generator
From: "Cameron Morland" <cameron@xxxxxxxxxx>
Date: Mon, 21 Apr 2003 09:36:35 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Related to this, I am working to make the loading of scenarios deal
better with incomplete data. Currently scenarios can have specials and
starting positions left off, but require the terrains, rivers, and a
whole lot of things that one might want to change, such as aifill,
skill_level, timeout, settlers, explorers, seed, landpercent, riches,
etc, etc. 

I'm modifying (primarily) savegame.c so that a scenario map requires
only width and height, and a terrain map or height map. This means
simply using previously-selected values for most parameters (eg if you
set riches to some value then load a scenario, the scenario is able to
omit specifying riches, so your chosen value gets used).

It already generated specials and starting positions; I'm trying to
tidy it up, and make it also generate rivers and tiles, if they're not
available. Of course generating tiles will require that a height map
be available.

While I'm at it, I'm removing a whole lot of cruft from savegame.c;
first it checks to ensure that the file asserts compatibility with
version >= 1.9.0, then it checks for features that were obsolete by
version 1.3!

I should have a patch by the end of the week.



[Prev in Thread] Current Thread [Next in Thread]