home *** CD-ROM | disk | FTP | other *** search
/ PC Active 2009 July/August / PC Active NR.227.iso / Software / Games / windows / Freeciv-2.1.9-win32-gtk2-setup.exe / doc / README.nations < prev    next >
Encoding:
Text File  |  2009-03-25  |  13.8 KB  |  374 lines

  1.  
  2. ===========================================================================
  3. Freeciv Nation Rulesets and Flags
  4. ===========================================================================
  5.  
  6. This file describes the contents of the nation files. This is intended as 
  7. developer reference, and for people wanting to create/compile alternative 
  8. nation files for Freeciv. A nation consists of a nation file in the 
  9. rulesets and a flag in the tilesets. 
  10.  
  11. The contents of this file is based on this page from the Freeciv wiki:
  12. http://www.freeciv.org/index.php/Nations
  13.  
  14.  
  15.  
  16. ----------------------------------------------------------------------
  17. How to add a Nation:
  18. --------------------
  19.  
  20. To add a nation of your own, you should look at the following files:
  21.  
  22. data/nation/<nationname>.ruleset
  23.  
  24.   This is the new nation, which you will have to create. It may help to
  25.   copy one of the other nation files over and edit it. See below for a
  26.   style guide for nation files.
  27.   - The <nationname> bit is to be replaced with the nations name (duh).
  28.   Please don't use whitespacees and special characters. Underlines are
  29.   ok though.
  30.   - The name should be the same as the name of the nation inside the
  31.   ruleset file.
  32.   - The file must be encoded in Unicode.
  33.  
  34. data/default/nations.ruleset
  35.  
  36.   This lists all nation files. Add your nation
  37.   (data/nation/<nationname>.ruleset) to this list.
  38.  
  39. data/flags/* 
  40.  
  41.   This is the flags directory. You will have to add a flag-file
  42.   (see below) for your nation to work (see below).
  43.  
  44. data/scenario/* 
  45.  
  46.   You can add starting position for your nation on a scenario map.
  47.  
  48. Before a nation can be included in the main distribution, the following
  49. files will also have to be edited. Unless you know what you're doing you
  50. shouldn't need to worry about this.
  51.  
  52. data/nation/Makefile.am 
  53.  
  54.   Another list of nation files - add your nation (<nationname>.ruleset)
  55.   to this list.
  56.  
  57. data/flags/Makefile.am 
  58.  
  59.   Another list of flag files - add your flag to this list.
  60.  
  61. po/POTFILES.in 
  62.  
  63.   Here is yet another list of nations files; again add your nation
  64.   (data/nation/<nationname>.ruleset) to it.
  65.  
  66. (See utility/fciconv.[ch])
  67. The data charset is used in all data files and network transactions.
  68. This is UTF-8.  Currently, the rulesets are in latin1 (ISO-8859-1).
  69.  
  70.  
  71. ----------------------------------------------------------------------
  72. How to add a Flag:
  73. ------------------
  74.  
  75. Overview
  76. ========
  77.  
  78. Please note that Freeciv no longer uses XPM files. PNG is the preferred
  79. form for graphics, and flags should be made exclusively in SVG. 
  80.  
  81. A new nation needs a new flag. As of Freeciv 2.1 all flags are stored 
  82. in SVG (Scalable Vector Graphics) format. Sodipodi and Inkscape are 
  83. two good SVG editors. If you are creating a real-world nation you can 
  84. probably find a Free or public domain flag that can be used. One good 
  85. place to look is the Open Clip Art Library (OCAL.) Remember that any flags 
  86. we add must be licenced under the GPL and should be attributed to their 
  87. original author, so make a note of where you found the flag, what its 
  88. licence is, and who made it.
  89.  
  90. We also welcome improvements to existing flags. Most of our existing 
  91. flags come from the Sodipodi clipart collection, and some of them are 
  92. less than perfect. One common problem is that the colors are wrong. If 
  93. you fix a flag for a real nation be sure to cite your source so we can 
  94. be sure it's accurate. Good sources for nation flag data are Wikipedia 
  95. or Flags Of The World.
  96.  
  97. If you want to improve an imaginary flag, this is also welcome. We
  98. recommend you first contact the original author of the flag 
  99. (see the flags/credits file) to discuss your ideas for changes.
  100.  
  101.  
  102. Flag Guidelines
  103. ===============
  104.  
  105. Here are a few guidelines for flags:
  106.  
  107.   - Flags should be rectangles, since an outline is added to them
  108.   automatically.
  109.   - Flags often come in multiple aspect ratios. A 3:2 ratio looks best 
  110.   for Freeciv and currently every flag has this ratio. For a flag that 
  111.   is "supposed" to be 2:1 or 4:3, you can often find a 3:2 version 
  112.   as well.
  113.  
  114.  
  115. Flag Specifics
  116. ==============
  117.  
  118. To add a flag you'll have to edit the following files:
  119.  
  120. data/flags/<flagname>.svg 
  121.  
  122.   Here is the SVG flag image. This is not used directly by Freeciv but 
  123.   is  rendered into PNG files (at various resolutions for different 
  124.   tilesets). The SVG file is not used in Freeciv 2.0 but all the other 
  125.   steps for adding flags are the same.
  126.   - The <flagname> should either be the name of the country that represents
  127.   the flag, or the common name for the actual flag. When in doubt, use the
  128.   same name as the name of the nation.
  129.  
  130. data/flags/<flagname>.png
  131.  
  132. data/flags/<flagname>-shield.png 
  133.  
  134.   These are the flag images that are used by Freeciv. They are rendered
  135.   from the SVG file. Once this file has been created it can be used with
  136.   older versions of Freeciv as well. To run the conversion program you
  137.   will need to install Inkscape, ImageMagick, and (optionally) pngquant.
  138.   Once these are installed change to the data/flags directory and run
  139.   ./convert_png <nationname>.svg.
  140.  
  141. data/misc/flags.spec 
  142.  
  143.   This file has a reference to the flag PNG graphic. The "tag" here must
  144.   match the flag tag you put in the nation ruleset file
  145.   (usually f.<flagname>) and the "file" should point to the PNG image at
  146.   flags/<flagname>.png.
  147.  
  148. data/misc/shields.spec 
  149.  
  150.   Just like flags.spec, this file must include a reference to the flag
  151.   PNG graphic. The only difference is that the file should point to the
  152.   "shield" graphic, flags/<flagname>-shield.png.
  153.  
  154. Changes to the .spec files can be submitted as a patch (created using 
  155. diff -ruN). Even though the *.spec files may need to be changed, please 
  156. include them in the diff -- this should be easier for you, and it 
  157. provides a convenient place for us to grab the sprite name. See the 
  158. section on How to Contribute in the Freeciv wiki for more instructions.
  159.  
  160.  
  161.  
  162. ----------------------------------------------------------------------
  163. Contents and Style:
  164. -------------------
  165.  
  166. What nations can be added to Freeciv?
  167. =====================================
  168.  
  169. A nation in Freeciv should preferrably be a current independent country
  170. or a historical kingdom or realm. A nation that is currently governed
  171. by or the part of a greater political entity, or in other ways lacks
  172. complete independence could in most cases be made a Freeciv nation as
  173. well, but must never be listed as _modern_ (see 'Nation grouping' below.)
  174.  
  175. Copyrighted content may not be added unless full permission is granted by
  176. the holder of the copyright. This rule effectively disallows the
  177. inclusion of nations based on most literary works.
  178.  
  179.  
  180. Nation grouping
  181. ===============
  182.  
  183. Freeciv supports a classification of nations in an unlimited number of
  184. groups and every nation should be assigned to at least one. We currently 
  185. have Ancient, Medieval, Modern, African, American, Asian, European,
  186. Oceanian and Fictional groups. Modern nations are existing and politically
  187. independent countries; a nation listed as ancient or medieval should have
  188. had an independent dynasty or state in ancient or medieval times
  189. respectively. Finally, a fictional nation is - as the name suggests - a
  190. product of someone's imagination.
  191.  
  192.  
  193. Nation naming
  194. =============
  195.  
  196. The default name of the nation should be the name of the people, 
  197. country, or empire in English adjective form. For example, the nation 
  198. of ancient Babylon is called "Babylonian" in Freeciv. The plural form 
  199. should be standard English as well. For example, plural for the Polish 
  200. nation is "Poles" in Freeciv. Use only English ascii for nation names.
  201.  
  202.  
  203. Conflicting nations
  204. ===================
  205.  
  206. To specify one or more nations that the AI shouldn't pick for the same 
  207. game, use this syntax:
  208.  
  209.     conflicts_with="<nationname>", "<nationname>", ...
  210.  
  211. You only have to specify this in the nation you're adding, since it 
  212. works in both directions. Reasons for conflicting nations could be 
  213. either that they represent the same people in different eras 
  214. (ex: Roman - Italian) or that the two nations have too similar 
  215. flags that they are easily mixed up in the game 
  216. (ex: Russian - Serbian.)
  217.  
  218.  
  219. Civil war nations
  220. =================
  221.  
  222. Specify one or more civil war nations. When a player's capital is 
  223. captured, that player might suffer a civil war where his or her 
  224. nation is divided and a new player created. The nation for this new 
  225. player is selected from one of the civil war nations specified in the
  226. ruleset. A civil war nation should be linguistically, geographically 
  227. and/or historically related to the current nation. A linguistic 
  228. relation is especially important, since city names after a nation 
  229. run out of their own city names, are selected from the civil war 
  230. nations' city lists.
  231.  
  232.  
  233. Legend
  234. ======
  235.  
  236. A legend is required in a nation ruleset. The legend can be a 
  237. summarized history of the nation, or just a piece of trivia. 
  238. Only English ascii can be used in legends.
  239.  
  240.  
  241. Leaders
  242. =======
  243.  
  244. A leader should be a historically notable political leader of the
  245. nation. Only one living person per nation is permitted.
  246.  
  247. An ideal leader list should contain between five and ten names.
  248.  
  249. Leaders should be written in native orthography, e.g.
  250. "Karl XII" instead of "Charles XII" for the Swedish king.
  251.  
  252. Use the person's full name to avoid ambiguity.
  253.  
  254. Monarchs should be marked with the appropriate succession
  255. number, using Roman numerals in standard English style (not German 
  256. e.g. "Otto II."; Hungarian e.g. "IV. B├⌐la"; Danish e.g. "Valdemar 4."
  257. etc.)
  258.  
  259. Freeciv support any Unicode character, but please keep to 
  260. Latin letters. When transcribing from a non-Latin writing system, 
  261. be consistent about the system of transcribation you are using.
  262. Also, try to avoid unnecessarily technical and/or heavily accented
  263. systems of transcription.
  264.  
  265. For consistency and readability, put only one leader per line. 
  266. Feel free to provide a hint of the leader's identity or a brief 
  267. background in a comment beside any leader: This information might 
  268. be used in-game at a later stage.
  269.  
  270. Leader titles for each government type (including Despotism and
  271. Anarchy) may be specified in a separate tag. Only ASCII letters
  272. may be used in leader titles.
  273.  
  274.  
  275. Flag
  276. ====
  277.  
  278. You should provide a unique flag for your nation. Using a flag that 
  279. is already used by another nation in the game is not acceptable.
  280.  
  281. An alternative flag does not have to be specified.
  282.  
  283.  
  284. City style
  285. ==========
  286.  
  287. A nation must specify a default city style. The available city styles 
  288. depends on the tileset used. Practically every tileset have four city 
  289. styles: "European", "Classical" (Graeco-Roman style), "Asian" (Pagoda
  290. style) and "Tropical" (African or Polynesian style). In Amplio tileset, 
  291. "Babylonian" and "Celtic" are also available. If the tileset used by 
  292. a client does not support a particular city style, a fallback style is 
  293. used. Selecting a style for your nation is not that strict. Just try 
  294. to keep it somewhat "realistic."
  295.  
  296.  
  297. Cities
  298. ======
  299.  
  300. As for the list of city names, you should make a clear decision about 
  301. the type of the nation you add. An _ancient_ or _medieval_ nation may
  302. list any city that it at some point controlled. However if your
  303. nation is listed as _modern_, it's city list must be restricted to
  304. cities within the country's current borders.
  305.  
  306. The reason for this is, we don't want Freeciv to be used as a political 
  307. vehicle for discussions about borders or independence of particular
  308. nations. Another reason is to avoid overlapping with other nations in
  309. the game.
  310.  
  311. A city should appear in its native form, rather than Anglicized or
  312. Graeco-Roman forms. For example, the Danish capital is "K├╕benhavn"
  313. rather than "Copenhagen"; and the ancient Persian capital is "Parsa" 
  314. rather than "Persepolis."
  315.  
  316. City names support any Unicode character, but please keep to 
  317. Latin letters. When transcribing from a non-Latin writing system, 
  318. be consistent about the system of transcribation you are using.
  319. Also, try to avoid unnecessarily technical or heavily accented
  320. systems of transcribation.
  321.  
  322. The ordering of cities should take both chronology of founding and 
  323. overall historical importance into consideration. Note that a city 
  324. earlier in the list has a higher chance of being chosen than later 
  325. cities.
  326.  
  327. A discussion of city ordering appears in the freeciv-dev archive:
  328.   http://arch.freeciv.org/freeciv-dev-199910/msg00030.html 
  329.  
  330. There is even a perl script available to do the job in the same thread:
  331.   http://arch.freeciv.org/freeciv-dev-199910/msg00074.html 
  332.  
  333.  
  334. Natural city names
  335. ==================
  336.  
  337. Freeciv supports "natural" geographic placements of cities.
  338.  
  339. Cities can be labeled as matching or not matching a particular
  340. type of terrain, which will make them more (or less) likely to
  341. show up as the "default" name. The exact format of the list
  342. entry is
  343.  
  344.     "<cityname> (<label>, <label>, ...)"
  345.  
  346. where the cityname is just the name for the city (note that it
  347. may not contain quotes or parenthesis), and each "label" matches
  348. (case-insensitive) a terrain type for the city (or "river"), with a
  349. preceeding ! to negate it. The terrain list is optional, of course,
  350. so the entry can just contain the cityname if desired. A city name
  351. labeled as matching a terrain type will match a particular map
  352. location if that map location is on or adjacent to a tile of the named
  353. terrain type; in the case of the "river" label (which is a special
  354. case) only the map location itself is considered. A complex example:
  355.  
  356.   "Wilmington (ocean, river, swamp, forest, !hills, !mountains, !desert)"
  357.  
  358. will cause the city of Wilmington to match ocean, river, swamp, and
  359. forest tiles while rejecting hills, mountains, and deserts. Although
  360. this degree of detail is probably unnecessary to achieve the desired
  361. effect, the system is designed to degrade smoothly so it should work
  362. just fine.
  363.  
  364. (A note on scale: it might be tempting to label London as !ocean, i.e.
  365. not adjacent to an ocean.  However, on a reasonably-sized FreeCiv world
  366. map, London will be adjacent to the ocean; labeling it !ocean will tend
  367. to give bad results. This is a limitation of the system, and should be
  368. taken into account when labelling cities.)
  369.  
  370. At this point, it is useful to put one city per line, only.
  371.  
  372. Finally, don't forget to leave a blank line feed in the end of your nation
  373. ruleset.
  374.