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
general: a industry can accept and produce multiple cargos. CB 14B/14C define which cargos and they define a sorting order for the GUI. In all other places the sorting order does not matter. All callbacks get a cargo type (according to cargo translation table) instead of "n-th cargo". industry properties: * property 10 and 11 remain unchanged. additional cargos can only be defined via callback. * property 12 and 13, 1C, 1D and 1E remain unchanged. additional cargos must use production callback. *property 1A: new special flag 18/0x40000 to enable more than 3/2 input/output cargos. this changes the behaviour of various callbacks, see below. industry tile properties: * property 0A, 0B and 0C remain unchanged. Industries have to distribute multiple acceptances over multiple tiles. industry variables: * var 69[x]: waiting cargo for cargo x. x is an index into the cargo translation table * var 6A[x]: Amount of cargo produced this month for cargo x. x is an index into the cargo translation table * var 6B[x]: Amount of cargo transported this month for cargo x (like 98 and 9A). x is an index into the cargo translation table * var 6C[x]: Amount of cargo produced last month for cargo x (like 9E and A0). x is an index into the cargo translation table * var 6D[x]: Amount of cargo transported last month for cargo x (like A2 and A4). x is an index into the cargo translation table * var 6E[x]: Date when cargo x was accepted last in days since year 0 (similar to B4, but per cargo type). x is an index into the cargo translation table * var 8A and 8C remain unchanged. there is no matching variable for other cargos. * var 9C and 9D remain unchanged. there is no matching variable for other cargos. callback 2B and 2C remain unchanged. Industries have to distribute multiple acceptances over multiple tiles. callback 37: * if special flag 40000 is clear: var 18 bits 0..7: 00..04 with old behaviour * if special flag 40000 is set: var 18 bits 0..7: 00: input cargo 01: output cargo var 18 bits 16..23: cargo type from cargo translation table callback 3D remains unchanged, it works just fine. callback 14B, 14C: * these callback are now called more often than before. * if the newgrf returns more types than allowed, this raises a newgrf error message. (ErrorUnknownCallbackResult) * if special flag 40000 is clear, this also enforced max 3 input and 2 output cargos. * these callbacks are now also called in "purchase list". * if the callback may return different cargo types at different types, then the "purchase list" variant must return a superset of all possible results. OpenTTD checks this and issues ErrorUnknownCallbackResult or similar. production callback version 02: 02 0A <set-id> <version> <num-input-cargo> ( <input-cargo-x> <subtract-in-x> )* <num-output-cargos> ( <output-cargo-x> <add-out-x> )* <again> <set-id> B ID for this definition <version> B Version of the production callback format, 02 <num-input-cargo> B Number of ( <input-cargo-x> <subtract-in-x> ) pairs to follow <input-cargo-x> B Index into cargo translation table. Must be one of the types returned by CB 14B, or is ignored (no error) <subtract-in-x> B Index of register, containing the amount of cargo to process. <num-output-cargo> B Number of ( <output-cargo-x> <add-out-x> ) pairs to follow <output-cargo-x> B Index into cargo translation table. Must be one of the types returned by CB 14C, or is ignored (no error) <add-out-x> B Index of register, containing the amount of cargo to output. <again> B Number of <again> register. Repeat callback if the value of the register isn't zero, do not repeat otherwise
Mark as private
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
forever