Civ4TechInfos: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
(Created page with 'Tags are either text tags (no prefix; they should contain letters), boolean (prefixed by a b, can be 1 [on] or 0 [off]) or integer (prefixed by i, containing numbers) {| class=...')
 
No edit summary
Line 105: Line 105:
| Specifies how many units a civilization starts with, and their types. It contains a list of unit classes, and a number for each of them. The possible values for unit classes are defined in the Assets\XML\Units\CIV4UnitClassInfos.xml file.
| Specifies how many units a civilization starts with, and their types. It contains a list of unit classes, and a number for each of them. The possible values for unit classes are defined in the Assets\XML\Units\CIV4UnitClassInfos.xml file.


Example. This allows a civilization to starts with 1 free settler.
Example. This allows a civilization to start with 1 free settler.


:<FreeUnitClass>
:<FreeUnitClass>

Revision as of 12:45, 19 May 2009

Tags are either text tags (no prefix; they should contain letters), boolean (prefixed by a b, can be 1 [on] or 0 [off]) or integer (prefixed by i, containing numbers)

Tag Usage Default values
CivilizationInfos This begins and ends the file. Everything must go in between these two, or it will not work.
CivilizationInfo Encloses the entry for each civilization
Type The name that can be used in other files and in the SDK to refer to a particular civilization.
Description References the Text which contains the civilization description (eg: "American empire", or "English empire"). The text is specified in any of the Assets\XML\Text files.
ShortDescription References the Text which contains the civilization short description (eg: "America", or "England"). The text is specified in any of the Assets\XML\Text files.
Adjective References the Text which contains the civilization adjective (eg: "American", or "English"). The text is specified in any of the Assets\XML\Text files.
Civilopedia References the Text which contains the civilopedia content for that civilization. The text is specified in any of the Assets\XML\Text files.
DefaultPlayerColor References the default color for that civilization, in the game. The possible values are defined in the Assets\XML\Interface\CIV4PlayerColorInfos.xml file.
ArtDefineTag Reference the graphic set to be used for that civilization (his symbol and his flag). The possible values are defined in the Assets\XML\Art\CIV4ArtDefines_Civilization.xml file.
ArtStyleType Sets the art style for that civilization. This is used when displaying cities, and allows, for example, China and Japan to be displayed as asiatic, while Egypt and Mali will be displayed as african. The possible values are defined in the Assets\XML\GlobalTypes.xml file, in the section "ArtStyleTypes".
UnitArtStyleType Sets the art style for that civilization. This is used when displaying units, and allows, for example, China and Japan to be displayed as asiatic, while Egypt and Mali will be displayed as african. The possible values are defined in the Assets\XML\Civilizations\CIV4UnitArtStyleTypeInfos.xml file.
bPlayable Specifies if a civilization can be played by a player (either human or AI). 0 for Minor and Barbarian, 1 for all the others.
bAIPlayable Specifies if a civilization can be played by an AI player. 0 for Minor and Barbarian, 1 for all the others.
Cities The list of city names to be used for that civilization. The names will be available in the specified order (for non barbarian civilizations) or in a random order (for barbarian cities).

Each node may specify the name of the city (with no language traduction allowed), or a reference to a text defined in any of the Assets\XML\Text files (with language traduction allowed).

Example for an entry which specifies the name of the city:

<City>Washington</City>

Example for an entry which refers a defined text:

<City>TXT_KEY_CITY_NAME_WASHINGTON</City>
Buildings Specifies if a civilization uses unique buildings. It contains a list of Building Classes, and the correspondant Buildings enabled for that civilization. The possible values are defined: for Building Classes in the Assets\XML\Buildings\CIV4BuildingClassInfos.xml file, for Building Types in the Assets\XML\Buildings\CIV4BuildingInfos.xml file.

Example of unique building. Here, the American Mall is used instead of the standard Supermarket building class.

<Building>
<BuildingClassType>BUILDINGCLASS_SUPERMARKET</BuildingClassType>
<BuildingType>BUILDING_AMERICAN_MALL</BuildingType>
</Building>
Units Specifies if a civilization uses unique units. It contains a list of Unit Classes, and the correspondant Units enabled for that civilization. The possible values are defined: for Unit Classes in the Assets\XML\Units\CIV4UnitClassInfos.xml file, for Unit Types in the Assets\XML\Units\CIV4UnitInfos.xml file.

Example of unique unit. Here, the Navy Seal is used instead of the standard Marine unit class.

<Unit>
<UnitClassType>UNITCLASS_MARINE</UnitClassType>
<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
</Unit>
FreeUnitClasses Specifies how many units a civilization starts with, and their types. It contains a list of unit classes, and a number for each of them. The possible values for unit classes are defined in the Assets\XML\Units\CIV4UnitClassInfos.xml file.

Example. This allows a civilization to start with 1 free settler.

<FreeUnitClass>
<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
<iFreeUnits>1</iFreeUnits>
</FreeUnitClass>
FreeBuildingClasses Specifies how many buildings a civilization starts with, and their type. The possible values for building classes are defined in the Assets\XML\Buildings\CIV4BuildingClassInfos.xml file.

Example. This allows a civilization to have a free Palace in his capital.

<FreeBuildingClass>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
<bFreeBuildingClass>1</bFreeBuildingClass>
</FreeBuildingClass>
FreeTechs Specifies how many techs a civilization starts with, and their type. The possible values for techs are defined in the Assets\XML\Technologies\CIV4TechInfos.xml file.

Example. This allows a civilization to start the game with two techs: fishing and agriculture.

<FreeTech>
<TechType>TECH_FISHING</TechType>
<bFreeTech>1</bFreeTech>
</FreeTech>
<FreeTech>
<TechType>TECH_AGRICULTURE</TechType>
<bFreeTech>1</bFreeTech>
</FreeTech>