Format
Properties files are plain text files and can be edited in any text editor or (in the case of OPR and certain CFG files) from within the GameCore Editor via the Properties Editor.
There is one option per line, in the form of 'name value'.
Each line starts with the name of the option (one word, no spaces) and is followed by one or more parameters.
Simple Example:
Here is an example of a simple OPR file that loads a single Lightwave 3d model (lwo):
OPRP
LoadObject buildings/postoffice.lwo Each type of properties file has a unique delimiter, which must be included as the first line in the properties file. This follows the format of standard OptionsFile parsing (which is also available for custom config files in your own GameCore games). When using the OptionsFile for your own config files, this delimiter is optional and end-user configurable.
- OPR / Object Properties files
- The first line must read 'OPRP', which identifies this as an object properties file.
- SMP / Sound Properties files
- The first line must read 'SAMP', which identifies this as a sound properties file.
- SPR / Sprite Properties files
- The first line must read 'SPRP', which identifies this as a sprite properties file.
- CFG / Config files
- Config files do not have a unique identifier, and simply begin with the first desired property as necessary.
