Sorry for the late reply, I only just saw this post.
a.locritani wrote:this is a coal wagon with a refitting option to transport bulk cargos (28 10 00) excluding fruit and Grain/Wheat/Maize (1D 40 20 00 00) and I understand it (or at least I hope I'm understanding right)
Correct.
but still have a question: why excluding passenger (29 01 00)? aren't they excluded automatically because are not a bulk cargo? and should I add after 29 the liquid cargo code (so excluding bulk and liquid cargos, as fertilizer)?
After George decided that "Tourists" should be passengers + express cargo, we had a situation where goods vehicles were refittable to tourists. Consequently, I've made it a habit to explicitly exclude passengers from any non-passenger vehicle.
Otherwise, I try to use prop 29 as little as possible, to make sure that there'll always be at least one vehicle that can carry any cargo. My aim with oldwagons-newcargos was maximum compatibility, rather than realism.
second question: this line repeats itself for all coal wagons (standard, monorail) but not for maglev wagon but still maglev coal wagon can be refitted, in OTTD. Why?
The refittability for the maglev coal wagon (5B) is set in sprite 8. Sprites 2 through 10 set the same refittability for the coal, iron ore and copper ore wagons for all three rail types.
and finally, third question: why after these codelines a callback and several action 2/action 3 are needed?
I needed to use a capacity callback (callback 15) for the passenger, mail, valuables and goods vehicles. Without the callback, (O)TTD applies a capacity multiplier when fitting to or from those four cargos.
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 37 00 00 00
1 * 133 08 07 44 44 F0 00 "Old Wagons with New Cargos 1.1" 00 "Allows the default trains to be refit to haul new cargos" 0D
0D
90 "http://users.tt-forums.net/pikka/wiki/" 00
// hopper - 1D 23 28 ; 3B 41 46 ; 5B 61 66
// vv
2 * 16 00 00 03 01 1D 28 10 00 29 01 00 1D 40 20 00 00
3 * 16 00 00 03 01 23 28 10 00 29 01 00 1D 40 20 00 00
4 * 16 00 00 03 01 28 28 10 00 29 01 00 1D 40 20 00 00
5 * 16 00 00 03 01 3B 28 10 00 29 01 00 1D 40 20 00 00
6 * 16 00 00 03 01 41 28 10 00 29 01 00 1D 40 20 00 00
7 * 16 00 00 03 01 46 28 10 00 29 01 00 1D 40 20 00 00
8 * 16 00 00 03 01 5B 28 10 00 29 01 00 1D 40 20 00 00
9 * 16 00 00 03 01 61 28 10 00 29 01 00 1D 40 20 00 00
10 * 16 00 00 03 01 66 28 10 00 29 01 00 1D 40 20 00 00
// tanker - 1E 29 ; 3C 47 ; 5C 67
// vv
11 * 16 00 00 03 01 1E 28 40 00 29 01 00 1D 00 00 00 00
12 * 16 00 00 03 01 29 28 40 00 29 01 00 1D 00 00 00 00
13 * 16 00 00 03 01 3C 28 40 00 29 01 00 1D 00 00 00 00
14 * 16 00 00 03 01 47 28 40 00 29 01 00 1D 00 00 00 00
15 * 16 00 00 03 01 5C 28 40 00 29 01 00 1D 00 00 00 00
16 * 16 00 00 03 01 67 28 40 00 29 01 00 1D 00 00 00 00
// Goods - 20 3E 5E
// vv
17 * 16 00 00 03 01 20 28 A4 00 29 01 00 1D 10 00 00 00
18 * 16 00 00 03 01 3E 28 A4 00 29 01 00 1D 10 00 00 00
19 * 16 00 00 03 01 5E 28 A4 00 29 01 00 1D 10 00 00 00
// Pax - 1B 39 59
// vv
20 * 16 00 00 03 01 1B 28 01 00 29 00 00 1D 00 00 00 00
21 * 16 00 00 03 01 39 28 01 00 29 00 00 1D 00 00 00 00
22 * 16 00 00 03 01 59 28 01 00 29 00 00 1D 00 00 00 00
// Mail - 1C 3A 5A
// vv
23 * 16 00 00 03 01 1C 28 02 00 29 01 00 1D 00 00 00 00
24 * 16 00 00 03 01 3A 28 02 00 29 01 00 1D 00 00 00 00
25 * 16 00 00 03 01 5A 28 02 00 29 01 00 1D 00 00 00 00
// Arm - 25 43 63
// vv
26 * 16 00 00 03 01 1C 28 08 00 29 01 00 1D 00 00 00 00
27 * 16 00 00 03 01 3A 28 08 00 29 01 00 1D 00 00 00 00
28 * 16 00 00 03 01 5A 28 08 00 29 01 00 1D 00 00 00 00
29 * 122 00 00 01 74 00 1E 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08
08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08
08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08
08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08
08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08
08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08
08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08
08 08 08 08
30 * 4 01 00 01 00 // dummy graphic
31 * 9 02 00 AA 01 01 00 00 00 00
// passenger capacity callback
32 * 14 02 00 00 81 0C 00 FF 01 \b40 80 15 15 AA 00 // capacity callback
33 * 7 03 00 01 1B 00 00 00
34 * 14 02 00 00 81 0C 00 FF 01 \b45 80 15 15 AA 00 // capacity callback
35 * 7 03 00 01 39 00 00 00
36 * 14 02 00 00 81 0C 00 FF 01 \b47 80 15 15 AA 00 // capacity callback
37 * 7 03 00 01 59 00 00 00
// mail capacity callback
38 * 14 02 00 00 81 0C 00 FF 01 \b30 80 15 15 AA 00 // capacity callback
39 * 7 03 00 01 1C 00 00 00
40 * 14 02 00 00 81 0C 00 FF 01 \b35 80 15 15 AA 00 // capacity callback
41 * 7 03 00 01 3A 00 00 00
42 * 14 02 00 00 81 0C 00 FF 01 \b37 80 15 15 AA 00 // capacity callback
43 * 7 03 00 01 5A 00 00 00
// armour capacity callback
44 * 14 02 00 00 81 0C 00 FF 01 \b20 80 15 15 AA 00 // capacity callback
45 * 7 03 00 01 25 00 00 00
46 * 14 02 00 00 81 0C 00 FF 01 \b25 80 15 15 AA 00 // capacity callback
47 * 7 03 00 01 43 00 00 00
48 * 14 02 00 00 81 0C 00 FF 01 \b27 80 15 15 AA 00 // capacity callback
49 * 7 03 00 01 63 00 00 00
// goods capacity callback
50 * 14 02 00 00 81 0C 00 FF 01 \b25 80 15 15 AA 00 // capacity callback
51 * 7 03 00 01 20 00 00 00
52 * 14 02 00 00 81 0C 00 FF 01 \b30 80 15 15 AA 00 // capacity callback
53 * 7 03 00 01 3E 00 00 00
54 * 14 02 00 00 81 0C 00 FF 01 \b32 80 15 15 AA 00 // capacity callback
55 * 7 03 00 01 5E 00 00 00