Page 1 of 2

Lua Typemap Control

Posted: 20 May 2009, 13:48
by Google_Frog
I'd like to be able to set map hardness and speed bonus with lua. Some uses of this could be road-creating by using speed bonus, creating softer/harder ground when terraforming or overriding map based typemaps.

Re: Lua Typemap Control

Posted: 20 May 2009, 15:24
by KDR_11k
+1

Re: Lua Typemap Control

Posted: 20 May 2009, 17:37
by CarRepairer
How DARE YOU! Your insolence knows no bounds. You just don't know when you quit do you? Trampling over common decency to defecate all over a mapper's hard work. First you wish to change gravity itself, now this?! Do you know how much blood, sweat and tears go into making typemaps? I suspect you don't because if you did, you'd have an inkling of what kind of heavy heartache you place on the little people around here just waving around your requests like they are trivial and have no effect on anyone's lives. For shame!

Re: Lua Typemap Control

Posted: 20 May 2009, 17:43
by Pxtl
Oooh, users building roads would be farking awesome. You could even make units that can only move on roads. So many possibilities.

Re: Lua Typemap Control

Posted: 20 May 2009, 19:13
by lurker
Car, do you make the same post every time this topic comes up? Once is enough.

Re: Lua Typemap Control

Posted: 20 May 2009, 19:29
by smoth
if it can be set in the smd it can be set in the map... example coming in about 5 hours. I had to recompile the map due to a texture issue.

Re: Lua Typemap Control

Posted: 20 May 2009, 19:36
by zwzsg
Smoth: You can change the speed bonus given by each terrain type, you cannot change the shape of the zone of each type.

Lurker: I still want the Lua tile control!

Re: Lua Typemap Control

Posted: 20 May 2009, 22:36
by Tribulexrenamed
CarRepairer wrote:How DARE YOU! Your insolence knows no bounds. You just don't know when you quit do you? Trampling over common decency to defecate all over a mapper's hard work. First you wish to change gravity itself, now this?! Do you know how much blood, sweat and tears go into making typemaps? I suspect you don't because if you did, you'd have an inkling of what kind of heavy heartache you place on the little people around here just waving around your requests like they are trivial and have no effect on anyone's lives. For shame!
Shuttup noob, I think you are in part responsible for the way CA enables one to tear the heightmap to pieces, and personally, this is the part I spend the most time on when i make maps.

Re: Lua Typemap Control

Posted: 20 May 2009, 22:39
by CarRepairer
I am in no way responsible for terraforming, only wind value overrides.

Re: Lua Typemap Control

Posted: 20 May 2009, 22:50
by smoth
@ z, ah I thought he was just looking at assigning the values.

Re: Lua Typemap Control

Posted: 21 May 2009, 01:08
by Acidd_UK
@Car: LOL

@OP: Agreed

Re: Lua Typemap Control

Posted: 21 May 2009, 01:58
by Neddie
Car appears to be inaccurately lampooning my general response to heavy-handed map manipulation by modders and game designers. Points for effort.

Re: Lua Typemap Control

Posted: 21 May 2009, 04:50
by CarRepairer
Thanks neddie.

Ironically, I probably spent more work on typemaps than anyone else. I once spent days working on setting up 75 typemaps in my Europe map, one for each country and major city. Same for the states in USA.

Re: Lua Typemap Control

Posted: 21 May 2009, 11:29
by Forboding Angel
Washington D.C. Should have a movespeed for everything of 0.01 kthxbai

Re: Lua Typemap Control

Posted: 22 May 2009, 04:52
by Neddie
My point being that as map makers deserve the same respect and the same rights to the realization of their content as other content creators. Not that game developers should not be able to manipulate maps, given respect for the map maker and reasonable permission.

Re: Lua Typemap Control

Posted: 22 May 2009, 06:04
by Pressure Line
That all assumes that the mapper knows how the stats they make their map with affects the games to be played on the map. There are maps which have a blanket 2x speed modifier, are a great map (texture, map layout, metal layout etc) but are ruined by the speed modifier. Surely its not unreasonable to change the typemap values to stop the map from destroying the balance of the game.

Same can apply for gravity. If someone makes a map with 4x normal gravity, it can adversely effect the way certain (ballistic) weapons work, if a game has a side that relies mostly on ballistic weapons, and one that relies mostly on lasers, it essentialy turns the map into a map that can only be played by one side. is it not reasonable that the developer of this mod be able to control the gravity and bring it back into line with what is the 'expected' normal?

Re: Lua Typemap Control

Posted: 22 May 2009, 11:48
by Forboding Angel
I must say it would be nice to have a piece of lua that would automagically set gravity to 130 and typemaps to 1/1/1/1 for me.

Re: Lua Typemap Control

Posted: 22 May 2009, 17:01
by smoth
Forboding Angel wrote:I must say it would be nice to have a piece of lua that would automagically set gravity to 130 and typemaps to 1/1/1/1 for me.
easy

Re: Lua Typemap Control

Posted: 22 May 2009, 17:02
by Otherside
random metal map generator would be lolsome to :P

Re: Lua Typemap Control

Posted: 22 May 2009, 18:56
by lurker
You should really be setting mygravity on the weapons where it matters.
Blanket 2x speed is probably bad, yes, but if you set all typemaps automatically to 1/1/1/1 you're completely ignoring the map maker; that's not right.