i tested registering an interface to remote in the on_load handler. when calling upon that interface later in the on_tick handler it errors "interface unknown".
Code: Select all
function handleOnLoad()
if not global.initializedOnLoad then
initGlobals()
else
end
-- migration needed?
-- test registering remote interface in on_load -> does not work
-- it seems the remote reference can not be used in the on_load handler
remote.add_interface("DVM",
{
testOnLoad = remoteTestOnLoad
}
)
end
thanks!