// Automatically generated by GRFCODEC. Do not modify!
// (Info version 5)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4	 18 00 00 00

// check for alpha 63
1 * 9	 07 8B 04 05 6E 02 0A 02 01
2 * 19	 0B 03 1F 00 "2.0.1 alpha 63" 00

// check for autoreplace switch
3 * 6	 07 85 01 00 71 02
4 * 19	 0B 00 1F 02 "autoreplace on" 00
5 * 6	 07 83 01 03 23 00

// skip if DBSetXL is not active
6 * 9	 07 88 04 07 "mb" 04 01 00

// To be activated once DBSetXL uses GRM
//		// skip if ID 0 not owned by DBSetXL
//    7 * 5	 0D 00 02 00 00			// set param0 = 0
//    8 * 9	 0D 00 00 06 FE FF 00 01 00	// get owner of ID
//    9 * 9	 07 00 04 03 "mb" 04 01 00	// skip set if not owned by DBSetXL

// Action 8
7 * 224	 08 02 "JD" 53 07
"Experimental autoreplace scheme for DBSetXL 0.8" 00
"This file implements an autoreplace schemel for the "
"DBSetXL 0.8.  Do not activate this file unless the "
"DBSetXL is in use at the time!"
0D 0D "This file is in the public domain." 00

// Action 1/2 to allow callback failure result
8 * 4	 01 00 01 00
9 * 9	 02 00 FF 01 01 00 00 00 00

// Define the replacement scheme
// "support" means these types will arrive here but not be used

// Passengers, Steam/Diesel Local
// Use BR92 BR75 V-140 VT-95 BR515 V100 BR612, support BR85
// IDs  00   73   07    09    72    0C   10             5B
10 * 38	 02 00 00 81 10 00 FF 07
10 80 00 00
0C 80 01 01
72 80 02 02
09 80 03 03
07 80 04 04
73 80 05 05
00 80 06 06
FF 00

// Passengers, Steam/Diesel Main line
// Use BR38 BR18 BR01 BR05 V200 VT-11 V160 BR612, support BR45 BR232
// IDs  01   02   03   04   0A   0B    0D   10             05   0E
11 * 42	 02 00 01 81 10 00 FF 08
10 80 00 00
0D 80 01 01
0B 80 02 02
0A 80 03 03
04 80 04 04
03 80 05 05
02 80 06 06
01 80 07 07
FF 00

// Passengers, DMU
// Use VT-137 VT-08 BR612
// IDs   06    0B    10
12 * 22	 02 00 02 81 10 00 FF 03
10 80 00 00
0B 80 01 01
06 80 02 02
FF 00

// Passengers, Electric Local
// Use E62 BR152 E75 E44 ET-30 BR140 BR111 BR112
// IDs  71  6B    11  13  15    16    70    38
13 * 42	 02 00 03 81 10 00 FF 08
38 80 00 00
70 80 01 01
16 80 02 02
15 80 03 03
13 80 04 04
11 80 05 05
6B 80 06 06
71 80 07 07
FF 00

// Passengers, Electric Mainline
// Use BR116 BR110 BR103 BR181 BR120 BR101 BR182, support E95 E94 BR150 BR155/250 BR191
// IDs  6C    18     19   36    37    55    57            12  14   17      1A      5D
14 * 38	 02 00 04 81 10 00 FF 07
57 80 00 00
55 80 01 01
37 80 02 02
36 80 03 03
19 80 04 04
18 80 05 05
6C 80 06 06
FF 00

// Freight, Steam/Diesel
// Use BR92 BR75 BR85 V-140 V100 V160 BlueTiger, support VT-137 VT-08 VT-95 BR612
// IDs  00   73   5B   07    0C   0D    6A                 06    08    09    10
15 * 38	 02 00 05 81 10 00 FF 07
6A 80 00 00
0D 80 01 01
0C 80 02 02
07 80 03 03
5B 80 04 04
73 80 05 05
00 80 06 06
FF 00

// Freight, Steam/Diesel Mainline
// Use BR01 BR45 V200 V160 BR232 BlueTiger, support BR38 BR18 BR05 VT-11
// IDs  03   05   0A   0D   0E     6A                01   02   04    0B
16 * 34	 02 00 06 81 10 00 FF 06
6A 80 00 00
0E 80 01 01
0D 80 02 02
0A 80 03 03
05 80 04 04
03 80 05 05
FF 00

// Freight, Electric
// Use E62 BR152 BR191 BR175 BR195 BR144 BR195 BR140 BR150 BR155/250 BR120 BR101, support ET-30
// IDs 71   6B    5D    11    12    13    14    16    17    1S        37    55             15
17 * 58	 02 00 07 81 10 00 FF 0C
55 80 00 00
37 80 01 01
1A 80 02 02
17 80 03 03
16 80 04 04
14 80 05 05
13 80 06 06
12 80 07 07
11 80 08 08
5D 80 09 09
6B 80 0A 0A
71 80 0B 0B
FF 00

// Pick appropriate line from above

// Passengers, pick passenger line
18 * 126	 02 00 10 81 C6 00 FF 1D
// Steam/Diesel local
00 00 00 00 00 00 73 73 00 00 07 07 00 00 09 09
00 00 72 72 00 00 0C 0C 00 00 10 10 00 00 5B 5B

// Steam/Diesel main line
01 00 01 05 01 00 0A 0B 01 00 0D 0E 01 00 10 10

// DMUs
02 00 06 06 02 00 08 08 02 00 10 10

// Electric, local
03 00 70 71 03 00 6B 6B 03 00 11 11 03 00 13 13
03 00 15 16 03 00 38 38

// Electric, main line
04 00 6C 6C 04 00 17 1A 04 00 36 37 04 00 55 55
04 00 12 12 04 00 14 14 04 00 57 57 04 00 5D 5D

// unsupported
FF 00

// Freight, pick line
19 * 82	 02 00 11 81 C6 00 FF 12
// Steam/Diesel local
05 00 00 00 05 00 73 73 05 00 5B 5B 05 00 06 09
05 00 0C 0D 05 00 6A 6A 05 00 10 10

// Steam/Diesel main line
06 00 01 05 06 00 0A 0B 06 00 0D 0E 06 00 6A 6A

// Electric
07 00 71 71 07 00 6B 6B 07 00 5D 5D 07 00 11 17
07 00 1A 1A 07 00 37 37 07 00 55 55

// Unsupported
FF 00

// Check whether passengers/mail or freight

// Complicated, has both passengers/mail and freight
// If majority of wagons are passengers,
// it's a passenger train, else freight
20 * 14	 02 00 22 81 42 08 FF 01 10 00 00 00 11 00

// No passengers -> is freight, else #22
21 * 14	 02 00 21 81 42 00 01 01 11 00 00 00 22 00

// Nothing but mail & passengers -> is passengers, else #21
22 * 14	 02 00 20 81 42 00 FC 01 10 00 00 00 21 00

// Check callback Define generic callback ID
23 * 14	 02 00 30 81 0C 00 FF 01 20 00 34 34 FF 00

// Define generic callback ID
24 * 6	 03 00 00 00 30 00