This is TikiWiki 1.9.2 -Sirius- © 2002–2005 by the Tiki community Fri 10 of Sep, 2010 [13:43 UTC]
TTDPatch Site

Action0Ships

Action 0 properties for ships print
history

Action 0 - Properties for ships

Defining properties of ships.



Properties

NumberVersionSizeDescription
08 BSprite (FF for new graphics)
09 BRefittable (0 no, 1 yes)
0A BCost factor
0B BSpeed in mph*3.2
0C BCargo type, see column 3 (type B) in CargoTypes
0D WCapacity
0F BRunning cost factor
10 BSound effect type (4=cargo ship, 5=passenger ship)
111DBit mask of cargo types available for refitting, see column 2 (bit values) in CargoTypes
126BCallback flags bit mask, see below
13(a)BRefit cost, using 1/32 of the default refit cost base
14(b)BOcean speed fraction, sets fraction of top speed available in the ocean; e.g. 00=100%, 80=50%, FF=0.4%
15(b)BCanal speed fraction, same as above but for canals
16(b)BRetire vehicle early, this many years before the end of phase 2 (see Action0General)
17(c)BMiscellaneous vehicle flags
18(c)WRefittable cargo classes, see train prop. 28
19(c)WNon-refittable cargo classes, see train prop. 29
1A(d)DLong format introduction date
1B(e)B*Sort the purchase list


Version codes:

CodeVersion
(a)2.0.1 alpha 30
(b)2.0.1 alpha 44
(c)2.0.1 alpha 58
(d)2.5 r1210, OpenTTD r7191
(e)OpenTTD r13831


Comments

Callbacks (12)


For ships, the following callbacks have to be enabled by setting the corresponding bit in property 12 (certain other, not as frequently used callbacks are available without setting a bit here):

BitValueVariable 0C valueCallback
2412Load amount
3815Set refitted capacity
52019show a suffix after the cargo type name
6402DSelect color mapping for vehicle
78033Sound effect callbacks


Bit is the bit you have to set, you do this by adding all the values for all the bits. Variable 0C value is what variable 0C will be set to, for checking it in the variational action 2 for callbacks.

Miscellaneous flags (17)


This is a bit mask, with the following bits:

BitValueMeaning
01reserved, do not use
12Uses two company colors


Long format introduction date (1A)


Set the vehicle introduction date, in days since the year 0. This takes account of leap years; dividable by 4, but not 100 unless 400. A start date of 1920-01-01 is obtained with a value of 701265 (51 B3 0A 00). This property must be set after property 00 to take effect. In TTDPatch, dates after 2044 will be limited to 2044.

Sort vehicle list (1B)


See sort vehicle list for trains for details.

Created by: system last modification: Sunday 31 of January, 2010 [03:19:20 UTC] by planetmaker


Menu
[ Execution time: 0.26 secs ]   [ Memory usage: 10.99MB ]   [ 86 database queries used ]   [ GZIP Enabled ]   [ Server load: 2.60 ]