1.4. Config File Format.

This is a text file used to group information into sections. Each line in the text file uses the DOS style end of line markers CRLF ("\r\n").

Comments are allowed in the file. Comments start with the semicolon ";" and continue to the end of the line. Blank lines are ignored.

Each section begins with a header, being the section name enclosed in "[" and "]". A section ends when either a new section header or the end of file is reached.

A section contains attributes of the form key=value. The key consists of the characters [a-zA-Z0-9_]. The format of the value is dependent upon the constraints of the config file.

Here is a sample section from the configuration file city.txt.

[Area 23]                ; Klamath Toxic Caves
area_name=Klamath Toxic Caves
world_pos=330,107
start_state=Off
size=Small
townmap_art_idx=-1
townmap_label_art_idx=-1
entrance_0=On,345,230,Klamath Toxic Caves,-1,-1,3

[Area 24]                ; Den Slave Run Area
area_name=Den Slave Run
world_pos=570,310
start_state=Off
size=Small
townmap_art_idx=-1
townmap_label_art_idx=-1
entrance_0=On,345,230,Den Slave Run,-1,-1,3

Created by Noid.