Code: Select all
[ 0] LuaRules::RunCallIn: error = 2, RecvFromSynced, [string "LuaGadgets/actions.lua"]:247: attempt to call local 'func' (a nil value)
Only bit of CRAIG code dealing with SendToUnsynced is this:
Code: Select all
local function Initialize(self)
Log("SYNCED: Initialize")
-- Set up the forwarding calls to the unsynced part of the gadget.
local SendToUnsynced = SendToUnsynced
for _,callIn in pairs(callInList) do
local fun = gadget[callIn]
if (fun ~= nil) then
gadget[callIn] = function(self, ...) fun(self, ...) SendToUnsynced(callIn, ...) end
else
gadget[callIn] = function(self, ...) SendToUnsynced(callIn, ...) end
end
gadgetHandler:UpdateCallIn(callIn)
end
end
Code: Select all
[ 0] error = 2, LuaRules/draw.lua, error = 2, luagadgets/gadgets.lua, [string "LuaGadgets/actions.lua"]:54: attempt to index local 'g' (a function value)
Any and all help appreciated.

