Civ4RouteInfos: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
(page creation; simple stuff but im new and dont know everything)
 
No edit summary
Line 2: Line 2:


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.  
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.  
<font color=red>This page is missing information.
Do not remove this notice until it is complete.</font>




Line 33: Line 30:
|-
|-
!Description
!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.
|References the Text which contains the name of the route (eg: "Road", or "Railroad"). The text is specified in any of the Assets\XML\Text files.
|}
|}



Revision as of 18:58, 8 March 2010

The Civ4RouteInfos file contains all the information related to each route (roads, railroads, etc).

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

Headers

These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.

Tag Name Description
RouteInfo Main bracket for each entry
Type Label that is used throughout all other XML files


Text

Tag Name Description
Description References the Text which contains the name of the route (eg: "Road", or "Railroad"). The text is specified in any of the Assets\XML\Text files.


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
Yields Specifies the yield bonuses for the terrain. Food / Hammer / Commerce
TechMovementChanges Specifies the movement changes after tech research (eg: Engineering provides 1/3 movement point cost decrease)
PrereqOrBonuses Specifies the bonuses required to build the route.


Integers

All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.

Tag Name Description
iValue The "preference" for the route. That is to say, a higher value route is considered an upgrade from a lower value one.