put in something like this:
Code: Select all
function gadget:Initialize()
Spring.Echo ("IAM HERE")
end
see if that prints.
Also look for that buildicons\_5to4_64x64\ folder.
When I got it working it just created the icons there, without any message at all. (was a bit surprised)
infolog wrote:[f=0000340] Cheating is enabled!
So if you now test with cheating all the time,
it will never print anything but maybe it already outputs files.
Beside that, no idea. The version from zK you linked worked for me and further than that I can only guess...
[f=0000000] Loaded gadget: IconGenerator <unit_icongenerator.lua>
[f=0000000] Loaded gadget: IconGenerator <unit_icongenerator.lua>
Why is this double? (some other messages too)
comments:
Both is correct synthax.
Well actually it is
--[[
]]
but there is a useful trick that does not work with ]]-- or ]]
http://www.lua.org/pil/1.3.html
Anyway, that was just funfact
Btw, how long is it supposed to take with /luarules buildicons all ?
/luarules buildicons unitname is almost instant, but now it is hanging spring since 2 minutes and only two icons have appeared so far. Does not seem right?
(i guess from spring hanging you can also tell it is working, though some message would be better)
/edit:
~7 minutes for 54 icons, then spring closed and infolog was cut off. hm.