For v0.2.5 and earlier only. Please see the included help documentation with v0.3.0+ (get the current version from here).
Three main sections of configuration exist:
./config/config.txt
The data file that represents board and block states, which change from stage to stage.
./config/preferences.txt
Configures paint colors, and other interface defaults.
./config/typeColors.txt
The 'type' colors for each possible block type
Specifics:
./config/config.txt
A file of row entries which are parsed, setting the block configurations, board type, and board configuration. Each row after a # tag is treated as an entry for that tag.
All rows following a #BLOCKS tag, until the next line starting with # are considered to be block entries and must conform to the following regex:
Pattern: ^(\S)(@(\S+))?[,\s]\s*(\d{1,3})[,\s]\s*(\S+)$
Explained:
Single non-whitespace,
then optionally @<MEGA> where <MEGA> is the name of a species that can mega evolve.
Then a delimiter, either , or a whitepsace.
Then any number of whitespaces.
Now a 1-3 digit number,
Then a delimiter, either , or a whitepsace.
Then any number of whitespaces.
Finally, the type string.
Groups:
The id, must be of the form: (\S)(@(\S+))?
The first group is the identifier for the element, and must be a lowercase alphanumeric excluding 'f', and 'w'. There may only be one entry per identifier (or all entries after the first with a specific id are rejected).
The third group is the mega form, if present, and must be one of the available megas or it is set to "none".
The attack power, must be an integer value. Any value beyond 999 or below 0 are set to 0.
The type, must be a non-special type (not None or Wood).
Example:
g 60 ghost
for gastly, a 60-attack ghost type
All rows following a #TYPE tag will in sequence set the board's type. (the last one is the effective type, while the others are ignored).
All rows following a #BOARD tag will in sequence set the rows of the board, from the top row downwards. Any row past the 6th will be ignored, and an alert message raised.
./config/preferences.txt
Each entry is considered by the first word to decide how to parse it.
top
the second argument must be a positive integer between 1 and 999
anything else will raise an alert and the default of 10 will be applied.
config
defines the default path to the config file for (1)
may be an absolute or relative path
paintlen
defines the number of blocks in each row for the paint pallet panel underneath the central grid
any one of the following are considered colors: pick, drop, other, express, normal, fire, water, grass, electric, ice, fighting, poison, ground, flying, psychic, bug, rock, ghost, dragon, dark, fairy, none, wood
They may have exactly 3 arguments, as integers between 0 and 255 representing a color defined by red, green, and blue.
Anything else will either be ignored or an alert will be raised (if a number is corrupted by non-number characters.
./config/typeColors.txt
Each entry is a type, one of: normal, fire, water, grass, electric, ice, fighting, poison, ground, flying, psychic, bug, rock, ghost, dragon, dark, fairy, none, wood
The arguments are the same as the color configurations in (2)