I've been staring at the NewGRF manual for an hour, and I still cannot understand the difference between props 08 and 09, industry substitute and industry override.
This code is supposed to add coal to the steel mill:
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 09 00 00 00
1 * 67 08 06 "OT" 03 01 "----------------------" 00
"By onodera 2009. No rights reserved." 00
2 * 134 00 //Action 0
08 //Global variables
01 //Change 1 property
20 //Change 32 labels
00 //ID 00
09 //Cargo translation table
"PASS" //00
"MAIL" //01
"GOOD" //02
"OIL_" //03
"PETR" //04
"COAL" //05
"IORE" //06
"CORE" //07
"STEL" //08
"COPR" //09
"BAUX" //09
"ALUM" //0A
"GOLD" //0B
"PHOS" //0C
"SULP" //0D
"FERT" //0E
"SACI" //0F
"NGAS" //10
"FICR" //11
"WATR" //12
"CERE" //13
"LVST" //14
"FRUT" //15
"FOOD" //16
"WOOL" //17
"LIME" //18
"CMNT" //19
"AMNI" //1A
"EXPL" //1B
"FISH" //1C
"SAND" //1E
"TOUR" //1F
//Steel Mill
//Requires coal now
//Same sprites
//Industry override:
3 * 12 00 //Action 0
0A //Industry
02 //Change 2 properties
01 //Change 1 industry
08 //Steel mill
08 08 //Override steel mill
11 05 06 FF FF//Accept iron ore and coal
//Industry tiles:
4 * 13 00 //Action 0
09 //Industry tile
03 //Change 3 properties
01 //change 1 tile
34 //Tile 34
08 34 //Override tile 34
0A 05 08 //Accept 8/8 coal
0B 06 08 //accept 8/8 iron ore
5 * 13 00 //Action 0
09 //Industry tile
03 //Change 3 properties
01 //change 1 tile
35 //Tile 35
08 35 //Override tile 35
0A 05 08 //Accept 8/8 coal
0B 06 08 //accept 8/8 iron ore
6 * 13 00 //Action 0
09 //Industry tile
03 //Change 3 properties
01 //change 1 tile
36 //Tile 36
08 36 //Override tile 36
0A 05 08 //Accept 8/8 coal
0B 06 08 //accept 8/8 iron ore
7 * 13 00 //Action 0
09 //Industry tile
03 //Change 3 properties
01 //change 1 tile
37 //Tile 37
08 37 //Override tile 37
0A 05 08 //Accept 8/8 coal
0B 06 08 //accept 8/8 iron ore
8 * 13 00 //Action 0
09 //Industry tile
03 //Change 3 properties
01 //change 1 tile
38 //Tile 38
08 38 //Override tile 38
0A 05 08 //Accept 8/8 coal
0B 06 08 //accept 8/8 iron ore
9 * 13 00 //Action 0
09 //Industry tile
03 //Change 3 properties
01 //change 1 tile
39 //Tile 39
08 39 //Override tile 39
0A 05 08 //Accept 8/8 coal
0B 06 08 //accept 8/8 iron ore
The GRF is loaded, but some of the mills say in their windows that they accept goods and grain, and some say they still accept only iron ore. All of them accept passengers and iron ore, according to the stations that are built next to them.
If I replace all my props 08 with 09, when I start a new game, the GRF is disabled, citing "Attempt to use invalid ID".
What am I doing wrong?