This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| modding:info [2017-03-19 08:59] – [Comments] skyjake | modding:info [2017-03-19 09:04] (current) – [String values] skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Info ====== | ||
| + | |||
| + | An [[Info]] file contains key-value pairs that can be collected into nested groups. | ||
| + | |||
| + | ===== Syntax ===== | ||
| + | |||
| + | ==== Comments ==== | ||
| + | |||
| + | # A single line comment stops here. | ||
| + | |||
| + | Longer comments: | ||
| + | |||
| + | #> Multi-line comment begins. | ||
| + | Continues... | ||
| + | And ends here. <# | ||
| + | ==== Key-value definitions ==== | ||
| + | |||
| + | Identifiers are case insensitive. | ||
| + | |||
| + | Key: Value | ||
| + | KEY = Value | ||
| + | |||
| + | When '':'' | ||
| + | ==== String values ==== | ||
| + | |||
| + | Text strings can be broken onto multiple lines as follows. There are no escape sequences. However, two consecutive single-quote characters produce the ''"'' | ||
| + | |||
| + | help = | ||
| + | "Run game's in windowed mode. " | ||
| + | "This is a '' | ||
| + | | ||
| + | < | ||
| + | |||
| + | ==== Lists ==== | ||
| + | |||
| + | The value in a key-value definition may also be a list. | ||
| + | |||
| + | key <value1, value2, value3> | ||
| + | |||
| + | Note that no assignment operator or colon character is used in this case. | ||
| + | |||
| + | ==== Blocks ==== | ||
| + | |||
| + | Blocks group one or more definitions together. A block may contain zero or more statements and/or nested blocks. Both curly brackets and parentheses can both be used to as delimiters. | ||
| + | |||
| + | Syntax example: | ||
| + | |||
| + | blocktype name { | ||
| + | # ... Definition statements ... | ||
| + | } | ||
| + | |||
| + | ==== Attributes ==== | ||
| + | |||
| + | Following the '' | ||
| + | |||
| + | The following blocks all mean the same thing: | ||
| + | |||
| + | component jdoom { | ||
| + | library: jDoom.dll | ||
| + | } | ||
| + | component jdoom library jDoom.dll {} | ||
| + | component jdoom {library=" | ||
| + | |||
| + | ==== Examples ==== | ||
| + | |||
| + | < | ||
| + | boolean run-in-window requires jdoom ( | ||
| + | option: -wnd | ||
| + | default: | ||
| + | |||
| + | help = "Run game in windowed mode. " | ||
| + | "This is a '' | ||
| + | |||
| + | description: | ||
| + | ) | ||
| + | |||
| + | choice display-color-bits { | ||
| + | options <16, 32> | ||
| + | |||
| + | subblock test ( hey = there ) | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== See also ===== | ||
| + | |||
| + | * [[Addon format]] | ||
| + | * [[snowberry: | ||
| + | * [[http:// | ||
| + | |||
| + | |||
| + | |||
| + | |||