A bit of a clipping problem with the signs and it happens in both OTTD and TTDP...
Attachment:
signClip.png [ 12.19 KiB | Viewed 5521 times ]
It only happens with the signs on the slopes.
I think it might be with the bounding boxes, but I really don't know ... HELP!!!
There are two Action2s that one can use for sprite definition:
Basic format for tiles with a single building sprite
<Sprite-number> * <Length> 0F <set-id> 00 <groundsprite> <buildingsprite> <xoffset> <yoffset> <xextent> <yextent> <zextent>
which I use for signs on a flat tile
and
Extended format using multiple combined sprites
// <Sprite-number> * <Length> 0F <set-id> <num-sprites> <groundsprite> [<buildingsprite> (<xoffset> <yoffset> <zoffset> <xextent> <yextent> <zextent>) | (<xpixeloffset> <ypixeloffset> 80)] ...
which I use for signs on sloped tiles.
Here is the code:
Code:
// Action 1 Define a set of real sprites
9 * 4 01 0F 06 01
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
// - signs ----------------------------------------------------------------------------------
10 C:\mps\_tools\grfcodec\sprites\5_INFRA\02Signs\INFRASigns.pcx 16 16 09 47 64 -31 -16 // sign 1 3981 8D 0F
11 C:\mps\_tools\grfcodec\sprites\5_INFRA\02Signs\INFRASigns.pcx 96 16 09 47 64 -31 -16 // sign 2
// - signs on slope -------------------------------------------------------------------------
12 C:\mps\_tools\grfcodec\sprites\5_INFRA\02Signs\INFRASigns.pcx 16 16 09 47 64 -0 -24 // sign 1
13 C:\mps\_tools\grfcodec\sprites\5_INFRA\02Signs\INFRASigns.pcx 96 16 09 47 64 -0 -16 // sign 2
// - posts ----------------------------------------------------------------------------------
14 C:\mps\_tools\grfcodec\sprites\5_INFRA\02Signs\INFRASigns.pcx 176 16 09 23 64 -31 -0 // 03 - WS 3984 90 0F
15 C:\mps\_tools\grfcodec\sprites\5_INFRA\02Signs\INFRASigns.pcx 256 16 09 39 64 -31 -8 // 0C - NE 3993 99 0F
// Action 2 ---------------------------------------------------------------------------------
16 * 17 02 0F 00 00
8D 0F 00 00
00 80 00 80
00 00
0F 0F E5
17 * 17 02 0F 01 00
8D 0F 00 00
01 80 00 80
00 00
0F 0F E5
// -------------------------------------------------------------------------------------------
18 * 25 02 0F 02 // 03
02 // <num-sprites>
90 0F 00 00 // <groundsprite>
04 80 00 80 // [<buildingsprite>{post}
00 00 00 // (<xoffset> <yoffset> <zoffset>
0F 0F 0F // <xextent> <yextent> <zextent>)
02 80 00 80 // [<buildingsprite>{sign}
00 00 // (<xpixeloffset> <ypixeloffset>
80 // 80)] ...
19 * 25 02 0F 03 // 0C
02
99 0F 00 00
05 80 00 80
00 00 00
0F 0F 0F
03 80 00 80
00 00
80
Does anybody have any insight into this?