XML/Faction
Revision as of 19:10, 7 November 2008 by Daniel Santos (talk) (Removing GAE tags, as these are now defined at GAE/Faction_XML)
The faction.xml (replace "faction" with the actual name of the faction) is the base definition for each faction in a tech tree mod and defines the starting units, starting resources and music. (Note: This covers the Glest 3.1.2 specification. For GAE-specific extensions, see GAE/Faction_XML.)
<?xml version="1.0" standalone="no"?>
<faction>
<starting-resources>
<-- The name and amount of all starting resources for the faction. May
appear one or more times. -->
<resource name="resource_name" amount="#"/>
</starting-resources>
<starting-units>
<-- The name and amount of all starting units for the faction.-->
<unit name="unit_name" amount="#"/>
</starting-units>
<-- Whether any music is to be played and the path to the file -->
<music value="true" path="../../common/music_tech.ogg"/>
</faction>
Back to XML_Definitions