The Glest Wiki
Advertisement

The faction XML is the base definition for each faction in a tech tree mod and defines the starting units, starting resources and music. The actual name of the file will be the faction's name (which must match the folder).

XML Example

<?xml version="1.0" standalone="no"?>
<faction>
    <starting-resources>
        <resource name="resource_name" amount="#"/>
    </starting-resources>
    <starting-units>
        <unit name="unit_name" amount="#"/>
    </starting-units>
    <music value="true" path="music_tech.ogg"/>
</faction>

Documentation

resource

Starting resources the faction start with. Name is the name of the resource, and amount is how much to begin with.

unit

Starting units. The name is the exact name of the unit, and the amount is how many to start with.

music

If true, the specified music will be played in a loop while using the specified faction.

See also

Advertisement