Difference between revisions of "Main Page"

From GRFSpecs
Jump to navigationJump to search
Line 2: Line 2:
 
;[[Action0]] - Defines new properties for anything added or changed by the NewGRF
 
;[[Action0]] - Defines new properties for anything added or changed by the NewGRF
 
:{| |-
 
:{| |-
|rowspan="4" align="center" style="width:3em"|'''0'''
+
|rowspan="5" align="center" style="width:3em"|'''0'''
 
| [[Action0/Vehicles | Vehicles]]
 
| [[Action0/Vehicles | Vehicles]]
 
| [[Action0/Vehicles/Trains | Trains]]
 
| [[Action0/Vehicles/Trains | Trains]]
Line 25: Line 25:
 
| [[Action0/Railtypes | Railtypes]]
 
| [[Action0/Railtypes | Railtypes]]
 
| [[Action0/Airport Tiles | Airport Tiles]]
 
| [[Action0/Airport Tiles | Airport Tiles]]
  +
| [[Action0/Roadtypes | Roadtypes]]
  +
|-
  +
| [[Action0/Roadtypes | Tramtypes]]
 
| ''Towns''
 
| ''Towns''
  +
|
  +
|
  +
|
 
|}
 
|}
 
;[[Action1]] - Defines one or more graphics sets
 
;[[Action1]] - Defines one or more graphics sets
Line 31: Line 37:
 
* Basic Action2
 
* Basic Action2
 
:{| |-
 
:{| |-
|rowspan="4" align="center" style="width:3em"|'''2'''
+
|rowspan="5" align="center" style="width:3em"|'''2'''
 
|colspan=5| [[Action2/Vehicles | Vehicles]]
 
|colspan=5| [[Action2/Vehicles | Vehicles]]
 
|-
 
|-
Line 50: Line 56:
 
| [[Action2/Single Set | Railtypes]]
 
| [[Action2/Single Set | Railtypes]]
 
| [[Action2/Sprite Layout | Airport Tiles]]
 
| [[Action2/Sprite Layout | Airport Tiles]]
  +
| [[Action2/Single Set | Roadtypes]]
  +
|-
  +
| [[Action2/Single Set | Tramtypes]]
 
| ''Towns''
 
| ''Towns''
  +
|
  +
|
  +
|
 
|}
 
|}
 
* [[VariationalAction2]] - A conditional switch that determines a [[Callbacks|callback]] result or chains to another Action 2
 
* [[VariationalAction2]] - A conditional switch that determines a [[Callbacks|callback]] result or chains to another Action 2
Line 56: Line 68:
 
: [[GlobalVariables | Global Variables]]
 
: [[GlobalVariables | Global Variables]]
 
:{| |-
 
:{| |-
|rowspan="4" align="center" style="width:3em"|'''VA2'''
+
|rowspan="5" align="center" style="width:3em"|'''VA2'''
 
|colspan=5| [[VariationalAction2/Vehicles | Vehicles]]
 
|colspan=5| [[VariationalAction2/Vehicles | Vehicles]]
 
|-
 
|-
Line 75: Line 87:
 
| [[VariationalAction2/Railtypes | Railtypes]]
 
| [[VariationalAction2/Railtypes | Railtypes]]
 
| [[VariationalAction2/Airport Tiles | Airport Tiles]]
 
| [[VariationalAction2/Airport Tiles | Airport Tiles]]
  +
| [[VariationalAction2/Roadtypes | Roadtypes]]
  +
|-
  +
| [[VariationalAction2/Roadtypes | Tramtypes]]
 
| [[VariationalAction2/Towns | Towns]]
 
| [[VariationalAction2/Towns | Towns]]
  +
|
  +
|
  +
|
 
|}
 
|}
 
* [[RandomAction2]] - A randomized Variational Action 2
 
* [[RandomAction2]] - A randomized Variational Action 2
 
:{| |-
 
:{| |-
|rowspan="4" align="center" style="width:3em"|'''R'''
+
|rowspan="5" align="center" style="width:3em"|'''R'''
 
|colspan=5| [[RandomAction2#Vehicles | Vehicles]]
 
|colspan=5| [[RandomAction2#Vehicles | Vehicles]]
 
|-
 
|-
Line 98: Line 116:
 
| [[RandomAction2#Rail_types | Railtypes]]
 
| [[RandomAction2#Rail_types | Railtypes]]
 
| [[RandomAction2#Stations | Airport Tiles]]
 
| [[RandomAction2#Stations | Airport Tiles]]
  +
| [[RandomAction2#Road_types | Roadtypes]]
  +
|-
  +
| [[RandomAction2#Road_types | Tramtypes]]
 
| ''Towns''
 
| ''Towns''
  +
|
  +
|
  +
|
 
|}
 
|}
   
Line 105: Line 129:
 
;[[Action3]] - Associates Action 2s with an Action 0
 
;[[Action3]] - Associates Action 2s with an Action 0
 
:{| |-
 
:{| |-
|rowspan="4" align="center" style="width:3em"|'''3'''
+
|rowspan="5" align="center" style="width:3em"|'''3'''
 
|colspan=5| [[Action3 | Vehicles]]
 
|colspan=5| [[Action3 | Vehicles]]
 
|-
 
|-
Line 124: Line 148:
 
| [[Action3/Railtypes | Railtypes]]
 
| [[Action3/Railtypes | Railtypes]]
 
| [[Action3 | Airport Tiles]]
 
| [[Action3 | Airport Tiles]]
  +
| [[Action3/Roadtypes | Roadtypes]]
  +
|-
  +
| [[Action3/Roadtypes | Tramtypes]]
 
| ''Towns''
 
| ''Towns''
  +
|
  +
|
  +
|
 
|}
 
|}
 
: [[Action3LiveryOverride]] - Change wagon livery to match the engine
 
: [[Action3LiveryOverride]] - Change wagon livery to match the engine

Revision as of 15:11, 5 May 2019

Sprite types

Action0 - Defines new properties for anything added or changed by the NewGRF
0 Vehicles Trains RoadVehicles Ships Aircraft
Stations Canals & Rivers Bridges Houses Global Settings
Industry Tiles Industries Cargos Sound Effects Airports
Signals Objects Railtypes Airport Tiles Roadtypes
Tramtypes Towns
Action1 - Defines one or more graphics sets
Action2 - Defines graphics set IDs
  • Basic Action2
2 Vehicles
Stations Canals & Rivers Bridges Houses Global Settings
Industry Tiles Industries Cargos Sound Effects Airports
Signals Objects Railtypes Airport Tiles Roadtypes
Tramtypes Towns
VarAction2Advanced - Advanced features of Variational Action 2
Global Variables
VA2 Vehicles
Stations Canals & Rivers Bridges Houses Global Settings
Industry Tiles Industries Cargos Sound Effects Airports
Signals Objects Railtypes Airport Tiles Roadtypes
Tramtypes Towns
R Vehicles
Stations Canals & Rivers Bridges Houses Global Settings
Industry Tiles Industries Cargos Sound Effects Airports
Signals Objects Railtypes Airport Tiles Roadtypes
Tramtypes Towns
Action3 - Associates Action 2s with an Action 0
3 Vehicles
Stations Canals & Rivers Bridges Houses Global Settings
Industry Tiles Industries Cargos Sound Effects Airports
Signals Objects Railtypes Airport Tiles Roadtypes
Tramtypes Towns
Action3LiveryOverride - Change wagon livery to match the engine
Action4 - Defines text strings
Action5 - Replaces base set sprites not present in the original TTD.
Action6 - Modifies the contents of the following sprite
Action7 - Conditionally skips sprites or jumps to a label
GameConfigFlags - Configuration flags for Action 7/9 Variable 85
Action8 - Defines GRFID, Name and Description
Action9 - (see action 7 above)
ActionA - Replaces TTD base set sprites
ActionB - Generates an error message
ActionC - Does nothing (can be used to embed comments)
ActionD - Assigns parameters and calculates results
ActionE - Deactivates a NewGRF file
ActionF - Defines new town name styles
Action10 - Defines a label for action 7/9
Action11 - Defines new sounds
Action12 - Adds Unicode font glyphs
Action13 - Translates GRF-specific strings
Action14 - Static NewGRF information (OpenTTD only)
RealSprites - Sprites that actually are drawn on the screen
RecolorSprites - Changing other sprites' colors

Graphics properties

TTD defaults

NewGRF commons

Misc

Game mechanics