[solved]remote reference available in on_load? (0.12.29)
Posted: Mon Mar 28, 2016 2:32 pm
hi!
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".
is the observation correct, that interface registration can not be done, when handling the on_load event?
thanks!
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!