12,236
edits
No edit summary |
(corrections to overview) |
||
Line 1: | Line 1: | ||
{{IdeSection | {{IdeSection | ||
| noheader = 1 | | noheader = 1 | ||
Line 7: | Line 6: | ||
== Overview == | == Overview == | ||
The ''item definition'' files are split up into several sections. There is no order on how you arrange the sections | The ''item definition'' files are split up into several sections. There is no order on how you arrange the sections and sections do not need to appear in the file. | ||
=== Format and syntax description === | === Format and syntax description === | ||
Line comments are indicated by the character <code>#</code> (number sign) and empty lines are allowed. They can be placed anywhere in the file. The game reads up to a maximum of 256 characters for each line and ignores the rest if the line is longer. Each section starts with a section identifier (usually four characters long, e.g. <code>objs</code>, <code>tobj</code>, etc.) indicating how the content of the section gets interpreted by the game. The identifier is followed by the definition entries. Each entry takes one line and every line follows a specific format which are described in the articles handling the sections in detail (see below). The end of any section is indicated by the terminating string <code>end</code>. Both the section identifier and terminating string are case sensitive. Lines within sections are always formatted in the same way differing only in the number of parameters describing the semantical content of the line. Data are usually separated by the character <code>,</code> (comma) but can be separated by <code> </code> (space). Tabs and spaces anywhere in the beginning of the line, between data, or after the data are omitted by the game and can be used to improve readability for human eyes. The games' parser uses an invariant culture to parse numerical values and strings, which means strings are [[Wikipedia:ASCII|ASCII]] encrypted and the decimal separator is <code>.</code> (period). | |||
==== Example ==== | |||
{{Pre| | |||
==== | # line comment | ||
objs | |||
# default style in objs section | |||
200, ind_land101, pjs, 1, 127, 0 | |||
# valid style | |||
200 ind_land101 pjs 1 127 0 | |||
end | |||
}} | |||
== | == Format == | ||
The following table contains basic information about all known sections. For additional information read the articles itself. | The following table contains basic information about all known sections. For additional information read the articles itself. | ||