PDA

View Full Version : Cannot Add Enemies to the Combat Tracker



SolarAlbatross
October 11th, 2022, 04:29
Playing 5e. Updated to the most recent version of FG after the last session. Now every time I try to add an NPC to the combat tracker I get this error:

[ERROR] Script execution error: [string "scripts/manager_combat_kw.lua"]:179: attempt to call upvalue 'fAddNPC' (a nil value)

Interestingly it doesn't happen when I add player characters - only monsters. I've restarted multiple times, error. Unloaded all modules and extensions, error. Restarted again with modules off, error. Reloaded and used only module content, error.

My only extensions are the PHB, Volo's, Strongholds & Followers, Smiteworks bestiary. Nothing crazy. No matter the source - Volos, Strongholds, PHB, Smite, homebrew - no NPCs can be added.

What gives? Any ideas how I fix?

Trenloe
October 11th, 2022, 04:35
The vast majority of script errors are caused by extensions - either clashing with other extensions or not being compatible with the latest release of Fantasy Grounds.


[ERROR] Script execution error: [string "scripts/manager_combat_kw.lua"]:179: attempt to call upvalue 'fAddNPC' (a nil value)

The file "scripts/manager_combat_kw.lua" is not a standard FG file, this will be a file from an extenion. Does "KW" help with identifying which extension might be causing the problem?

SolarAlbatross
October 11th, 2022, 04:41
Does "KW" help with identifying which extension might be causing the problem?

Yes it did! Kingdoms and Warfare (not Strongholds and Followers). Weird that just disabling it didn't do the trick, but going all the way in and deleting it did. Thanks very much for your assistance!

I'll have to figure out if Colville's team has updated this extension before re-downloading it. Cheers!

Saagael
October 11th, 2022, 17:13
Yes it did! Kingdoms and Warfare (not Strongholds and Followers). Weird that just disabling it didn't do the trick, but going all the way in and deleting it did. Thanks very much for your assistance!

I'll have to figure out if Colville's team has updated this extension before re-downloading it. Cheers!

I'm one of the devs that work on K&W. Do you know if you updated recently? I had thought we fixed all these CT related bugs, just want to make sure you were on the latest version.

EDIT: Are you using the purchased module from the FG store or did you download it from github? I just checked the code that's live and 'fAddNPC' doesn't appear in it, so likely re-downloading it will fix the issue.

SolarAlbatross
October 11th, 2022, 17:27
I'm one of the devs that work on K&W. Do you know if you updated recently? I had thought we fixed all these CT related bugs, just want to make sure you were on the latest version.

EDIT: Are you using the purchased module from the FG store or did you download it from github? I just checked the code that's live and 'fAddNPC' doesn't appear in it, so likely re-downloading it will fix the issue.

Perfect. I'll re-download (got it from the FG store). 99% certain this is a me thing and not a you thing - I'm pretty bad about staying on top of updates (especially with extensions) once I have things stable and all of my players are synced up with the right version (like herding cats). I recently had everyone update FG as we had a new player join and that's likely where the issue occurred.