Config Reference

preload.xml

Defines things to load before the game starts.

Tags

Tag nameInfoAttributes
stringsString definition fileid: id for this file (file id)
src: file name
moduleTypesDefines module typessrc: file name
modulesModule definitionssrc: file name
productDefines a productsrc: file name
schemesDefines production schemessrc: file name
pathAn "include" path where the game will look for files defined without specific pathssrc: directory path
dirA directory path for conveniencesrc: directory path

Module Definitions

Basic config structure

[module id string] { [data name]: [data]; }

Valid data

Data nameData typeInfo
typestringThe module type this module is an implementation of. (See: Module Type Definitions)
waitnumberThe time it takes for the module to complete a production cycle.
scriptstringScript file that defines the module's behaviour. (See: Module Script Reference)
outConstring listModule types that the module can accept as output connections.
maxInBufferintegerMaximum size of input buffer.
maxOutBufferintegerMaximum size of output buffer.
filestringGraphic file for the module.
sizenumber listCollision dimensions of the module (X and Y).
iconstringFilename of GUI icon for the module.
nameintegerString id of the module's name (must be defined in a string file with file id 0).
descintegerString id of the module's description (must be in file id 0).

Module Type Definitions

Basic config structure

[module type id string] { [data name]: [data]; }

Valid data

No data yet. Currently just defines a bunch of ids.


Product Definition

Basic config structure

data { [data name]: [data value]; }
[property name] { [data name]: [data value]; }
One definition per file. The properties can later be checked and set/removed by scripts. The property names will be used as ids.

Valid data for "data"

Data nameData typeInfo
idstringThe id used to later identify this product type.
costnumberProduction cost of the product.
nameintegerString id of the product's name string (in file id 0).
descintegerString id of the product's description string (file id 0).

Valid data for properties

Data nameData typeInfo
defaultbooleanThis property will be set when the product is created (one property must have this set!).
filestringGraphic file to load.
framenumberFrame to set (only for sprite animations).

Production Scheme Definitions

Basic config structure

[scheme id string] { [data name]: [data value]; }

Valid data

Data nameData typeInfo
schemestring listList of product type ids that defines a production sequence (separate with commas).
nameintegerString id of the scheme's name (file id 0).
descintegerString id of the scheme's description (file id 0).