[solved] Receive Tracks not working correct?

[solved] Receive Tracks not working correct?

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
qray
Posts: 377
Joined: 02 Feb 2009, 18:49

[solved] Receive Tracks not working correct?

Post by qray »

Hi,

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,
		},
	},
     .... 
},
Last edited by qray on 30 Sep 2013, 22:30, edited 1 time in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Receive Tracks not working correct?

Post by Beherith »

the default is used on all map areas where the typemap is undefined. Please make sure when testing that the tooltip displays the correct terrain name when you mouse over it ingame. If this is the case, then this may be a bug that resulted from tthe upgrade of the decal drawer. Please use the engine bug tracker to submit this bug.
User avatar
qray
Posts: 377
Joined: 02 Feb 2009, 18:49

Re: Receive Tracks not working correct?

Post by qray »

Thanks for this hint!

The tooltip displays the correct terrains and hardness is also right (tested with explosions). I'll prepare a bug report then...
User avatar
qray
Posts: 377
Joined: 02 Feb 2009, 18:49

Re: Receive Tracks not working correct?

Post by qray »

For completeness:
Seems to have been a bug and has been fixed (http://springrts.com/mantis/view.php?id=4019).
Post Reply

Return to “Map Creation”