It's not the first time I had problems with missing sprites. Some days ago I tried to user your drive through roadstops patch with roadmarkers patch, the same problem (ottd crashed and told me it's missing sprite #5981).
Today (after source update from svn) it didn't crash anymore, just showing gfx glitches. I enabled debug messages and got this:
Code: Select all
dbg: [sprite] Tried to load non-existing sprite #5981. Probable cause: Wrong/missing NewGRFs
dbg: [sprite] Tried to load non-existing sprite #5981. Probable cause: Wrong/missing NewGRFs
dbg: [sprite] Tried to load non-existing sprite #5981. Probable cause: Wrong/missing NewGRFs
dbg: [sprite] Tried to load non-existing sprite #5981. Probable cause: Wrong/missing NewGRFs
dbg: [sprite] Tried to load non-existing sprite #5981. Probable cause: Wrong/missing NewGRFs
Some lines earlier ottd told me:
Code: Select all
dbg: [sprite] Loading sprite set 0
dbg: [sprite] Reading indexed grf-file 'TRG1R.GRF'
dbg: [sprite] Reading grf-file 'TRGIR.GRF'
dbg: [sprite] Currently 4896 sprites are loaded
dbg: [sprite] Reading grf-file 'nsignalsw.grf'
dbg: [sprite] Currently 5382 sprites are loaded
dbg: [sprite] Reading grf-file 'canalsw.grf'
dbg: [sprite] Currently 5452 sprites are loaded
dbg: [sprite] Reading indexed grf-file 'trkfoundw.grf'
dbg: [sprite] Reading grf-file 'autorail.grf'
dbg: [sprite] Currently 5585 sprites are loaded
dbg: [sprite] Reading grf-file 'elrailsw.grf'
dbg: [sprite] Currently 5638 sprites are loaded
dbg: [sprite] Reading grf-file '2ccmap.grf'
dbg: [sprite] Currently 5894 sprites are loaded
dbg: [sprite] Reading indexed grf-file 'openttd.grf'
dbg: [sprite] Reading grf-file 'airports.grf'
dbg: [sprite] Currently 6025 sprites are loaded
dbg: [sprite] Reading grf-file 'roadstops.grf'
dbg: [sprite] Currently 6033 sprites are loaded
dbg: [sprite] Reading grf-file 'tramroads.grf'
dbg: [sprite] Currently 6146 sprites are loaded
loading sprites was successful. How can loading more sprites beginning at index 6033 make the ones at 5981 - 5983 disappear?
Thanks, the info about action 5 feat. B helped a lot

Shouldn't that complicated to code it.
Hehe, I see, much to do for me
