detecting metal spots - Page 2

detecting metal spots

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: detecting metal spots

Post by Forboding Angel »

knorke wrote:they have different goals.
I wasn't being super serious.
User avatar
troycheek
Posts: 80
Joined: 22 May 2009, 19:13

Re: detecting metal spots

Post by troycheek »

Somewhere around here I've got a Lua script that marks metal spots. From what I remember, it first scans the map to get an idea of the "average" metal content, then uses that value to find areas of higher than average metal. It starts with a fairly fine scan grid, but switches to bigger steps if it starts finding huge numbers of metal spots. If I remember correctly, it handled metal maps, discrete spots, and smears fairly well, but I never got around to checking placement of actual extractors. I'll see if I can dig it out and post it here just in case there are any good ideas in it that one of you real coders can steal.
User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: detecting metal spots

Post by Cheesecan »

For marking see here.
Post Reply

Return to “Lua Scripts”