Difference between revisions of "NML:Main"

From GRFSpecs
Jump to navigationJump to search
 
(7 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
;[[NML:changes 0.3|Changes between NML 0.2 and head / 0.3]]
 
;[[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.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 22: Line 23:
 
***[[NML:Alternative sprites|Alternative sprites]] (32bpp, zoom levels)
 
***[[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, stations, airports, objects)
+
***[[NML:Spritelayout|Spritelayout]] (Houses, industries, airports, objects, stations)
 
***[[NML:Recolour sprites|Recolour sprites]]
 
***[[NML:Recolour sprites|Recolour sprites]]
   
Line 34: 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 51: 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 57: 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]]
   
Line 103: Line 107:
 
|-
 
|-
 
|[[NML:Railtypes|Railtypes]] || [[NML:Railtypes#Railtype properties|properties]] || [[NML:Railtypes#Railtype variables|variables]] || [[NML:Railtypes#Railtype callbacks|callbacks]] || FEAT_RAILTYPES
 
|[[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
 
|Signals|| || || || FEAT_SIGNALS

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
Language structure and block syntax
  • GRF and its parameters
  • Item (Properties, graphics, livery overrides)
Units
Expressions
Language files
Lists of properties, variables and callbacks
Type Properties Variables Callbacks Feature
General variables FEAT_GLOBALVARS
Vehicles common properties variables callbacks
train properties FEAT_TRAINS
road vehicle properties FEAT_ROADVEHS
ship properties FEAT_SHIPS
aircraft properties FEAT_AIRCRAFT
Stations properties variables callbacks FEAT_STATIONS
Canals properties variables callbacks FEAT_CANALS
Bridges properties variables callbacks FEAT_BRIDGES
Towns
Houses properties variables callbacks FEAT_HOUSES
Industries common variables
industry properties industry variables industry callbacks FEAT_INDUSTRIES
tile properties tile variables tile callbacks FEAT_INDUSTRYTILES
Cargos properties variables callbacks FEAT_CARGOS
Airports properties variables callbacks FEAT_AIRPORTS
tile properties tile variables tile callbacks FEAT_AIRPORTTILES
Objects properties variables callbacks FEAT_OBJECTS
Railtypes properties variables callbacks FEAT_RAILTYPES
Roadtypes properties variables callbacks FEAT_ROADTYPES
Tramtypes properties variables callbacks FEAT_TRAMTYPES
Roadstops properties variables callbacks FEAT_ROADSTOPS
Signals FEAT_SIGNALS


Compiler Warnings
Additional references
NewGRF compatibility
Old-style callbacks


Manual of style