DividedDeath
July 14th, 2022, 00:20
Summary: Starfinder generating errors when opening items
Ruleset(s): Starfinder
Extensions/Themes: N/A
Modules Loaded: Core rules, and Alien Archives. Also with custom made items with nothing loaded
Operating System / Language Setting: Win 10 - America
Steps to Reproduce: Start starfinder campaign, open items list, click item.
We have also found exactly where the error lives.
There is no 'end' statement after the 13th line. (sTitle = sType;)
SFRPG\campaign\record_item.xml
<windowclass name="item_header" merge="join">
<margins control="0,0,0,2" />
<script>
function update()
super.update();
updateTypeLabel();
end
function updateTypeLabel()
local nodeRecord = getDatabaseNode();
local sTitle = DB.getValue(nodeRecord, "type", "");
if sTitle ~= "" then
local sSubtype = DB.getValue(nodeRecord, "subtype", "");
if sSubtype ~= "" then
sTitle = string.format("%s (%s)", sType, sSubtype);
else
sTitle = sType;
else
sTitle = LibraryData.getSingleDisplayText("item");
end
recordtype.setValue(sTitle);
end
</script>
<sheetdata>
<label_recordtype name="recordtype" />
</sheetdata>
</windowclass>
Ruleset(s): Starfinder
Extensions/Themes: N/A
Modules Loaded: Core rules, and Alien Archives. Also with custom made items with nothing loaded
Operating System / Language Setting: Win 10 - America
Steps to Reproduce: Start starfinder campaign, open items list, click item.
We have also found exactly where the error lives.
There is no 'end' statement after the 13th line. (sTitle = sType;)
SFRPG\campaign\record_item.xml
<windowclass name="item_header" merge="join">
<margins control="0,0,0,2" />
<script>
function update()
super.update();
updateTypeLabel();
end
function updateTypeLabel()
local nodeRecord = getDatabaseNode();
local sTitle = DB.getValue(nodeRecord, "type", "");
if sTitle ~= "" then
local sSubtype = DB.getValue(nodeRecord, "subtype", "");
if sSubtype ~= "" then
sTitle = string.format("%s (%s)", sType, sSubtype);
else
sTitle = sType;
else
sTitle = LibraryData.getSingleDisplayText("item");
end
recordtype.setValue(sTitle);
end
</script>
<sheetdata>
<label_recordtype name="recordtype" />
</sheetdata>
</windowclass>