sedna17
Emperor
- Joined
- Mar 12, 2008
- Messages
- 1,091
@civmademepoor
The format for Civilopedia entries is pretty simple.
Files live in Assets/XML/Text/
It doesn't matter where a particular TXT_KEY is, Civ searches all these files for it. Thus, when I was doing some work adding/modifying the unit pedia entries I made a new file
CIV4GameTextInfos_RFCE_UnitPedia.xml
and just stuck the text there. I think that file is pretty self-explanatory. The name of the appropriate TXT_KEY for blank entires is easy to see in the Civilopedia (i.e. it is the string that shows up instead of the real entry). I suggest continuing to edit this file for Units, and use this file as a template to create new .xml files for BuildingPedia, ProjectPedia, or whatever you want to add text for.
The only trick is that entries should really have at least dummy text for other languages. It's okay (at least for now) to duplicate the English text inside the tags for the other languages, but this will at least allow non-English copies of Civ to load the mod. An example is:
Does this make sense?
The format for Civilopedia entries is pretty simple.
Files live in Assets/XML/Text/
It doesn't matter where a particular TXT_KEY is, Civ searches all these files for it. Thus, when I was doing some work adding/modifying the unit pedia entries I made a new file
CIV4GameTextInfos_RFCE_UnitPedia.xml
and just stuck the text there. I think that file is pretty self-explanatory. The name of the appropriate TXT_KEY for blank entires is easy to see in the Civilopedia (i.e. it is the string that shows up instead of the real entry). I suggest continuing to edit this file for Units, and use this file as a template to create new .xml files for BuildingPedia, ProjectPedia, or whatever you want to add text for.
The only trick is that entries should really have at least dummy text for other languages. It's okay (at least for now) to duplicate the English text inside the tags for the other languages, but this will at least allow non-English copies of Civ to load the mod. An example is:
Code:
<TEXT>
<Tag>TXT_KEY_BONUS_HEMP</Tag>
<English>Hemp</English>
<French>
<Text>Chanvre</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</French>
<German>
<Text>Hanf</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</German>
<Italian>
<Text>Canapa</Text>
<Gender>Female</Gender>
<Plural>0</Plural>
</Italian>
<Spanish>
<Text>Cáñamo</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</Spanish>
</TEXT>
Does this make sense?