Error: 'Actor' undefined in ActorVoicesInBattle

Hi everyone, thanks for checking out this post.

I am referring to this script, which allows manual configuration of battle voices for various scenarios.

I have keyed in the specific filenames for each case in the config. file using text editor, but this error keeps popping up:

Annotation 2020-05-18 034014.jpg


Has anyone encountered this error while using this script? It would be good to know what kind of error this is so that I can rectify it ASAP.
Thank you!
That indicates $.Config.PARTY_NEEDS_HEALING is undefined.

Do you have the config plugin installed and set up as well? Are they in the right order? Please show a screenshot of your plugin manager, and a screenshot of your config file, where you have changed this value - include from lines 124 through 140 in the screenshot.
Hi Shaz, thanks for the reply!

plugin manager.jpg

I placed the ActorVoices scripts under all Yanfly's scripts.

needhealing.jpg

PARTY_NEEDS_HEALING lines.

Thanks again.
Hi everyone, the issue is not yet resolved.

I shall bump this post up with a screenshot of the bugged portion, not the config. file.

Annotation 2020-05-21 040219.jpg


From what I gathered, 'ratio' is the variable that is undefined, but I am not proficient in JS to make adjustments. My RPG Maker MV version is 1.5.1, which is supposed to be compatible with the scripts.
1) your yanfly plugins are in the wrong order. They have to be exactly in the order given on his website or they are likely to cause problems.

2) "undefined" means that the engine is missing data. there are several possible causes, but the two most likely are that either the new plugin is configured for actors that do not exist in your database (does your database contain four actors?), or you loaded an incompatible older savefile.
In the second case that would be solved by starting a new playtest and deleting all older savefiles.
Hi Ander, thanks for the reply!

1) I have rearranged the Yanfly scripts according to his webpage.
Annotation 2020-05-21 140109.jpg

However, it seems that the problem is not yet resolved.

2) I only have three actors in total for this game, and as per instructions, I left the SE file names for actors 4 to 6 blank. I have 6 total actors in the game manager, with actors 4-6 left blank. I usually test with a random encounter in a new game, so the latter shouldn't be a problem.

Party needs healing.jpg

However, the same problem persists. It seems to only occur when I am entering battle (the error screen appears after the encounter sound).
I'm not seeing anything obvious.

If you'd care to zip up your project and load it to dropbox or similar, then PM me a link, I can take a look at it. Might not get to it until the weekend though, depending on how long it takes you to upload.


Edit (so as not to double post):
I should have asked you to do this first.

Play your game, when you get to the title screen, hit F8 to open the developer tools. Go to the Console tab and look for errors. It will tell you which plugin and which line has the error. Fix it, save, play again, repeat as necessary. I stopped looking after the 4th error in the config file, but you might find more.

Original thread: https://forums.rpgmakerweb.com/threads/error-actor-undefined-in-actorvoicesinbattle.121696/