how to debug gadgets?
Posted: 08 Oct 2007, 08:49
Solution:
This will allow you to place your gadgets into "Spring/LuaRules/Gadgets" folder*:
.cheat
.devlua
After that you're able to use this command:
.luarules reload
*You need to have gadgets.lua and some other files copied in Spring/LuaRules folder. You can find them at almost any mod (e.g.: BA).
Original post:
I'm writing my first gadget and I need help debuging it. Widgets can be reloaded with simple /luaui reload command. On the other hand Gadget needs to be packed into a file with it's mod. This takes too much time. I'm sure there is an easier way. I tried to put my gadget into this folder: Spring/BA58/LuaRules/Gadgets but it didn't help.
I also briefly read some modding tutorials but didn't find anything on this topic. If this has been documented somewhere then please point me to the documentation and lock this thread.
Otherwise I think someone responsible should update the wiki.
This will allow you to place your gadgets into "Spring/LuaRules/Gadgets" folder*:
.cheat
.devlua
After that you're able to use this command:
.luarules reload
*You need to have gadgets.lua and some other files copied in Spring/LuaRules folder. You can find them at almost any mod (e.g.: BA).
Original post:
I'm writing my first gadget and I need help debuging it. Widgets can be reloaded with simple /luaui reload command. On the other hand Gadget needs to be packed into a file with it's mod. This takes too much time. I'm sure there is an easier way. I tried to put my gadget into this folder: Spring/BA58/LuaRules/Gadgets but it didn't help.
I also briefly read some modding tutorials but didn't find anything on this topic. If this has been documented somewhere then please point me to the documentation and lock this thread.
Otherwise I think someone responsible should update the wiki.