SilentRuin
July 20th, 2020, 18:33
I have a printstack() used in trying to debug weird stuff I'm seeing that is causing me some grief. I'm the host, I click the PC button to bring up my list of PC's, I Click on a PC and I get a stack that looks like this..
[C]: in function 'openWindow'
[string "campaign/scripts/charselect_host_entry.lua"]:52: in function 'openCharacter'
[string "base"]:3: in function <[string "base"]:2>
Where (for example) the onWindowOpen() I have catching charsheet stuff shows the following node...
DATABASENODE = { charsheet.id-00001 }
YES! Good stuff. All working.
I then close that node and open another PC sheet (this is all after initial startup of host) and I get...
[C]: in function 'openWindow'
[string "campaign/scripts/charselect_host_entry.lua"]:52: in function 'openCharacter'
[string "base"]:3: in function <[string "base"]:2>
with
DATABASENODE = { charsheet.id-00001 }
(above was the old closed PC sheet) and
[C]: in function 'openWindow'
[string "campaign/scripts/charselect_host_entry.lua"]:52: in function 'openCharacter'
[string "base"]:3: in function <[string "base"]:2>
with
DATABASENODE = { charsheet.id-00002 }
the new opened PC sheet.
In fact, as I open and close PC sheets they seem to be in memory and any time I trigger "openCharacter" I will get a hit on onWindowOpened() for every charsheet no longer opened.
What is going on here?
I'm not entirely sure its onWindowOpened() triggering these recalls but will try and determine that next. Just trying to figure out how stack shows this trace to openWindow on all my closed sheets.
[C]: in function 'openWindow'
[string "campaign/scripts/charselect_host_entry.lua"]:52: in function 'openCharacter'
[string "base"]:3: in function <[string "base"]:2>
Where (for example) the onWindowOpen() I have catching charsheet stuff shows the following node...
DATABASENODE = { charsheet.id-00001 }
YES! Good stuff. All working.
I then close that node and open another PC sheet (this is all after initial startup of host) and I get...
[C]: in function 'openWindow'
[string "campaign/scripts/charselect_host_entry.lua"]:52: in function 'openCharacter'
[string "base"]:3: in function <[string "base"]:2>
with
DATABASENODE = { charsheet.id-00001 }
(above was the old closed PC sheet) and
[C]: in function 'openWindow'
[string "campaign/scripts/charselect_host_entry.lua"]:52: in function 'openCharacter'
[string "base"]:3: in function <[string "base"]:2>
with
DATABASENODE = { charsheet.id-00002 }
the new opened PC sheet.
In fact, as I open and close PC sheets they seem to be in memory and any time I trigger "openCharacter" I will get a hit on onWindowOpened() for every charsheet no longer opened.
What is going on here?
I'm not entirely sure its onWindowOpened() triggering these recalls but will try and determine that next. Just trying to figure out how stack shows this trace to openWindow on all my closed sheets.