Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2002:
[Freeciv-Dev] [PATCH] documentation for city names in nation ruleset (PR
Home

[Freeciv-Dev] [PATCH] documentation for city names in nation ruleset (PR

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] documentation for city names in nation ruleset (PR#1523)
From: Jason Short <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 31 May 2002 00:10:09 -0700 (PDT)

As requested (a while ago), here is some documentation on the new natural city naming system.

It was written as a patch to README.rulesets, but could easily be reformatted and placed somewhere else.

It was designed for completeness, but may not be particularly readible or intelligible :-). Of course, the software author is generally not the best judge of whether documentation will be useful. Feel free to change or rewrite it for inclusion.

jason
Index: doc/README.rulesets
===================================================================
RCS file: /home/freeciv/CVS/freeciv/doc/README.rulesets,v
retrieving revision 1.2
diff -u -r1.2 README.rulesets
--- doc/README.rulesets 2002/05/22 21:33:35     1.2
+++ doc/README.rulesets 2002/05/31 07:04:00
@@ -129,6 +129,41 @@
   (This complicated setup is so that the AI calculations don't 
   blow up when using Civ1 rulesets.)
 
+- The cities section of the nations ruleset files deserves some
+  explanation.  At first glance, it simply contains a comma-
+  separated list of quoted city names.  However, this list can
+  also be used to label cities by their preferred terrain type.
+  Cities can be labeled as matching or not matching a particular
+  type of terrain, which will make them more (or less) likely to
+  show up as the "default" name.  The exact format of the list
+  entry is
+
+       "<cityname> (<label>, <label>, ...)"
+
+  where the cityname is just the name for the city (not that it
+  may not contain quotes or parenthesis), and each "label" matches
+  (case-insensitive) a terrain type for the city (or "river"), with a
+  preceeding !, -, or ~ to negate it.  The terrain list is optional, of
+  course, so the entry can just contain the cityname if desired.  A city
+  name labeled as matching a terrain type will match a particular map
+  location if that map location is on or adjacent to a tile of the named
+  terrain type; in the case of the "river" label (which is a special
+  case) only the map location itself is considered.  A complex example:
+
+    "Wilmington (ocean, river, swamp, forest, !hills, !mountains, !desert)"
+
+  will cause the city of Wilmington to match ocean, river, swamp, and
+  forest tiles while rejecting hills, mountains, and deserts.  Although
+  this degree of detail is probably unnecessary to achieve the desired
+  effect, the system is designed to degrade smoothly so it should work
+  just fine.
+
+  (A note on scale: it might be tempting to label London as !ocean, i.e.
+  not adjacent to an ocean.  However, on a reasonably-sized FreeCiv world
+  map, London will be adjacent to the ocean; labeling it !ocean will tend
+  to give bad results.  This is a limitation of the system, and should be
+  taken into account when labelling cities.)
+
 Properties of units and advances are now fairly well generalised.
 Properties of buildings are still rather inflexible.
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [PATCH] documentation for city names in nation ruleset (PR#1523), Jason Short <=