Difference between revisions of "NML:Main"
From GRFSpecs
Jump to navigationJump to searchPlanetmaker (talk | contribs) m (Add link to deprecated syntax) |
Andythenorth (talk | contribs) |
||
(17 intermediate revisions by 9 users not shown) | |||
Line 2: | Line 2: | ||
;[[NML:Preface |Preface]] |
;[[NML:Preface |Preface]] |
||
+ | ;[[NML:changes 0.3|Changes between NML 0.2 and head / 0.3]] |
||
+ | ;[[NML:changes 0.4|Changes between NML 0.3 and head / 0.4]] |
||
+ | ;[[NML:changes 0.5|Changes between NML 0.4 and head / 0.5]] |
||
;[[NML:Getting started|Getting started]] |
;[[NML:Getting started|Getting started]] |
||
;[[NML:Graphic files|Graphics files]] |
;[[NML:Graphic files|Graphics files]] |
||
Line 12: | Line 15: | ||
**[[NML:Realsprites|Realsprites]] |
**[[NML:Realsprites|Realsprites]] |
||
**[[NML:Template|Template]] |
**[[NML:Template|Template]] |
||
+ | **[[NML:Base Graphics|Base Graphics]] |
||
**[[NML:Spriteset|Spriteset]] |
**[[NML:Spriteset|Spriteset]] |
||
**;Replacing sprites: |
**;Replacing sprites: |
||
***[[NML:Replace TTD sprites|Replace TTD sprites]] |
***[[NML:Replace TTD sprites|Replace TTD sprites]] |
||
***[[NML:Replace new sprites|Replace new sprites]] |
***[[NML:Replace new sprites|Replace new sprites]] |
||
− | ***[[NML:Add font |
+ | ***[[NML:Add font glyphs|Add font glyphs]] |
− | ***[[NML: |
+ | ***[[NML:Alternative sprites|Alternative sprites]] (32bpp, zoom levels) |
**;Aranging and grouping sprites: |
**;Aranging and grouping sprites: |
||
− | ***[[NML:Spritegroup|Spritegroup]] (Vehicles) |
+ | ***[[NML:Spritegroup|Spritegroup]] (Vehicles, stations) |
− | ***[[NML:Spritelayout|Spritelayout]] (Houses, industries, |
+ | ***[[NML:Spritelayout|Spritelayout]] (Houses, industries, airports, objects, stations) |
***[[NML:Recolour sprites|Recolour sprites]] |
***[[NML:Recolour sprites|Recolour sprites]] |
||
Line 31: | Line 35: | ||
*;Global scope |
*;Global scope |
||
**[[NML:Cargotable|Cargotable]] |
**[[NML:Cargotable|Cargotable]] |
||
− | **[[NML:Railtypetable|Railtypetable]] |
+ | **[[NML:Railtypetable|Railtypetable / Roadtypetable / Tramtypetable]] |
**[[NML:Snow line|Snow line]] |
**[[NML:Snow line|Snow line]] |
||
**[[NML:Setting base costs|Setting base costs]] |
**[[NML:Setting base costs|Setting base costs]] |
||
Line 48: | Line 52: | ||
**[[NML:Town names|Town names]] |
**[[NML:Town names|Town names]] |
||
**[[NML:Town names parts|Town names parts]] |
**[[NML:Town names parts|Town names parts]] |
||
+ | **[[NML:Sorting vehicles in the purchase list|Sorting vehicles in the purchase list]] |
||
;[[NML:Units|Units]] |
;[[NML:Units|Units]] |
||
Line 54: | Line 59: | ||
*[[NML:Builtin functions|Builtin functions]] |
*[[NML:Builtin functions|Builtin functions]] |
||
;[[NML:Language files|Language files]] |
;[[NML:Language files|Language files]] |
||
+ | * [[NML:Language files#String codes|String Codes]] |
||
+ | * [[NML:Language files#LanguageIDs|LanguageIDs]] |
||
;[[NML:Properties and variables and callbacks|Lists of properties, variables and callbacks]] |
;[[NML:Properties and variables and callbacks|Lists of properties, variables and callbacks]] |
||
+ | |||
{| |
{| |
||
+ | !Type |
||
− | |[[NML:General|General]] || || [[NML:General#General variables|variables]] || |
||
+ | !Properties |
||
+ | !Variables |
||
+ | !Callbacks |
||
+ | !Feature |
||
|- |
|- |
||
− | |[[NML: |
+ | |[[NML:General|General]] || || [[NML:General#General variables|variables]] || || FEAT_GLOBALVARS |
|- |
|- |
||
− | | || [[NML:Vehicles# |
+ | |[[NML:Vehicles|Vehicles]] || [[NML:Vehicles#Properties common to all vehicle types|common properties]] || [[NML:Vehicles#Vehicle variables|variables]] || [[NML:Vehicles#Vehicle callbacks|callbacks]] || |
|- |
|- |
||
− | | || [[NML:Vehicles# |
+ | | || [[NML:Vehicles#Train properties|train properties]] || || || FEAT_TRAINS |
|- |
|- |
||
− | | || [[NML:Vehicles# |
+ | | || [[NML:Vehicles#Road vehicle properties|road vehicle properties]] || || || FEAT_ROADVEHS |
|- |
|- |
||
− | | || [[NML:Vehicles# |
+ | | || [[NML:Vehicles#Ship properties|ship properties]] || || || FEAT_SHIPS |
|- |
|- |
||
− | | |
+ | | || [[NML:Vehicles#Aircraft properties|aircraft properties]] || || || FEAT_AIRCRAFT |
|- |
|- |
||
− | |[[NML: |
+ | |[[NML:Stations|Stations]] || [[NML:Stations#Station properties|properties]] || [[NML:Stations#Station variables|variables]] || [[NML:Stations#Station callbacks|callbacks]] || FEAT_STATIONS |
|- |
|- |
||
− | |[[NML: |
+ | |[[NML:Canals|Canals]] || [[NML:Canals#Canal properties|properties]] || [[NML:Canals#Canal variables|variables]] || [[NML:Canals#Canal callbacks|callbacks]] || FEAT_CANALS |
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
− | |[[NML: |
+ | |[[NML:Houses|Houses]] || [[NML:Houses#House properties|properties]] || [[NML:Houses#House variables|variables]] || [[NML:Houses#House callbacks|callbacks]] || FEAT_HOUSES |
|- |
|- |
||
− | | |
+ | |[[NML:Industries|Industries]]|| || [[NML:Industries#Common variables|common variables]] || || |
|- |
|- |
||
− | | || [[NML:Industries#Industry |
+ | | || [[NML:Industries#Industry properties|industry properties]] || [[NML:Industries#Industry variables|industry variables]] || [[NML:Industries#Industry callbacks|industry callbacks]] || FEAT_INDUSTRIES |
|- |
|- |
||
− | | |
+ | | || [[NML:IndustryTiles#Industry tile properties|tile properties]] || [[NML:IndustryTiles#Industry tile variables|tile variables]] || [[NML:IndustryTiles#Industry tile callbacks|tile callbacks]] || FEAT_INDUSTRYTILES |
|- |
|- |
||
− | |[[NML: |
+ | |[[NML:Cargos|Cargos]] || [[NML:Cargos#Cargo properties|properties]] || [[NML:Cargos#Cargo variables|variables]] || [[NML:Cargos#Cargo callbacks|callbacks]] || FEAT_CARGOS |
|- |
|- |
||
− | | || [[NML:Airports#Airport |
+ | |[[NML:Airports|Airports]] || [[NML:Airports#Airport properties|properties]] || [[NML:Airports#Airport variables|variables]] || [[NML:Airports#Airport callbacks|callbacks]] || FEAT_AIRPORTS |
|- |
|- |
||
− | | |
+ | | || [[NML:Airports#Airport tile properties|tile properties]] || [[NML:Airports#Airport tile variables|tile variables]] || [[NML:Airports#Airport tile callbacks|tile callbacks]] || FEAT_AIRPORTTILES |
|- |
|- |
||
− | |[[NML: |
+ | |[[NML:Objects|Objects]] || [[NML:Objects#Object properties|properties]] || [[NML:Objects#Object variables|variables]] || [[NML:Objects#Object callbacks|callbacks]] || FEAT_OBJECTS |
+ | |- |
||
+ | |[[NML:Railtypes|Railtypes]] || [[NML:Railtypes#Railtype properties|properties]] || [[NML:Railtypes#Railtype variables|variables]] || [[NML:Railtypes#Railtype callbacks|callbacks]] || FEAT_RAILTYPES |
||
+ | |- |
||
+ | |[[NML:Roadtypes|Roadtypes]] || [[NML:Roadtypes#Roadtype properties|properties]] || [[NML:Roadtypes#Roadtype variables|variables]] || [[NML:Roadtypes#Roadtype callbacks|callbacks]] || FEAT_ROADTYPES |
||
+ | |- |
||
+ | |[[NML:Tramtypes|Tramtypes]] || [[NML:Tramtypes#Tramtype properties|properties]] || [[NML:Tramtypes#Tramtype variables|variables]] || [[NML:Tramtypes#Tramtype callbacks|callbacks]] || FEAT_TRAMTYPES |
||
+ | |- |
||
+ | |[[NML:Roadstops|Roadstops]] || [[NML:Roadstops#Roadstop properties|properties]] || [[NML:Roadstops#Roadstop variables|variables]] || [[NML:Roadstops#Roadstop callbacks|callbacks]] || FEAT_ROADSTOPS |
||
+ | |- |
||
+ | |Signals|| || || || FEAT_SIGNALS |
||
|} |
|} |
||
+ | |||
+ | |||
;[[NML:Warnings|Compiler Warnings]] |
;[[NML:Warnings|Compiler Warnings]] |
||
;[[NML:Additional references|Additional references]] |
;[[NML:Additional references|Additional references]] |
||
Line 108: | Line 132: | ||
*[[NML:List of direction constants|List of direction constants]] |
*[[NML:List of direction constants|List of direction constants]] |
||
*[[NML:List of tile slopes|List of tile slopes]] |
*[[NML:List of tile slopes|List of tile slopes]] |
||
+ | *[[NML:List of tiles|List of tiles]] |
||
*[[NML:Default TTD strings|Default TTD strings]] |
*[[NML:Default TTD strings|Default TTD strings]] |
||
*[[NML:Deprecated syntax|Deprecated syntax]] |
*[[NML:Deprecated syntax|Deprecated syntax]] |
Latest revision as of 07:26, 10 September 2023
- Preface
- Changes between NML 0.2 and head / 0.3
- Changes between NML 0.3 and head / 0.4
- Changes between NML 0.4 and head / 0.5
- Getting started
- Graphics files
- Defining sprites
- Realsprites
- Template
- Base Graphics
- Spriteset
- Replacing sprites
- Replace TTD sprites
- Replace new sprites
- Add font glyphs
- Alternative sprites (32bpp, zoom levels)
- Aranging and grouping sprites
- Spritegroup (Vehicles, stations)
- Spritelayout (Houses, industries, airports, objects, stations)
- Recolour sprites
- Flow control
- Global scope
- Interaction with other grfs
- Animation speed
- Default industries
- Default industry tiles
- Base cost table
- List of sound effects
- List of default vehicle IDs
- List of default house properties
- List of town zones
- List of tile classes
- List of default colour translation palettes
- List of direction constants
- List of tile slopes
- List of tiles
- Default TTD strings
- Deprecated syntax