Difference between revisions of "Main Page"
From GRFSpecs
Jump to navigationJump to search (add action indicator to tables) |
(/* Make some descriptions more understandable) |
||
Line 1: | Line 1: | ||
== Sprite types == |
== Sprite types == |
||
− | ;[[Action0]] - Defines new |
+ | ;[[Action0]] - Defines new properties for anything added or changed by the NewGRF |
:{| |- |
:{| |- |
||
|rowspan="4" align="center" style="width:3em"|'''0''' |
|rowspan="4" align="center" style="width:3em"|'''0''' |
||
Line 27: | Line 27: | ||
| ''Towns'' |
| ''Towns'' |
||
|} |
|} |
||
− | ;[[Action1]] - Defines |
+ | ;[[Action1]] - Defines one or more graphics sets |
;[[Action2]] - Defines graphics set IDs |
;[[Action2]] - Defines graphics set IDs |
||
* Basic Action2 |
* Basic Action2 |
||
Line 52: | Line 52: | ||
| ''Towns'' |
| ''Towns'' |
||
|} |
|} |
||
− | * [[VariationalAction2]] - |
+ | * [[VariationalAction2]] - A conditional switch that determines a [[Callbacks|callback]] result or chains to another Action 2 |
: [[VarAction2Advanced]] - Advanced features of Variational Action 2 |
: [[VarAction2Advanced]] - Advanced features of Variational Action 2 |
||
: [[GlobalVariables | Global Variables]] |
: [[GlobalVariables | Global Variables]] |
||
Line 77: | Line 77: | ||
| [[VariationalAction2/Towns | Towns]] |
| [[VariationalAction2/Towns | Towns]] |
||
|} |
|} |
||
− | * [[RandomAction2]] - |
+ | * [[RandomAction2]] - A randomized Variational Action 2 |
:{| |- |
:{| |- |
||
|rowspan="4" align="center" style="width:3em"|'''R''' |
|rowspan="4" align="center" style="width:3em"|'''R''' |
||
Line 103: | Line 103: | ||
* [[Callbacks]] - List of available callbacks |
* [[Callbacks]] - List of available callbacks |
||
− | ;[[Action3]] - Associates |
+ | ;[[Action3]] - Associates Action 2s with an Action 0 |
:{| |- |
:{| |- |
||
|rowspan="4" align="center" style="width:3em"|'''3''' |
|rowspan="4" align="center" style="width:3em"|'''3''' |
||
Line 128: | Line 128: | ||
: [[Action3LiveryOverride]] - Change wagon livery to match the engine |
: [[Action3LiveryOverride]] - Change wagon livery to match the engine |
||
;[[Action4]] - Defines text strings |
;[[Action4]] - Defines text strings |
||
− | ;[[Action5]] - |
+ | ;[[Action5]] - Replaces base set sprites not present in the original TTD. |
;[[Action6]] - Modifies the contents of the following sprite |
;[[Action6]] - Modifies the contents of the following sprite |
||
;[[Action7]] - Conditionally skips sprites or jumps to a label |
;[[Action7]] - Conditionally skips sprites or jumps to a label |
||
Line 136: | Line 136: | ||
;[[ActionA]] - Replaces TTD base set sprites |
;[[ActionA]] - Replaces TTD base set sprites |
||
;[[ActionB]] - Generates an error message |
;[[ActionB]] - Generates an error message |
||
− | ;[[ActionC]] - Does nothing |
+ | ;[[ActionC]] - Does nothing (can be used to embed comments) |
;[[ActionD]] - Assigns parameters and calculates results |
;[[ActionD]] - Assigns parameters and calculates results |
||
* [[ReadingOtherGRFParameters]] - Reading another GRF file's parameters |
* [[ReadingOtherGRFParameters]] - Reading another GRF file's parameters |
||
Line 143: | Line 143: | ||
;[[ActionE]] - Deactivates a NewGRF file |
;[[ActionE]] - Deactivates a NewGRF file |
||
;[[ActionF]] - Defines new town name styles |
;[[ActionF]] - Defines new town name styles |
||
− | ;[[Action10]] - Defines |
+ | ;[[Action10]] - Defines a label for action 7/9 |
− | ;[[Action11]] - Defines new |
+ | ;[[Action11]] - Defines new sounds |
− | ;[[Action12]] - |
+ | ;[[Action12]] - Adds Unicode font glyphs |
;[[Action13]] - Translates GRF-specific strings |
;[[Action13]] - Translates GRF-specific strings |
||
− | ;[[Action14]] - Static NewGRF |
+ | ;[[Action14]] - Static NewGRF information (OpenTTD only) |
− | ;[[RealSprites]] - Sprites that actually |
+ | ;[[RealSprites]] - Sprites that actually are drawn on the screen |
− | ;[[RecolorSprites]] - Changing |
+ | ;[[RecolorSprites]] - Changing other sprites' colors |
== Graphics properties == |
== Graphics properties == |
Revision as of 23:41, 28 January 2012
Sprite types
- Action0 - Defines new properties for anything added or changed by the NewGRF
- Basic Action2
2 Vehicles Stations Canals & Rivers Bridges Houses Global Settings Industry Tiles Industries Cargos Sound Effects Airports Signals Objects Railtypes Airport Tiles Towns
- VariationalAction2 - A conditional switch that determines a callback result or chains to another Action 2
- 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 Towns
- RandomAction2 - A randomized Variational Action 2
R Vehicles Stations Canals & Rivers Bridges Houses Global Settings Industry Tiles Industries Cargos Sound Effects Airports Signals Objects Railtypes Airport Tiles Towns
- Callbacks - List of available callbacks
- 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 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
- ReadingOtherGRFParameters - Reading another GRF file's parameters
- ReadingGameSettings - Reading game configuration settings
- GRFResourceManagement - Preventing conflicts with limited resources
- 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
- Palettes - Palettes used by the game
- Coordinates - Coordinates used for sprite alignement
TTD defaults
- DefaultHouseProps - Default property values for TTD's houses
- IndustryTileDefaultProps - Default property values for TTD's industry tiles
- IndustryDefaultProps - Default properties values for TTD's industries
- CargoDefaultProps - Default property values for TTD's cargo types
- VehicleIDs - Default vehicle IDs
- AirportTypes - Default Airport IDs
- AirportTileDefaultProps - Default airport tile properties
NewGRF commons
- Cargo classes - Commonly used cargo classes
- Cargo labels - Commonly used cargo labels
- Object classes - Commonly used object clases
- Railtype labels - Commonly used railtype labels
Misc
- Features - List of all features and feature-specific actions.
- Base Costs
- Vehicle Refitting
- GRF loading stages
- Global variables
- Storages
- String control codes
- Text IDs (TTD + TTDPatch + NewGRF defined)
- Syntax details
- Debugging NewGRFs
- TTDPatch error codes on loading NewGRFs