Log in

View Full Version : Script error when opening Ancestries window



Torg Smith
June 23rd, 2021, 01:51
I am running Windows 10 up to date.
I have done the updates. I did the force update as well.
I do not have any extensions loaded.
This is with the PFRPG2 ruleset.

I create a new default PFRPG2 campaign.
I click on the Characters button on the side bar.
I click on the top Ancestries button in the character builder tracker window.
A blank window opens up without any text in it.
The Console pops up with the following text in it.

[6/22/2021 7:39:02 PM] Tabletop scene exiting.
[6/22/2021 7:39:02 PM] Launcher scene starting.
[6/22/2021 7:39:52 PM] Starting private server mode. [(192.168.1.131:1802) (fe80::2996:c712:41a1:fddb:1802)]
[6/22/2021 7:39:52 PM] Game server started. [192.168.1.131:1802]
[6/22/2021 7:39:52 PM] Launcher scene exiting.
[6/22/2021 7:39:52 PM] Tabletop scene starting.
[6/22/2021 7:39:52 PM] NETWORK STATUS: [Server] [Connected]
[Server Type - LAN]
[6/22/2021 7:39:58 PM] MEASURE: RULESETS LOAD - 5.7299131 - PFRPG2
[6/22/2021 7:39:58 PM] MEASURE: EXTENSIONS LOAD - 0 - 0
[6/22/2021 7:40:00 PM] MEASURE: MODULE LIST BUILD - 2.1751254 - 65
[6/22/2021 7:40:00 PM] MEASURE: REFRESH IMAGE ASSETS - 0.1102161
[6/22/2021 7:40:00 PM] MEASURE: REFRESH PORTRAIT ASSETS - 0.0069815
[6/22/2021 7:40:01 PM] MEASURE: REFRESH TOKEN ASSETS - 0.0902997
[6/22/2021 7:40:01 PM] MEASURE: ASSET LIST BUILD - 0.2074973
[6/22/2021 7:40:02 PM] MEASURE: LOAD - PART 1 - 9.2141425
[6/22/2021 7:40:03 PM] RULESET: Pathfinder RPG Second Edition ruleset v2021-06-22 (PF2 release 18f) for Fantasy Grounds
Copyright 2021 Smiteworks USA, LLC
[6/22/2021 7:40:03 PM] RULESET: Core RPG ruleset (v2021-06-22) for Fantasy Grounds
Copyright 2021 Smiteworks USA, LLC
[6/22/2021 7:40:03 PM] MEASURE: LOAD - PART 2 - 1.4666575
[6/22/2021 7:40:25 PM] [WARNING] Frame charsheet contains out-of-range values in BottomLeft.
[6/22/2021 7:40:25 PM] [WARNING] Frame charsheet contains out-of-range values in Bottom.
[6/22/2021 7:40:25 PM] [WARNING] Frame charsheet contains out-of-range values in BottomRight.
[6/22/2021 7:40:28 PM] [ERROR] Failed to load script buffer (CoreRPG) (reference_groupedlist): [string "ref/scripts/ref_groupedlist.lua"]:138: 'then' expected near ')'
[6/22/2021 7:40:28 PM] [ERROR] Failed to load script buffer (CoreRPG) (reference_groupedlist): [string "ref/scripts/ref_groupedlist.lua"]:138: 'then' expected near ')'
[6/22/2021 7:40:28 PM] [ERROR] Script execution error: [string "campaign/scripts/chargen_tracker_main.lua"]:738: attempt to call field 'init' (a nil value)

Torg Smith
June 23rd, 2021, 02:05
I just noticed in the ref_groupedlist.lua file that line 138 appears to be missing a opening parenthisis.

function init(rListParam)
if not rListParam) then ---- Should be ----> if (not rListParam) then
return;

I just made the change to my CoreRPG.pak file and it is working now.

Stargrove
June 23rd, 2021, 02:50
This is worse than just the Ancestries window. It seems to affect most windows with categorized lists.



Is the code line 138 missing an opening parens at the beginning or should the closing parens be removed? I tried removing it and that also seemed to fix it.

I don't know anything about LUA syntax, I just compared the line to other "if...then" lines and saw no closing parens.

I am sure the right folks will fix it. Maybe they will even let us know which way is the right way.

Moon Wizard
June 23rd, 2021, 03:29
Just pushed a hot fix for that issue. Please use the "Check For Updates" button; and try again.

Thanks,
JPG

Stargrove
June 23rd, 2021, 22:10
Looks like I was right, no parens on line 138 in the if...then statement.