bratch9
September 25th, 2020, 16:59
Found a case when 'power_page.lua', 'onPowerWindowAdded' is been called before its 'onInit' for this class..
I was under the impression 'onInit' would always be called first ?
Not sure if this is a special case due to this been in a list of items, or if its possible to in-general manage to call functions on classes before they are initialised...
I've attached a zip with a campaign and the 5e rule set file with debug chat in the onInit and onPowerWindowAdded functions.
You just need to open the campaign 'camp', open character 'bob' and swap to the 'actions' tab.
( just unzip and place into FGC or FGU with an unpacked 5e ruleset... etc.. )
-pete
Moderator: Moved to a more appropriate place.
I was under the impression 'onInit' would always be called first ?
Not sure if this is a special case due to this been in a list of items, or if its possible to in-general manage to call functions on classes before they are initialised...
I've attached a zip with a campaign and the 5e rule set file with debug chat in the onInit and onPowerWindowAdded functions.
You just need to open the campaign 'camp', open character 'bob' and swap to the 'actions' tab.
( just unzip and place into FGC or FGU with an unpacked 5e ruleset... etc.. )
-pete
Moderator: Moved to a more appropriate place.