PDA

View Full Version : New NPC Error with latest SWADE in FGU (I don't have FGC)



fubeca150
May 17th, 2020, 20:21
This is something new (recent updates) that wasn't happening a week ago when I ran my last session.

[5/17/2020 1:05:33 PM] FGU v4.0.0 ULTIMATE (2020-05-14)
[5/17/2020 1:05:33 PM] Launcher scene starting.
[5/17/2020 1:05:48 PM] Daily session backup created.
[5/17/2020 1:05:48 PM] Starting private server mode. [(192.168.56.33:1802) (fe80::db5:ad30:4be:f03b:1802)]
[5/17/2020 1:05:48 PM] Game server started. [192.168.56.33:1802]
[5/17/2020 1:05:48 PM] Launcher scene exiting.
[5/17/2020 1:05:48 PM] Tabletop scene starting.
[5/17/2020 1:06:01 PM] Campaign database backup created.
[5/17/2020 1:06:01 PM] Loaded FreeType library version 2.10.2
[5/17/2020 1:06:06 PM] RULESET: CoreRPG ruleset v3.3.11 for Fantasy Grounds
Copyright 2019 Smiteworks USA, LLC
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [WARNING] Frame tabs contains out-of-range values in BottomLeft.


I don't have FGC, so I can't test it there. I've been able to repro this in a fresh or existing campaign. No extensions loaded, the only module loaded is SWADE GM.

Open any NPC, and the Script execution error: [string "campaign/scripts/npc_weapon.lua"] will occur. It's mostly a problem because every single time any NPC is opened it forces the log screen to open over the top of everything.

I tried purging all my SW content and re-updating everything but that didn't fix it.

Ikael
May 17th, 2020, 22:26
This is something new (recent updates) that wasn't happening a week ago when I ran my last session.

[5/17/2020 1:05:33 PM] FGU v4.0.0 ULTIMATE (2020-05-14)
[5/17/2020 1:05:33 PM] Launcher scene starting.
[5/17/2020 1:05:48 PM] Daily session backup created.
[5/17/2020 1:05:48 PM] Starting private server mode. [(192.168.56.33:1802) (fe80::db5:ad30:4be:f03b:1802)]
[5/17/2020 1:05:48 PM] Game server started. [192.168.56.33:1802]
[5/17/2020 1:05:48 PM] Launcher scene exiting.
[5/17/2020 1:05:48 PM] Tabletop scene starting.
[5/17/2020 1:06:01 PM] Campaign database backup created.
[5/17/2020 1:06:01 PM] Loaded FreeType library version 2.10.2
[5/17/2020 1:06:06 PM] RULESET: CoreRPG ruleset v3.3.11 for Fantasy Grounds
Copyright 2019 Smiteworks USA, LLC
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/npc_weapon.lua"]:52: attempt to call field 'update' (a nil value)
[5/17/2020 1:06:15 PM] [WARNING] Frame tabs contains out-of-range values in BottomLeft.


I don't have FGC, so I can't test it there. I've been able to repro this in a fresh or existing campaign. No extensions loaded, the only module loaded is SWADE GM.

Open any NPC, and the Script execution error: [string "campaign/scripts/npc_weapon.lua"] will occur. It's mostly a problem because every single time any NPC is opened it forces the log screen to open over the top of everything.

I tried purging all my SW content and re-updating everything but that didn't fix it.

I have provided update that I hope fixes the sitaution in FGU.

GaryMon
May 18th, 2020, 01:22
I am not sure how the updating works really, I tried the updater and it did not fix the problem.

There is a thread over in the FGU channel about this: https://www.fantasygrounds.com/forums/showthread.php?57936-Error-Message-with-NPCs

Basically I went into the 3 scripts and commented out the 3 lines that caused the errors, nothing has went wonky yet.

daggerfortysix
May 18th, 2020, 04:46
That update didn't work for me either, the error still shows. I have no idea what it means to "comment out..."

daggerfortysix
May 18th, 2020, 05:17
I couldn't resist.

I figured out how to "comment" the script in those three places (I kept the original .pak as a backup first). However, after going through FGU again, I got hit with another similar error:

[<color="red">ERROR</color>] Script execution error: [string "campaign/scripts/mountedweapon_listentry.lu..."]:67: attempt to call field 'update' (a nil value)

So, I think that the commenting out may just be a band-aid that stops those original errors, but is not a true fix. However, now that I'm messing with it; I'll comment out that one too and keep poking to see what else throws an error.

daggerfortysix
May 18th, 2020, 05:40
I commented out (yes, it feels powerful to say that) the mountedweapon_listentry.lua at line 67 as well. I clicked through everything and no more errors showed up. I am still concerned what impact the -- does for FGU as a whole as it may be preventing things further under the hood from doing their job. I am by no means any sort of programmer either. Hopefully those at SmiteWorks that are can find a solid resolution.

Thank for the help GaryMon, it was quite interesting getting that deep into the software. I will keep my backup .pak safe; but also close by...

Ikael
May 18th, 2020, 06:35
The root issue is that FGU doesn't handle handling duplicate windowcontrols the same way as FGC does. I fixed the issue but Smiteworks needs to release the patch. There can be other issues due to this engine difference and thus I will have to wait for Smiteworks to fix it.

daggerfortysix
May 18th, 2020, 06:41
Cool, thanks for that Ikael; and we will all look forward to that patch. At least we have rigged a fix for the time being.

GaryMon
May 18th, 2020, 14:29
I had not come across the mounted error yet, I haven't used it. But I will comment it out this evening after work.

Thanks,

GaryMon
May 18th, 2020, 16:53
Oh, just an FYI, while is good to keep the backup, I do as well. I found out that as long as you have purchased the pak, if you delete the file and run the updater, it will reinstall the latest file.

daggerfortysix
May 18th, 2020, 16:58
Nice, I figured that was true but it’s nice to have some confirmation of that.