-
November 1st, 2020, 15:46 #21
- Join Date
- May 2020
- Posts
- 53
v3 was just released a couple days ago. If you haven't seen this exstention since it first came out, check out this new video showing its current state.
https://youtu.be/C--8jrdKLjc
-
January 25th, 2021, 16:51 #22
This extension:
https://www.fantasygrounds.com/forum...rary-hitpoints
Is causing this error in FGU (when an NPC damages a PC):
Script Error: [string "scripts/manager_stats_MNM.lua"]:848: bad argument #3 to 'gsub' (string/function/table expected)
It would be super cool if that wasn't happening. Though I understand, you can't make all your extensions compatible with every ext out there in the wild.
One feature I wouldn't mind seeing, is an option to turn off NPC data collection. I assume that's going into dm.xml which is likely eventually going to cause some additional growth into the file... I dunno how much but I really personally don't care about the NPC stats.
Thanks! Love this extension!
-
January 25th, 2021, 20:27 #23
- Join Date
- Jul 2016
- Posts
- 314
-
January 26th, 2021, 16:29 #24
This was not just "an extension". The code was doing a DB.getValue without providing a default - which means it would return nil if it could not find the nodePC "name", causing the third argument of the message routine to fail. Defensive programming for unknown situations and timing issues (which do happen in FGU) should be that you never depend on something coming back with a value. You can fix your own version (as I've had to rewrite it to allow my own extension to be able to take advantage of stats) by simply providing the "" 3rd argument to DB.getValue so it returns a blank instead of nil if nothing is there. You'll get a message with no name in the text but its better than blowing up on you.
Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
January 26th, 2021, 17:22 #25
- Join Date
- Jul 2016
- Posts
- 314
-
January 26th, 2021, 17:29 #26
I'm not sure what your asking here. Are you saying you don't have the log referenced earlier?
Script Error: [string "scripts/manager_stats_MNM.lua"]:848: bad argument #3 to 'gsub' (string/function/table expected)
I mean that is the file. That is the exact line number in the file. I admit I fixed all the missing 3rd arguements of DB.getValue for "name" in that file so that when they built their respective messages they could never blow up on me. For example...
Code:local messageText=string.gsub(DB.getValue(nodeMsg,"bestDmgMsg"),"NAME",DB.getValue(nodePC,"name", ""));
A cleaner fix would be to never even show/build the message if the name was not available, but like I said, I'm lazy.Last edited by SilentRuin; January 26th, 2021 at 17:31.
Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
January 26th, 2021, 17:54 #27
- Join Date
- Jul 2016
- Posts
- 314
-
November 8th, 2021, 03:26 #28
- Join Date
- May 2020
- Posts
- 35
Is there a way to reset the stats? did a session 0 one-shot and then some fiddling afterwards, and want a clean slate. Or if I can remove NPC's entries from the party sheet list maybe?
Unity Ultimate Paid GM
Carrion Crown L12 - PF1e: LFP 5/3+ Mondays @1pm MT
Wrath of the Righteous L10T3 - PF1e: 6/3+ Mondays @5PM MT
Horde of the Dragon Queen L13- 5e LFP 5/3+ Tuesdays @5PM MT
Rise of the Runelords B L9 - PF1e: LFP 4/3+ Wednesdays @530PM MT
Harbingers L4 - PF1e: 5/3+ Sundays @9am MT
Unchained Harbingers L1 - PF1e: Wednesdays @9am MT
General Looking for Work and current.
-
November 8th, 2021, 14:31 #29
- Join Date
- Oct 2011
- Posts
- 135
-
March 20th, 2022, 00:19 #30
Hi, I am getting the following error when loading this extension. Not game breaking by any means but it is there.
Screenshot (12).png
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks