Just to make sure, how you installing goes like this:
copy
gg_metalspot_finder.lua & tp_limited_metal.lua
from my map into your Luarules\gadgets\
open up tp_limited_metal.lua
and look for this: (line 22 to 31)
function gadget:Initialize()
mSpots = GG.metalSpots
_G.mSpots = mSpots
--Spring.Echo ("#mSpots:" .. #mSpots)
--Spring.Echo ("Game.extractorRadius:" .. Game.extractorRadius)
for i, g in pairs(mSpots) do
mSpots.metal = 500
end
-- make_lower_spots_unlimited ()
end
Add two -- in front of make_lower_spots_unlimited ()
or just delete the line.
Now the problem is that on some maps gg_metalspot_finder.lua thinks the map is a metal map (like speedmetal etc) and returns not metal spots. It even does so on some normal maps.
In case you want to mess around with it, it works on these maps:
Badlands
Aliendesert
To make it work on all maps with a little dirty fix, do this:
open gg_metalspot_finder.lua
Search for this:
Code: Select all
Spring.Echo('<GG.metalSpots> Mass metal detected. Disabling.')
return {}
change it to
Code: Select all
Spring.Echo('<GG.metalSpots> Mass metal detected. There might be TROUBLE.')
--return {}