MV I'm having another issue with Yanfly

I have some plugins that keep crashing so I'm making my own Enemy HUD. Unfortunately, the small bars are too small and I can't figure out how to label them even after digging through the online spreadsheet attached. I'm using SRD's HUD maker too.

Basically, I want to mimic Yanfly's Enemy HP bar (which is what keeps crashing because of a 'non-definitive' or similar almost at random), where you select an enemy and it changes what enemy bar is visible on the screen. I can probably improve on the code too but for now I think it mostly works, it's mainly just finding out how to do the enemy select. And yes I plan to have most of my battles be map events.

If it would be easier, I'd be overjoyed to use Yanfly's plugins but, as I mentioned, it keeps crashing and so I've turned off everything but Olivia's, though I'd want that too because of level up healing. If I find something more compatible I'd use it but I have no idea what I'm doing.

Yanfly Core Engine
Yanfly Visual HP
Yanfly Segmented Gauges
Olivia Anti-Stress

SRD HUD Maker
Script Calls

Choose whatever route you like, I just want to fix this enemy HP.
Thanks.


Spoiler: IMAGES
1666582804860.png
1666583323663.png
1666583357544.png

1666582829919.png
1666582857413.png

1666582878127.png

1666582893082.png

1666582909470.png
This might be the dumbest question ever, but... do you have Yanfly's Battle Engine Core active in your plugins folder? It's one of the requirements for using the Visual HP plugin.
I'm making my own Enemy HUD...I want to mimic Yanfly's Enemy HP bar (which is what keeps crashing because of a 'non-definitive' or similar almost at random)
I would suggest you try to get this resolved. It's a very straightforward plugin, so if you have it set up properly and you're not misusing something in your game, there's no reason it should cause any crashes.

As for what you have, you have at least one (and it appears several) invalid pieces of code in your HUD Maker.

The pop up error "error with if (target.name===$gameTroop.members()[0]) is invalid because you're comparing a name (character string) on one side to a Game_Enemy object on the other. You would need to look at $gameTroop.members()[0].name

The errors in your console screenshot starting with "unexpected token" all indicate mistyped code. It looks like it starts with you having one too many close braces.

It's hard to tell after that whether anything else is more mistakes by itself or a result of the mistyped brace, which causes all the code after it to be misread.

You can proofread and/or post screenshots of all your code you're using in the HUDMaker. Or, if you're only using that plugin because you're having issues with the Visual HP, turn the HUDMaker off and show us what's going wrong with the Yanfly.
This might be the dumbest question ever, but... do you have Yanfly's Battle Engine Core active in your plugins folder? It's one of the requirements for using the Visual HP plugin.
Checked, it's on

I would suggest you try to get this resolved. It's a very straightforward plugin, so if you have it set up properly and you're not misusing something in your game, there's no reason it should cause any crashes.

As for what you have, you have at least one (and it appears several) invalid pieces of code in your HUD Maker.

The pop up error "error with if (target.name===$gameTroop.members()[0]) is invalid because you're comparing a name (character string) on one side to a Game_Enemy object on the other. You would need to look at $gameTroop.members()[0].name

The errors in your console screenshot starting with "unexpected token" all indicate mistyped code. It looks like it starts with you having one too many close braces.

It's hard to tell after that whether anything else is more mistakes by itself or a result of the mistyped brace, which causes all the code after it to be misread.

You can proofread and/or post screenshots of all your code you're using in the HUDMaker. Or, if you're only using that plugin because you're having issues with the Visual HP, turn the HUDMaker off and show us what's going wrong with the Yanfly.
I have no idea what I did but it's working now. I know I messed with some stuff but it still wasn't working earlier.

I guess we can mark this as closed? I'm still confused but at this rate I'm just not gonna look the gift horse in the mouth. ^^'

If it shows up again, I'll send a screenshot tho.

Original thread: https://forums.rpgmakerweb.com/threads/im-having-another-issue-with-yanfly.152190/