I'm back with another problem trying to figure out this plugin.
I just finished making my custom actor portraits and trying to show them in battle HUD. To do this, I've done what SRD does in his tutorial video where I have $gameParty.members()[1].actorId() for the actorID part of HUD element and have $gameParty.members()[1] for the condition window to check if said party member exists. From a practical standpoint, this works. If said party member exists while testing the game, their portrait is displayed and if they don't exist, it's not.
However, some weird stuff is happening.
On the Element Manager, I get shown an ERROR tag, and the HUD displays the placeholder portrait I have for Actor 1 in my database (Only when setting up the HUD, doesn't show while testing the game). On top of this, if I have a missing member in my party, the console keeps spitting up the following error: TypeError: Cannot read property 'actorId' of undefined and because it keeps giving out that error, the game lags almost to a standstill while I have the console open.
The error seems to be that because a party member doesn't exist, it's actorId cannot be read. But the HUD shouldn't be trying to access that actorId in the first place while the condition is false. At least, that's how it seems to work in the tutorial video SRD has up on youtube (though he never shows how things look while he has a member missing from party).
So...what exactly is going on here? How do I fix this?
I just finished making my custom actor portraits and trying to show them in battle HUD. To do this, I've done what SRD does in his tutorial video where I have $gameParty.members()[1].actorId() for the actorID part of HUD element and have $gameParty.members()[1] for the condition window to check if said party member exists. From a practical standpoint, this works. If said party member exists while testing the game, their portrait is displayed and if they don't exist, it's not.
However, some weird stuff is happening.
On the Element Manager, I get shown an ERROR tag, and the HUD displays the placeholder portrait I have for Actor 1 in my database (Only when setting up the HUD, doesn't show while testing the game). On top of this, if I have a missing member in my party, the console keeps spitting up the following error: TypeError: Cannot read property 'actorId' of undefined and because it keeps giving out that error, the game lags almost to a standstill while I have the console open.
The error seems to be that because a party member doesn't exist, it's actorId cannot be read. But the HUD shouldn't be trying to access that actorId in the first place while the condition is false. At least, that's how it seems to work in the tutorial video SRD has up on youtube (though he never shows how things look while he has a member missing from party).
So...what exactly is going on here? How do I fix this?