// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel

0 * 4 72 00 00 00

// Czech Total Replacement - Bridges by Vasatko       //
// Version 0.1                                         //
// Date 2019-01-08                                     //

// path to sprites
//setpath(bridges/output/sprites)

// include definitions
// global

// GRF ID

// include strings

// GLOBAL //

// CLASS //

1 * 0 04 06 FF 01 00 DC "CZTR :: test" 00
2 * 0 04 06 95 01 00 DC C3 9E "CZTR :: testik"
00

3 * 0 04 06 FF 01 01 DC "CZTR :: test rail" 00
4 * 0 04 06 95 01 01 DC C3 9E "CZTR :: testik zel"
00

5 * 0 04 06 FF 01 02 DC "CZTR :: test road" 00
6 * 0 04 06 95 01 02 DC C3 9E "CZTR :: testik cest"
00

// skip if toyland
7 * 0 07 83 01 02 03 00

//                   Initialise GRF                   //

8 * 0 14 "C" "INFO"
"B" "NPAR" 01 00 00
"B" "BLTR" 01 00 "3"
"T" "NAME" 7f "CZTR Bridges" 00

"T" "DESC" 7f 0d

94 "  Czech Total Replacement Set " 0d
89 "					  bridges" 0d

98 "			v0.7 by Vasatko (2019-01)" 0d
0d
89 "Czech bridges"0d
00

"T" "URL_" 7f "https://www.tt-forums.net/viewtopic.php?t=76558" 00

"B" "PALS" 01 00 "A"
"B" "VRSN" 04 00 20 00 00 00
"C" "PARA"

00

00 00
9 * 0 08 08 56 48 00 03 "CZTR Bridges" 00 0d

94 "  Czech Total Replacement Set " 0d
89 "					  bridges" 0d

98 "			v0.7 by Vasatko (2019-01)" 0d
0d
89 "Czech bridges"0d
00
10 * 0 0C "m4nfo header r111 14.03.2018"
11 * 0 0C "m4nfo bridges r9 14.03.2018"

// rebuilt TTD's original suspension steel (golden) bridge
12 * 0  00 06 09 01 05
0F 9e 07 00 00
09 03
0A 09
0B 32
0C 50 00
0E 01
10 00 DC
11 01 DC
12 02 DC

13 * 9 0D 00 00 00 FE FF 08 2f 00 // next free parameter
14 * 0 06 00 82 03 FF // TEST OK
15 * 0 0A 01 2f 00 00
16 /home/vasatko/_data/bridges/output/sprites/PLACEHOLDER.png 8bpp 0 0 32 32 0 0 normal
17 /home/vasatko/_data/bridges/output/sprites/PLACEHOLDER.png        8bpp     0     0    32    32     0     0   normal
| bridges/output/sprites/mosty_cz.png  32bpp   357     0   178   102  -217   -58   zi4 chunked
18 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 130 40 01 47 52 -49 -35
19 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 194 40 01 42 47 -44 -29
20 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 258 40 01 47 47 1 -34
21 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 322 40 01 42 52 1 -29
22 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 386 40 01 47 52 1 -34
23 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 450 40 01 42 47 0 -29
// [8] b_rail
24 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 514 40 01 47 50 -23 -24
25 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 578 40 01 41 50 -23 -18
26 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 642 40 01 47 50 -23 -24
27 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 706 40 01 41 50 -24 -17
28 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 2 104 01 47 50 -23 -23
29 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 66 104 01 41 50 -23 -17
30 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 130 104 01 47 50 -23 -23
31 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 194 104 01 41 50 -23 -17
// [16] b_road
32 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 258 104 01 47 50 -23 -24
33 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 322 104 01 41 50 -23 -18
34 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 386 104 01 47 50 -23 -24
35 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 450 104 01 41 50 -23 -17
36 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 514 104 01 47 50 -23 -23
37 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 578 104 01 41 50 -23 -17
38 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 642 104 01 47 50 -23 -23
39 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 706 104 01 41 50 -23 -17
// [24] b_mono
40 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 2 168 01 47 50 -23 -24
41 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 66 168 01 41 50 -23 -18
42 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 130 168 01 47 50 -23 -24
43 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 194 168 01 41 50 -23 -17
44 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 258 168 01 47 50 -23 -23
45 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 322 168 01 41 50 -23 -17
46 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 386 168 01 47 50 -23 -23
47 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 450 168 01 41 50 -23 -17
// [32] b_maglev
48 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 514 168 01 47 50 -23 -24
49 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 578 168 01 41 50 -23 -18
50 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 642 168 01 47 50 -23 -24
51 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 706 168 01 41 50 -23 -17
52 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 2 232 01 47 50 -23 -23
53 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 66 232 01 41 50 -23 -17
54 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 130 232 01 47 50 -23 -23
55 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 194 232 01 41 50 -23 -17
// [40] b_pillar
56 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 258 232 01 13 12 -5 -7
57 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 290 232 01 13 12 -5 -7
// [42] b_pillar_s (shifted pillars)
58 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 258 232 01 13 12 -37 9
59 /home/vasatko/_data/bridges/output/sprites/test_bridge.pcx 290 232 01 13 12  27 9
// b_pal (recolour tables)
// [44] blue grey, rail
60 * 257 00
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 46 d7 d8 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff
// [45] ocean blue, road
61 * 257 00
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 46 d7 d8 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff
// [46] golden, mono + maglev
62 * 257 00
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 46 3c 3d 3e 3f 40 41 42 43 44 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff

63 * 0 0D 20 01 00 FF 00 00 00 00
64 * 0 0D 21 01 00 FF 01 00 00 00
65 * 0 0D 22 01 00 FF 02 00 00 00
66 * 0 0D 23 01 00 FF 03 00 00 00
67 * 0 0D 24 01 00 FF 04 00 00 00
68 * 0 0D 25 01 00 FF 05 00 00 00
69 * 0 0D 26 01 00 FF 06 00 00 00
70 * 0 0D 27 01 00 FF 07 00 00 00
71 * 0 0D 28 01 00 FF 08 00 00 00
72 * 0 0D 29 01 00 FF 09 00 00 00
73 * 0 0D 2a 01 00 FF 0a 00 00 00
74 * 0 0D 2b 01 00 FF 0b 00 00 00
75 * 0 0D 2c 01 00 FF 0c 00 00 00
76 * 0 0D 2d 01 00 FF 0d 00 00 00
77 * 0 0D 2e 01 00 FF 0e 00 00 00
78 * 0 0D 2f 01 00 FF 0f 00 00 00
79 * 0 0D 30 01 00 FF 10 00 00 00
80 * 0 0D 31 01 00 FF 11 00 00 00
81 * 0 0D 32 01 00 FF 12 00 00 00
82 * 0 0D 33 01 00 FF 13 00 00 00
83 * 0 0D 34 01 00 FF 14 00 00 00
84 * 0 0D 35 01 00 FF 15 00 00 00
85 * 0 0D 36 01 00 FF 16 00 00 00
86 * 0 0D 37 01 00 FF 17 00 00 00
87 * 0 0D 38 01 00 FF 18 00 00 00
88 * 0 0D 39 01 00 FF 19 00 00 00
89 * 0 0D 3a 01 00 FF 1a 00 00 00
90 * 0 0D 3b 01 00 FF 1b 00 00 00
91 * 0 0D 3c 01 00 FF 1c 00 00 00
92 * 0 0D 3d 01 00 FF 1d 00 00 00
93 * 0 0D 3e 01 00 FF 1e 00 00 00
94 * 0 0D 3f 01 00 FF 1f 00 00 00
95 * 0 0D 40 01 00 FF 20 00 00 00
96 * 0 0D 41 01 00 FF 21 00 00 00
97 * 0 0D 42 01 00 FF 22 00 00 00
98 * 0 0D 43 01 00 FF 23 00 00 00
99 * 0 0D 44 01 00 FF 24 00 00 00
100 * 0 0D 45 01 00 FF 25 00 00 00
101 * 0 0D 46 01 00 FF 26 00 00 00
102 * 0 0D 47 01 00 FF 27 00 00 00
103 * 0 0D 48 01 00 FF 28 00 00 00
104 * 0 0D 49 01 00 FF 29 00 00 00
105 * 0 0D 4a 01 00 FF 2a 00 00 00
106 * 0 0D 4b 01 00 FF 2b 00 00 00
107 * 0 0D 4c 01 00 FF 2c 00 00 00
108 * 0 0D 4d 01 00 FF 2d 00 00 00
109 * 0 0D 4e 01 00 FF 2e 00 00 00
110 * 0 0D 4f 01 00 FF 2f 00 00 00

// entry points for sprites

// general bridge segment

// special bridge segments:

// segment entry
// bridge entry gate
// segment exit
// segment body
// segment connector

// this is '/', without pillar
// this is '/', with front pillar
// this is '\', with pillar
// this is '=', without pillar
// this is '^', with pillar

// make all 6 bridge elements

111 * 0 06
29 02 08   4c 02 0a
21 02 0c   4c 02 0e
48 02 10

2d 02 18   4c 02 1a
25 02 1c   4c 02 1e
49 02 20

FF
112 * 0 00 06 01 01 05 0D 00 06 29 00 4c 00  21 00 4c 00  48 00 00 00  00 00 00 00  2d 00 4c 00  25 00 4c 00  49 00 00 00  00 00 00 00

// bridge ramps - use original sprites but recolor them

113 * 0 06

FF
114 * 0 00 06 01 01 05 0D 06 01 86 09 00 00  88 09 00 00  85 09 00 00  87 09 00 00  8a 09 00 00  8c 09 00 00  89 09 00 00  8b 09 00 00