trembot_89
September 3rd, 2018, 18:59
-
UPDATE: Problem solved. The combination of updates to ruleset and extension seem to be jiving, still not totally sure how/why but I'm not going to look a gift horse in the mouth. Thanks everyone for your time and input!
This is a continuation of a past thread found here (https://www.fantasygrounds.com/forums/showthread.php?45382-5e-Extension-Issues-in-ct_entry-for-NPCs) about my extension not cooperating with NPC sheets when they're added to the combat tracker (no problems with NPCs before their links are activated through the tracker). Since the situation has changed a bit I figured that a new thread was appropriate -- if it's not, I'm sorry and understand if it needs to be deleted.
Onward to the problem!:
Basically, when the ct_entry.lua function "onIDChanged" is active...
-after clicking on a NPC link through the combat tracker the NPC sheet's hp anchoring is all jacked-up and overlapping the "ID unknown name" and "speed",
-plus a bunch of text fields are open when they should be closed,
-a bunch of errors get thrown, etc;
-a very troublesome experience for people wanting to use the extension.
When the function is removed, the NPC sheet looks great but...
-toggling the "ID known/unknown" does nothing to the creature's name in the tracker (expected from the function's removal),
-the creature/character windows in the tracker are unrecognized when using the right-click radial menu (making deletion from the tracker limited to the menu button at the bottom),
-when the combat tracker is opened with previously loaded characters (like in a continued campaign) all of the window colors that display the relation of character/creature (friendly/neutral/faction/hostile) are displayed in the blank "faction" color even though the button selection shows the proper relation status,
-and of course there's the errors that are thrown by removing a function from the code.
I've uploaded screenshots of what happens to NPC sheets and the thrown errors with and without the onIDChanged function (the script warnings are from toggling the NPC ID known/unknown), and one more of the (deactivated) function itself.
I'm looking for any insight on what the function does to affect the NPC sheets in the manner it did (before removing it) and any advice that could lead to an error/bug-free solution, thank you all so much for reading through this and any help you have to offer.
UPDATE: Problem solved. The combination of updates to ruleset and extension seem to be jiving, still not totally sure how/why but I'm not going to look a gift horse in the mouth. Thanks everyone for your time and input!
This is a continuation of a past thread found here (https://www.fantasygrounds.com/forums/showthread.php?45382-5e-Extension-Issues-in-ct_entry-for-NPCs) about my extension not cooperating with NPC sheets when they're added to the combat tracker (no problems with NPCs before their links are activated through the tracker). Since the situation has changed a bit I figured that a new thread was appropriate -- if it's not, I'm sorry and understand if it needs to be deleted.
Onward to the problem!:
Basically, when the ct_entry.lua function "onIDChanged" is active...
-after clicking on a NPC link through the combat tracker the NPC sheet's hp anchoring is all jacked-up and overlapping the "ID unknown name" and "speed",
-plus a bunch of text fields are open when they should be closed,
-a bunch of errors get thrown, etc;
-a very troublesome experience for people wanting to use the extension.
When the function is removed, the NPC sheet looks great but...
-toggling the "ID known/unknown" does nothing to the creature's name in the tracker (expected from the function's removal),
-the creature/character windows in the tracker are unrecognized when using the right-click radial menu (making deletion from the tracker limited to the menu button at the bottom),
-when the combat tracker is opened with previously loaded characters (like in a continued campaign) all of the window colors that display the relation of character/creature (friendly/neutral/faction/hostile) are displayed in the blank "faction" color even though the button selection shows the proper relation status,
-and of course there's the errors that are thrown by removing a function from the code.
I've uploaded screenshots of what happens to NPC sheets and the thrown errors with and without the onIDChanged function (the script warnings are from toggling the NPC ID known/unknown), and one more of the (deactivated) function itself.
I'm looking for any insight on what the function does to affect the NPC sheets in the manner it did (before removing it) and any advice that could lead to an error/bug-free solution, thank you all so much for reading through this and any help you have to offer.