Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
ABAP
ActionScript
ActionScript 3
Ada
AIMMS3
ALGOL 68
Apache configuration
AppleScript
Apt sources
ARM ASSEMBLER
ASM
ASP
asymptote
Autoconf
Autohotkey
AutoIt
AviSynth
awk
BASCOM AVR
Bash
Basic4GL
BibTeX
BlitzBasic
bnf
Boo
Brainfuck
C
C#
C (LoadRunner)
C (Mac)
C (WinAPI)
C++
C++ (Qt)
C++ (WinAPI)
CAD DCL
CAD Lisp
CFDG
ChaiScript
Chapel
CIL
Clojure
CMake
COBOL
CoffeeScript
ColdFusion
CSS
Cuesheet
D
Dart
DCL
DCPU-16 Assembly
DCS
Delphi
Diff
DIV
DOS
dot
E
ECMAScript
Eiffel
eMail (mbox)
EPC
Erlang
Euphoria
EZT
F#
Falcon
FO (abas-ERP)
Formula One
Fortran
FreeBasic
FreeSWITCH
GADV 4CS
GAMBAS
GDB
genero
Genie
glSlang
GML
GNU/Octave
GNU Gettext
GNU make
Gnuplot
Go
Groovy
GwBasic
Haskell
Haxe
HicEst
HQ9+
HTML
HTML5
Icon
INI
Inno
INTERCAL
Io
ISPF Panel
J
Java
Java(TM) 2 Platform Standard Edition 5.0
Javascript
JCL
jQuery
KiXtart
KLone C
KLone C++
LaTeX
LDIF
Liberty BASIC
Lisp
LLVM Intermediate Representation
Locomotive Basic
Logtalk
LOLcode
Lotus Notes @Formulas
LotusScript
LScript
LSL2
Lua
MagikSF
MapBasic
Matlab M
Microchip Assembler
Microsoft Registry
mIRC Scripting
MMIX
Modula-2
Modula-3
MOS 6502 (6510) ACME Cross Assembler format
MOS 6502 (6510) Kick Assembler format
MOS 6502 (6510) TASM/64TASS 1.46 Assembler format
Motorola 68000 - HiSoft Devpac ST 2 Assembler format
Motorola 68000 Assembler
MXML
MySQL
Nagios
NetRexx
newlisp
nginx
Nimrod
NML NewGRF Meta Language
NSIS
Oberon-2
Objeck Programming Language
Objective-C
OCaml
OCaml (brief)
ooRexx
OpenBSD Packet Filter
OpenOffice.org Basic
Oracle 8 SQL
Oracle 11 SQL
Oxygene
OZ
ParaSail
PARI/GP
Pascal
PCRE
per
Perl
Perl 6
PHP
PHP (brief)
PIC16
Pike
Pixel Bender 1.0
PL/I
PL/SQL
PostgreSQL
PostScript
POVRAY
PowerBuilder
PowerShell
ProFTPd configuration
Progress
Prolog
PROPERTIES
ProvideX
Puppet
PureBasic
Python
Python for S60
q/kdb+
QBasic/QuickBASIC
QML
R / S+
Racket
Rails
RBScript
REBOL
rexx
robots.txt
RPM Specification File
Ruby
Rust
SAS
Scala
Scheme
SciLab
SCL
sdlBasic
Smalltalk
Smarty
SPARK
SPARQL
SQL
Squirrel Script
Squirrel Script with OpenTTD AI/GS
StandardML
StoneScript
SystemVerilog
T-SQL
TCL
Tera Term Macro
Text
thinBasic
TypoScript
Unicon (Unified Extended Dialect of Icon)
Uno Idl
Unreal Script
UPC
Urbi
Vala
vb.net
VBScript
Vedit macro language
Verilog
VHDL
Vim Script
Visual Basic
Visual Fox Pro
Visual Prolog
Whitespace
Whois (RPSL format)
Winbatch
X++
XBasic
XML
Xorg configuration
YAML
ZiLOG Z80 Assembler
ZXBasic
* *Action 8* Identification of the GRF, can only have some other actions before it. Defines the GRFformat (the set of features used by the GRF), an ID, the name, and a description. >>> Before action 8 appear: action14, and all compatiblity checks/warning/errors (i.e. action b and action e) >>> A NewGRF cannot error out after action 8. * *Action 6* Write GRF parameter values into the next sprite (initialization and activation stage). >>> The difference between initialisation and activation is irrelevant when not using the "add"-mechanism, which is pretty pointless. * *Action 12* Define Unicode glyphs in sprites following this action. >>> Belongs rather into the "Replace sprites from the baseset" section * *Random action 2* Use random numbers for deciding switched. Also defines re-randomize behaviour. >>> The re-randomisation is the only reason this still exists. Deciding is done better via VarAct2. * *Action E* De-activate other GRF (not supported by OpenTTD). >>> Deactivation is supported, though disencouraged (i.e. still useless). What is not supported is "force activation" (= activation in title screen) * What is 'variable 10' doing in http://newgrf-specs.tt-wiki.net/wiki/Action2/Vehicles ? >>> Variable 10 and 18 are "callback specific" variables. "Resolving graphics" and "rerandomisation" should be just considered another callback. * Why is action 2 'entries...' a Word (syntax table). >>> Original reason: Early TTDP (and sometimes still current TTDP) writes the parsing result of NewGRF into the same place as the input. In particular it overwrites some fields in the actions with pointers/references to other items, like assiging all Action2 a unique 16bit id (instead of the reused 8 bit ids). That's why TTDP needs some "space" in some actions, and that's why there are grf loading stages and why action 7 and 9 can only skip certain actions (they may not skip setting up references in the sprites, else TTDP crashes later when trying to follow them) >>> Todays reason: Action1 can have more than 256 sets. And action1 actually supports "callback result" values.
Mark as private
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
forever