celestian
May 10th, 2020, 20:49
Is it not possible to use the DB.getVersion/getRulesetVersion data as a client? I even tried an OOB (direct calls to DB.getVersion*()) method and it did not work.
I need to know what rev of the ruleset the system is to set specific values.
I've also tried to have the host side set a "temp" value in the DB and then grab that but OOB is not working properly for even that. The "notify" triggers but never comes back with the handler.
OOB_MSGTYPE_CHECKRULESETVERSIONMAJOR = "getrulesetmajorversion";
...
function onInit()
OOBManager.registerOOBMsgHandler(OOB_MSGTYPE_CHECK RULESETVERSIONMAJOR, handleGetRulesetMajorVersion);
end
...
function notifyGetRulesetVersion()
local msgOOB = {};
msgOOB.type = OOB_MSGTYPE_CHECKRULESETVERSIONMAJOR;
Debug.console("data_options_adnd.lua","notifyGetRulesetVersion","msgOOB",msgOOB);
Comm.deliverOOBMessage(msgOOB, "");
end
function handleGetRulesetMajorVersion(msgOOB)
Debug.console("data_options_adnd.lua","handleGetRulesetMajorVersion","msgOOB",msgOOB);
end
All that ever shows up is the debug for "notifyGetRulesetVersion" and the registered handler "handleGetRulesetMajorVersion" never fires.
I need to know what rev of the ruleset the system is to set specific values.
I've also tried to have the host side set a "temp" value in the DB and then grab that but OOB is not working properly for even that. The "notify" triggers but never comes back with the handler.
OOB_MSGTYPE_CHECKRULESETVERSIONMAJOR = "getrulesetmajorversion";
...
function onInit()
OOBManager.registerOOBMsgHandler(OOB_MSGTYPE_CHECK RULESETVERSIONMAJOR, handleGetRulesetMajorVersion);
end
...
function notifyGetRulesetVersion()
local msgOOB = {};
msgOOB.type = OOB_MSGTYPE_CHECKRULESETVERSIONMAJOR;
Debug.console("data_options_adnd.lua","notifyGetRulesetVersion","msgOOB",msgOOB);
Comm.deliverOOBMessage(msgOOB, "");
end
function handleGetRulesetMajorVersion(msgOOB)
Debug.console("data_options_adnd.lua","handleGetRulesetMajorVersion","msgOOB",msgOOB);
end
All that ever shows up is the debug for "notifyGetRulesetVersion" and the registered handler "handleGetRulesetMajorVersion" never fires.