Civ4BasicInfos: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{| align="left"
The '''Civ4BasicInfos''' file stores the game's basic information.  In Vanilla (unmodded Civ4) and Warlords, it contained a large amount of data.  In Beyond the Sword, it was split into multiple files, retaining only the overall concepts.  The info that was previously in Civ4BasicInfos can now be found in the rest of the BasicInfos directory.
|[[Civ4AttitudeInfos|Previous article]]
 
|}
All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.  
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|}<br><br>
=Summary=
The BasicInfos file stores, well basic information.  In vanilla and Warlords, it contained a ton of stuff.  In BtS it was split into multiple files, retaining only the concepts.  The info that was previously in Civ4BasicInfos can now be found in the rest of the BasicInfos directory.




=Single line Tags=
==Tags==
===Text Tags===
===Text===
{| border="1" cellpadding="4" cellspacing="0"
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
! style="background:#efefef;" | Description
|-
|-
|'''Type''' || Name of the Concept.
!Type
| Name of the Concept.
|-
|-
|'''Description''' || Pointer to the Description in '''CIV4GameTextInfos_Objects.xml'''.
!Description
| Pointer to the description in the Civ4GameTextInfos_Objects file.
|-
|-
|'''Civilopedia''' || Pointer to the Civilopedia entry for the Concept in '''CIV4GameText_Civilopedia_Concepts.xml'''.
!Civilopedia
| Pointer to the Civilopedia entry for the concept in the Civ4GameText_Civilopedia_Concepts file.
|}
|}




=Multi-Line Tags=
===Lists (Multi-line)===
{| border="1" cellpadding="4" cellspacing="0"
 
All List tags consist of an opening/closing tag, which is shown here, and then each entry within it is another tag with the same name as the parent tag, minus the "s" (i.e. singular, rather than plural).
 
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
! style="background:#efefef;" | Description
! style="background:#efefef;" | Contains
|-
|-
|'''ConceptInfos''' || Header & Footer for the entire file. || ConceptInfo
!ConceptInfos
| Header and footer for the entire file, containing child tags named ConceptInfo.
|-
|-
|'''ConceptInfo''' || Defines the different Concept entires. || Type<br>Description<br>Civilopedia<br>
!ConceptInfo
| Defines the different ConceptInfo entries and elements.
|}
|}




=Example=
==Example==
 
In the following example of code, please note that there is a specific order of all of the tags.  You ''must'' list the tags in this order for the game to properly interpret your file.
 
  <ConceptInfo>
  <ConceptInfo>
     <Type>CONCEPT_ANIMALS</Type>
     <Type>CONCEPT_ANIMALS</Type>
Line 43: Line 48:
     <Civilopedia>TXT_KEY_CONCEPT_ANIMALS_PEDIA</Civilopedia>
     <Civilopedia>TXT_KEY_CONCEPT_ANIMALS_PEDIA</Civilopedia>
  </ConceptInfo>
  </ConceptInfo>
{| align="left"
|[[Civ4CalendarInfos|Next article]]
|}
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|}

Revision as of 18:31, 21 May 2009

The Civ4BasicInfos file stores the game's basic information. In Vanilla (unmodded Civ4) and Warlords, it contained a large amount of data. In Beyond the Sword, it was split into multiple files, retaining only the overall concepts. The info that was previously in Civ4BasicInfos can now be found in the rest of the BasicInfos directory.

All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.


Tags

Text

Tag Name Description
Type Name of the Concept.
Description Pointer to the description in the Civ4GameTextInfos_Objects file.
Civilopedia Pointer to the Civilopedia entry for the concept in the Civ4GameText_Civilopedia_Concepts file.


Lists (Multi-line)

All List tags consist of an opening/closing tag, which is shown here, and then each entry within it is another tag with the same name as the parent tag, minus the "s" (i.e. singular, rather than plural).

Tag Name Description
ConceptInfos Header and footer for the entire file, containing child tags named ConceptInfo.
ConceptInfo Defines the different ConceptInfo entries and elements.


Example

In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.

<ConceptInfo>
   <Type>CONCEPT_ANIMALS</Type>
   <Description>TXT_KEY_CONCEPT_ANIMALS</Description>
   <Civilopedia>TXT_KEY_CONCEPT_ANIMALS_PEDIA</Civilopedia>
</ConceptInfo>