Code: Select all
...
....
// graphics : check var60 for amount of waiting cargo and choose graphics set
683 * 44 02 04
15 // Set-ID
89 // get dword
60 // get var60 (amount of cargo waiting)
1B // check cargo type 00 (passengers) --- http://wiki.ttdpatch.net/tiki-index.php?page=CargoTypes
00 \dxFFFFFFFF // get whole value
03 // numRanges
00 00 \d000 \d20 // use <SetID1> if cargo between 0 and 100
16 00 \d21 \d75 // use <SetID2> if cargo between 101 and 1000
26 00 \d76 \d250 // use <SetID3> if cargo between 1001 and 2000
36 00 // use <SetID0> if cargo > 1001
....
...
now from this page: http://wiki.ttdpatch.net/tiki-index.php?page=CargoTypes you can see that for FIRS this ID is for Bauxite, but for ECS this ID is used for Sulphur.
now, what i have understood form a conversation i had earlier, i should be able to use cargo labels too, but need to set up some translation table.
now as far as i have seen, this is pretty complex coding (for me) and im not good at coding yet
now is there some good example around somewhere so i can see what to do ? so i can have a way more flexible grf ?
or is there someone willing to help me out ?
btw i was already trying to understand this page but not 100% there yet: http://wiki.ttdpatch.net/tiki-index.php ... n_table_09_
thanx!