The nfo/grf Technical Reference

Action 0 - Properties for canals / rivers

Defining properties of canals and rivers



Properties

NumberVersionSizeDescription
082.6 r1560, OTTD r20353BCanals / Rivers Callback flags, see below
092.6 r1573, OTTD r20352BCanals / Rivers Graphic flags


Description

Canals callback (08)


For canals and rivers, the following callbacks can be defined by setting the corresponding bit in property 08:

BitValueVariable 0C valueCallback
010x147Enable add sprite offset callback*

* Please note that not all feature IDs support this callback

Graphic flags (09)


Description of provided format and features in the sprite block. If bit 0 of graphic flags is enabled, the way sprites and the count of sprites will change.

IDDescriptionSpritesSprites when Bit 0 is set
00Watercliffs4 slope sprites1 flat ground sprite followed by 4 slope sprites
01Locks24undefined
02Dikes12undefined
03Icons1undefined
04Flat docks4undefined
05River Slope41 flat ground sprite followed by 4 slope sprites
06River waterside12*5 (Last 4 for slopes)undefined
07River GUI2undefined

Note:

It's not allowed to set bit 0 for undefined entries!