Nations
出典: Freeciv.org ジャパン
Template:Ruleset このページでは基本的に国のrulesetファイルについて説明します。開発者,FreeCivのための新たな民族を製作しようとする人達向けの内容です。
目次 |
[編集] Nationsetの編集の概要
- 融通も利きかつ詳細でありながらも簡単にゲーム内で使用できる民族の作り方を説明します。FreeCiv用のアドオンを作るのに使います。民族は民族の設定に関するrulesetsファイルと旗の設定に関するtilesetsファイルで指定されます。
- Template:注意 以下の説明で使われている
<nationname>は自分の使いたい国の名前に置き換えてください。ただし,下線などは可能ですが,ホワイトスペース(空白)や機種依存文字などの使用はできません。
[編集] The nation ruleset file
- このファイルは作りたいと思っている民族の属性を含んでいます。具体的にはaztec.ruleset や nations filesを参照してください。コピペー&ペーストして使えます。
- Template:Info 新しく作ったファイルは
data/nation/<nationname>.ruleset以下においてください。
- Template:注意 民族の名前はrulesetファイルに書いた民族の名前と同じになるようにしてください。
[編集] nation rulesetファイルの詳細
- 以下の表は民族に関する設定の属性の一覧です。
属性 表記例 説明 name = _("Aztec") 民族の名前 plural = _("?plural:Aztecs") 民族の名前の複数形 groups = "Medieval", "American"など 民族を分類するのに使われるグループ名です。プレーする民族を選ぶのを手助けします。 legend = _("The Azteca, a Nahuatl speaking people from the Sonoran desert,\
seized control of the Toltec-derived civilizations of Central Mexico\
during the 15th century AD, reviving the practice ...")プレーヤーが参照する民族の概要です。民族の歴史,地理,宗教などの情報を記述します。 leader = "Moctezuma II", "Cuauhte'moc", "Itzco'atl", "Axayacatl" その民族に関係したリーダー達の名前の一覧です。ゲーム開始時,民族を選ぶ際に表示されます。 - 定かでない歴史に関するリーダーを入れる場合、それによってほかの人がどう反応するかを考えていれてください。(モンゴルにチンギスハンの代わりに義経を入れるなど。)
leader_sex = "Male", "Male", "Male", "Male" leaderで設定したリーダー達の性別です。 flag = "aztec" This is the reference to the flag image file. Hence it has to be named after the image file. flag_alt = "mexico" ; Used previously Another reference to a flag image file. This is used as fallback position if the primary flag file was not found. city_style = "Tropical" 都市の見た目に、どのイメージパックを利用するかを定義します。AIプレイヤーがこの文明を利用する際のみ効果がでます。 ruler_titles = { "government", "male_title", "female_title";
"Despotism", _("Tlatoani"), _("Tlatoani");
"Monarchy", _("Huey Tlatoani"), _("Huey Tlatoani")
/* TRANS: Tlatoani = Speaker */
/* TRANS: Huey Tlatoani = Great Speaker */}このruler titlesのエミュレーションは、政治形態に応じた、文明のリーダーにつける接頭語を定義します。(「女王」エリザベス、「同士」スターリンなど) init_techs = このリストは、この文明のみがゲーム開始時から持っている独自の科学を決めます。 init_buildings = このリストは、この文明のみがゲーム開始時から生産可能な建物を決めます。 init_government = "Despotism" This is a single value attribute. A valid value would be one of the global defined governments. init_units = このリストは、この文明のみが初めから生産可能なユニットを決めます。 civilwar_nations = "inca", "mayan" ここでは、参照する他の文明のファイルを決めます。 これらの情報は内戦シナリオにおいて使用されます。 cities = "Michoacan", "Axaca", "Tuxpan", "Metztitlan", "Otumba", "Tlacopa'n", "Theotihucana'n", "Tezcuco", "Jalapa", "Tlaxcala", "Cholula", "Tenochtitla'n", "Yopitzingo", "Teotitla'n", "Theuantepec", "Chiauhtia", "Chapultepec", "Coatepec", "Ayotzinco", "Itzapalapa", ... このリストは、この文明の、「歴史上」の都市の名前です。都市を作った際につけられるデフォルトの名前を定義します。
[編集] nation rulesetファイルの導入方法
- Freecivのゲーム内で新しい文明を選択できるようにするために、いくつかのnations rulesetファイルの存在を明らかにしなければいけません。(原文:There are several files where you will have to unveil the existence of your nations ruleset file before you are able to choose it inside a Freeciv game. )
- Since these files will have to be edited before your nation can be included in the main distribution it will have to be done anyway. But unless you know what you're doing you shouldn't need to worry about this. If you're not capable to apply the needed changes feel free to submit your creations and help will be on the way for the remaining steps.
- If you want to try it on your own just add a reference to your nation ruleset file to the lists in the following files:
[編集] ゲームプレイに関連した変更
data/default/nations.ruleset(リンク切れ)
- このリストは、Freecivのエンジンを起動した際に読み込まれるすべての民族のリストです。 ここにない民族はゲーム内で選択することができません。 (
nation/民族の名前.ruleset) で、あなたの民族を追加してください。
[編集] ソフトウェア開発に関連した変更
- すべての、Freecivに関連したファイルのリストです。This file tells the project build machinery which files to pack into installable (and executable, of course) Freeciv packages. Lookup the already enumerated nation ruleset files and append yours.
- Here is yet another list of nations files; the reference in here will be used for translating purposes. Add your nation (
data/nation/<nationname>.ruleset) to it.
[編集] 民族の定義の、さらなる可能性
- このフォルダでは、シナリオファイルをdepositすることができます。これらのオプションで、さらなるゲームプレイのオプションを追加できます。
- プレイするシナリオマップを定義できます。
- そのシナリオマップでの、民族のスタート位置を定義できます。
- スタート時に利用可能な資源の量を定義できます。
- ... などなど。
[編集] 民族の旗のファイル
- 新たな文明には、新たな旗が必要です。ほかの文明の旗をコピーすれば開発は楽ですが、すでに存在する文明の旗を利用することはさまざまな問題を生みます。(いわば韓国に日本の国旗を勝手に使われるだとか、そんな感じ?)
- すでにある旗のファイルの改良も歓迎します。すでにあるファイルの大部分は、Sodipodi clipart collectionのものであり、完璧、とはいえません。問題のひとつは色です。もし実在する文明の旗を修正するならば、それが正しいというソースを提示してください。空想上の文明の旗を追加・修正することも歓迎します。
- We recommend you first contact the original author of the flag (see the
CREDITSfile) to discuss your ideas for changes.
- Template:Info Remember that any flags we add must be licenced under the GPL and should be attributed to their original author, so make a note of where you found the flag, what its licence is, and who made it.
[編集] Flag Guidelines
- Here are a few guidelines for flags:
- Flags should be rectangles, since an outline is added to them automatically.
- Flags often come in multiple aspect ratios. A 3:2 ratio looks best for Freeciv and all current flags use this ratio. Other common ratios are 2:1, 1:1 or 4:3.
- Template:Info Please note that Freeciv no longer uses XPM files. As of Freeciv 2.1 all flags are stored in SVG (Scalable Vector Graphics) format. PNG is the preferred form for graphics, and flags should be made exclusively in SVG. Sodipodi and Inkscape are two good SVG editors.
[編集] Flag Specifics
- To add a flag you'll have to edit the following files:
data/flags/<nationname>.svg
- This is your nations flag image file in SVG format. This is not used directly by Freeciv but is rendered into PNG files (at various resolutions for different tilesets). The SVG file is not used in Freeciv 2.0 but all the other steps for adding flags are the same.
- Template:Info The <nationname> should be the same as the name of the nation in the ruleset (although currently many flags do not follow this).
data/flags/<nationname>.png
data/flags/<nationname>-shield.png
- These are the flag images that are used by Freeciv. They are rendered automatically from the SVG file. The conversion program is not included in Freeciv 2.0 so you should download the development version which does have it. Once this file has been created it can be used with older versions of Freeciv as well. To run the conversion program you will need to install Inkscape, ImageMagick, and (optionally)
pngquant. Once these are installed change to the data/flags directory and run./convert_png <nationname>.svg.
data/misc/flags.spec
- This file has a reference to the flag PNG graphic. The "tag" here must match the flag tag you put in the
nation.rulesetfile (usuallyf.<nationname>, and the "file" should point to the PNG image atflags/<nationname>.png.
data/misc/shields.spec
- Just like flags.spec, this file must include a reference to the flag PNG graphic. The only difference is that the file should point to the "shield" graphic,
flags/<nationname>-shield.png.
- Template:Info Changes to the
.specfiles can be submitted as a patch (created usingdiff -ruN). Even though the*.specfiles may need to be changed, please include them in the diff -- this should be easier for you, and it provides a convenient place for us to grab the sprite name. See the section on How to Contribute for more instructions.
[編集] How to introduce your nation flag image file
- There are two files where you will have to unveil the existence of your nations image file. Add your nation flag file to the following files:
[編集] Changes related to game playing
data/nations/<nationname>.ruleset
- Here you should have already referenced your image file via the 'flag=<nationname>' attribute.
[編集] Changes related to software development
- This file tells the project build machinery which files to pack into executable Freeciv installation packages. Perceive the already enumerated nation flag files and append yours. You will have to append it two more times since there are separate lists for your nations shild image file and the image source file (the svg file).
[編集] Nations Mini-FAQ
- These address a few problems and questions about adding nations.
[編集] In what order should I list cities in Nation ruleset files?
- A discussion of city ordering appears in the freeciv-dev archive: http://arch.freeciv.org/freeciv-dev-199910/msg00030.html
- There is even a perl script available to do the job in the same thread: http://arch.freeciv.org/freeciv-dev-199910/msg00074.html
[編集] What nations can be added to Freeciv with a ruleset file?
- Freeciv supports a classification of nations in modern, historical, and fictional. Modern nations are existing (independent) states, historical nations existed in past times but have ceased to exist (or have encountered a substantial change in their territory), and fictional nations are those that are products of the fantasy of a book writer.
- You should make a clear decision about the group of a nation you add. A modern nation must be restricted on the actual today's territory; you should leave out any cities not on this territory. Choosing leader names is not that restrict, but there should be a strong historical relation to the nation you create.
- The reason for this is, we don't want Freeciv to be used as a political vehicle for discussions about the borders or independence of nations and avoid trouble with other ruleset authors.
[編集] What about geographical order of cities?
- Cities are not in geographical order. But there is a feature in Freeciv that supports city placement according to the geological environement of the (real) city. So it would be nice if you add some attributes to the city names like hills, forest, river. A leading exclamation mark
!expresses the absence of that type of geological environement.
- The syntax for this is like this:
"Mannheim (grassland, forest, river, !ocean)", "Bonn (plains, forest, river)",
