I was just including a typemap in a map. This in general seems to work and the hardness multipliers show the desired effects.
But the receiveTracks option seems to be either on or off for all terrains, not correctly following the settings in mapinfo.lua (see code example at end of post).
I tested also with an old map from me (with settings in smd file) where I am pretty sure to remember it worked. But also there is no difference anymore between terrains with regard to tracks.
Can somebody confirm this observation? (engine bug?)
Or has any clue where this could come from? (stupidity of me?)
Cheers, qray
P.S.: After playing around a bit, my impression is that the first setting for an existing terrain is taken for all terrains.
So if pure black doesn't exist, the setting of [0] is ignored, but the next used color is a dark grey with all colors set to 1, the receiveTracks setting of terrain type [1] is taken for all terrains.
Code: Select all
terrainTypes = {
[0] = {
name = "Default",
hardness = 4.0,
receiveTracks = false,
moveSpeeds = {
tank = 1.1,
kbot = 1.0,
hover = 1.0,
ship = 1.0,
},
},
[1] = {
name = "Default_1",
hardness = 2.00,
receiveTracks = true,
moveSpeeds = {
tank = 1.0,
kbot = 1.0,
hover = 1.0,
ship = 1.0,
},
},
....
},