I'm not exactly a wiz at Lua, but I might still want to make use of some Gadgets that are out there (eg unit_morph.lua)- however it's not clear to me which *.lua files I'll be needing in my LuaRules folder.
You need to have a main.lua, that much is obvious (and stated in this thread).
But what about the others ? jK states (in the thread linked above - talking about LuaGaia, but I suspect the same applies for LuaRules) that:
This (pasting a set of files in from a different game) is what worked for the problem described here. I'm less clear, though, on the alternative offered, linking the basecontent ones - I think this means more than just setting up springcontent.sdz as a dependency, right ?jK wrote:you have to setup the gadgetHandler enviroment:
* copy main.lua,draw.lua,gadgets.lua etc. (or link the basecontent ones)
Thanks for any explanations and answers!
Sean