Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#3489) Patch to add new generator
Home

[Freeciv-Dev] (PR#3489) Patch to add new generator

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jjc@xxxxxxxxxxxxxxxxxx, raven@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#3489) Patch to add new generator
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 17 Jul 2004 19:17:18 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=3489 >

The mapgen code is fragmented and overcomplicated enough as it is.  It
doesn't scale well when new generators are added.  This needs to be
solved before we can have a proliferation of specialized generators.

Some solutions:

- A slightly modular system with a server/mapgen/ directory.  Each
generator can be in a separate file, with some common functions as well.
 The problem with this is that generators 2, 3, and 4 all share a huge
number of common functions.  They are basically the same generator with
different options.

- An external-mapgen solution.  Civserver runs a program that generates
a .sav file holding the map.  This has some advantages because it's
easier to distribute new mapgens.  However it has all the problems of
the first solution, and more.

A good place to start (if this is possible) is by unifying generators 2,
3, and 4 into a single generator.  But even here you'll have problems,
because there is no consistent way for the user to give the map
generator options.  Server options in general are quite static; changing
one option can't add new options.  With mapgen this is a problem because
each generator may have wildly different options.

jason



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#3489) Patch to add new generator, Jason Short <=