PDA

View Full Version : script error



lousilver
April 4th, 2024, 19:56
Hi,

I'm making a NPC. I copied the gelatinous cube from an official module, and have been editing my copy.

When i click the other tab to delete the description, i get this error:

[4/4/2024 2:53:13 PM] [ERROR] Script execution error: [string "CoreRPG:scripts/data_library.lua"]:415: attempt to index local 'w' (a nil value)

it initially does not show the description. but tabbing back and forth will reveal it. deleting the description removes the error when viewing the tab, but does not remove the error when unlocking (to edit) on that tab. Placing my own text does not resolve the issue.

update: now i get the error whenever i unlock the NPC, something that did not happen previously when I was only on the statblock tab.

update: i've reloaded my campaign file. the description i added is gone.

update: i've tried making the NPC from scratch, and i get the same error.

LordEntrails
April 4th, 2024, 19:58
I assume D&D 5e? Can you replicate in a new campaign with no extensions? Which module are you copying from? Do you have any unpacked rulesets (i.e. sub folders) in you rFG Data rulesets folder?

lousilver
April 4th, 2024, 20:08
I assume D&D 5e? Can you replicate in a new campaign with no extensions? Which module are you copying from? Do you have any unpacked rulesets (i.e. sub folders) in you rFG Data rulesets folder?

Hi. yes, sorry, it's dnd 5e. i just made a new campaign. no extensions, only one module (monster manual). I copied the cube, the second i unlocked for editing, i got the error. i've now misclicked the 'unidentified' flag next to the lock flag, and that also produces the error.

lousilver
April 4th, 2024, 20:13
in the new barebones campaign, i've tried making a new npc from scratch, no issues. i've gone back tot he original campaign. same thing. oddly, the cube variation i made from scratch now has no errors when i unlock it. AND the modified copy no longer produces an error.

I can say that, just prior to making this post, i updated FG (i last updated tuesday, two days ago... or sunday 2 days before that). so.... maybe something about not having the latest version?

LordEntrails
April 4th, 2024, 20:15
I'm not able to reproduce with your steps. Did you check your rulesets folder for an unpacked ruleset? From the launch screen, click folder icon in top right, navigate to the rulesets folder and make sure there is no corerpg or 5e folder in there.

If not, can you try deleting the 5e.pak and coreRPG.pak and re-run an update?

lousilver
April 4th, 2024, 20:21
I'm not able to reproduce with your steps. Did you check your rulesets folder for an unpacked ruleset? From the launch screen, click folder icon in top right, navigate to the rulesets folder and make sure there is no corerpg or 5e folder in there.

If not, can you try deleting the 5e.pak and coreRPG.pak and re-run an update?

I did not previously check the ruleset folder. Looking now, there are no subfolders in there. During our exchange, I ran an update, and it seems the errors no longer reproduce.

Moon Wizard
April 4th, 2024, 20:56
There was a short period last week where that error was introduced for a few hours, and then a hot fix pushed. If you happened to update during that window, you would have gotten the problematic code, and the new Update would have fixed it.

Regards,
JPG

lousilver
April 4th, 2024, 22:08
There was a short period last week where that error was introduced for a few hours, and then a hot fix pushed. If you happened to update during that window, you would have gotten the problematic code, and the new Update would have fixed it.

Regards,
JPG

ty for your prompt and insightful response, as always.