LordEntrails
September 20th, 2025, 04:03
EDIT: Rubber Duck and all that. I had a button control counter that was not being used yet that for somereason now throws errors when it didn't used to. Discussed and decided we didn't need it there anyway, so just removed it and issue is solved.
My ruleset is throwing the following error for players (not host) whenever they open the Combat Tracker (or join the campaign if the CT was left open) in the FrontierSpace ruleset.
[9/17/2025 6:32:55 PM] [ERROR] Script execution error: [string "CoreRPG:..n/scripts/buttongroup_counter.lua"]:150: setValue: Unable to create node
This is being called from the template "buttongroup_counter" found in template_buttons.xml
buttongroup_counter.lua has 3 setValue commands, lines 148, 150 & 185
These are found in two sections;
function setVarNumber(sKey, n)
local sPath = self.getVarNumberPath(sKey);
if sPath ~= "" then
if (sKey == "current") and self.getMetadata("negative") then
DB.setValue(sPath, "number", -n);
else
DB.setValue(sPath, "number", n);
end
else
self.setVarNumberLocal(sKey, n);
end
end
and
if _tDataDefaults[sKey] then
if not DB.getValue(sPath) then
DB.setValue(sPath, "number", _tDataDefaults[sKey]);
end
end
I am at a complete loss as to what these are doing and what either changed in CoreRPG in the last ~4 weeks (I don't see any changes to my code related to these) and what I need to add to resolve this.
My ruleset is throwing the following error for players (not host) whenever they open the Combat Tracker (or join the campaign if the CT was left open) in the FrontierSpace ruleset.
[9/17/2025 6:32:55 PM] [ERROR] Script execution error: [string "CoreRPG:..n/scripts/buttongroup_counter.lua"]:150: setValue: Unable to create node
This is being called from the template "buttongroup_counter" found in template_buttons.xml
buttongroup_counter.lua has 3 setValue commands, lines 148, 150 & 185
These are found in two sections;
function setVarNumber(sKey, n)
local sPath = self.getVarNumberPath(sKey);
if sPath ~= "" then
if (sKey == "current") and self.getMetadata("negative") then
DB.setValue(sPath, "number", -n);
else
DB.setValue(sPath, "number", n);
end
else
self.setVarNumberLocal(sKey, n);
end
end
and
if _tDataDefaults[sKey] then
if not DB.getValue(sPath) then
DB.setValue(sPath, "number", _tDataDefaults[sKey]);
end
end
I am at a complete loss as to what these are doing and what either changed in CoreRPG in the last ~4 weeks (I don't see any changes to my code related to these) and what I need to add to resolve this.