SRPG Gear MV error :Cannot read property 'match' of undefined.

I've tried for 2 hours trying to get SRPG Gear MV to work. I'm looking at the sample game and even copying the events from there to see if they'd work but every time a battle starts I get TypeError Cannot read property 'match' of undefined.
When I open the console I see this:

rpg_managers.js:1949 TypeError: Cannot read property 'match' of undefined
at Function.ImageManager.isObjectCharacter (rpg_managers.js:906)
at Game_Event.Game_CharacterBase.setImage (rpg_objects.js:6664)
at Game_Event.refreshImage (SRPG_core.js:5253)
at SRPG_core.js:5327
at Array.forEach (<anonymous>)
at Game_Map.setEventImages (SRPG_core.js:5326)
at Game_System.startSRPG (SRPG_BattlePrepare.js:745)
at Game_Interpreter.pluginCommand (SRPG_core.js:2199)
at Game_Interpreter.pluginCommand (SRPG_BattlePrepare.js:239)
at Game_Interpreter.command356 (rpg_objects.js:10508)

I can't tell what it is I'm missing that the sample game has.
I've tried for 2 hours trying to get SRPG Gear MV to work. I'm looking at the sample game and even copying the events from there to see if they'd work but every time a battle starts I get TypeError Cannot read property 'match' of undefined.
When I open the console I see this:

rpg_managers.js:1949 TypeError: Cannot read property 'match' of undefined
at Function.ImageManager.isObjectCharacter (rpg_managers.js:906)
at Game_Event.Game_CharacterBase.setImage (rpg_objects.js:6664)
at Game_Event.refreshImage (SRPG_core.js:5253)
at SRPG_core.js:5327
at Array.forEach (<anonymous>)
at Game_Map.setEventImages (SRPG_core.js:5326)
at Game_System.startSRPG (SRPG_BattlePrepare.js:745)
at Game_Interpreter.pluginCommand (SRPG_core.js:2199)
at Game_Interpreter.pluginCommand (SRPG_BattlePrepare.js:239)
at Game_Interpreter.command356 (rpg_objects.js:10508)

I can't tell what it is I'm missing that the sample game has.
I had this issue and got it working! For me, I had failed to include the <characterName:X> and <characterIndex:X> tags in the enemy note blocks. From the looks of it, you've got the same issue. The plugin is trying to assign images to your enemies and can't find the images to use, so it borks. Hope this helps!
To claim to have had the same error based on the message rarely works with that form of message.

The key to the error message is the "of undefined", and it is saying that the engine was given a reference to a data object that does not exist.
And "Match" is a property under that non-existing data object.

That said, from the functions involved in the error-trace we can tell that yes, it involves images for events and it very loikely happened during setup to start the game.
So I would check the solution above first, just don't focus on it if it doesn't work.
I had this issue and got it working! For me, I had failed to include the <characterName:X> and <characterIndex:X> tags in the enemy note blocks. From the looks of it, you've got the same issue. The plugin is trying to assign images to your enemies and can't find the images to use, so it borks. Hope this helps!
Hey, could you tell me more? I think I'm having the same issue, but I'm not sure what I should put inside the <characterName:X> and <characterIndex:X> tags
Hey, could you tell me more?
Probably not - the thread has been dead since May and the poster you're quoting hasn't been here since July.

I'm not sure what I should put inside the <characterName:X> and <characterIndex:X> tags
Name is the name of the file and Index is which character it is, from left to right, top to bottom, starting at 0.

1729010025301.png


Name Actor2, Index 2.

@Whoopeecap, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

If you have an issue, please make your own thread with the details on what you've tried and what's not working.

Original thread: https://forums.rpgmakerweb.com/threads/srpg-gear-mv-error-cannot-read-property-match-of-undefined.165840/