Page 1 of 1

Map Lua

Posted: 08 Oct 2010, 23:40
by oksnoop2
Is there a wiki page or a tutorial about how to do map lua? I can't seem to find the info.

Re: Map Lua

Posted: 09 Oct 2010, 01:02
by smoth
Not really, what do you want to do?

Re: Map Lua

Posted: 09 Oct 2010, 01:06
by oksnoop2
I would like to be able to:

Adjust Water Level.
Create Weather Conditions such as fog,rain, snow.
Adjust metal out put per patch.
And anything else really that i could have as map options.

Re: Map Lua

Posted: 09 Oct 2010, 01:13
by smoth
Adjust Water Level.
- got you covered

Create Weather Conditions such as fog,rain, snow.
- fog and snow, got ya covered
- rain, the rain widget sucks bad.

Adjust metal out put per patch.
- should be doable but i have not really tested it. Honestly you should set metal/energy/wind as a mod option. That way you can control it mod side instead of having the map do it.

>And anything else really that i could have as map options.
That is a large infinite pool of possibilities.

Re: Map Lua

Posted: 09 Oct 2010, 01:22
by Wombat
smoth didnt say that his maps got snow and fog, quoth got rain. so u may check these

plz notice that weather features hate some hardware ( i think ati)

Re: Map Lua

Posted: 09 Oct 2010, 02:29
by knorke
put in a luarules\gadgets\lol.lua and it works like any other lua.
the metal map or type map can not be manipulated by lua last time i checked.
only heightmap.

Re: Map Lua

Posted: 09 Oct 2010, 04:26
by oksnoop2
smoth wrote:Adjust Water Level.
- got you covered

Create Weather Conditions such as fog,rain, snow.
- fog and snow, got ya covered
- rain, the rain widget sucks bad.

Adjust metal out put per patch.
- should be doable but i have not really tested it. Honestly you should set metal/energy/wind as a mod option. That way you can control it mod side instead of having the map do it.

>And anything else really that i could have as map options.
That is a large infinite pool of possibilities.

I guess PM me in the lobby or post the code up here when you get some time. Thanks.

Re: Map Lua

Posted: 09 Oct 2010, 04:32
by SirArtturi
Check out the FolsomDamDeluxe. It has the metal/wind/tidal mapside option you mentioned plus many other.

Re: Map Lua

Posted: 09 Oct 2010, 04:34
by oksnoop2
Cool thanks for the suggestion.

Re: Map Lua

Posted: 09 Oct 2010, 05:29
by smoth
Wombat wrote:smoth didnt say that his maps got snow and fog, quoth got rain. so u may check these
the quoth rain moves with your camera that is why it fails.

I do have fog/snow in my maps as options where appropriate.