Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: MV Help with a error: 'match' of undefined
- Original author: Geroto
- Original date: March 30, 2023
- Source thread: https://forums.rpgmakerweb.com/threads/help-with-a-error-match-of-undefined.156253/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
So, I'm trying to convert a plugin from RPG Maker VX ace to RPG Maker MV. But I'm spent almost a week try to resolve this error and run out of ideas. If you have any tips or suggestion it will be helpful! So here de error from the console: rpg_managers.js:1949 TypeError: Cannot read property 'match' of undefined at Function.ImageManager.isObjectCharacter (rpg_managers.js:906)
Archived First Post
So, I'm trying to convert a plugin from RPG Maker VX ace to RPG Maker MV. But I'm spent almost a week try to resolve this error and run out of ideas. If you have any tips or suggestion it will be helpful!
So here de error from the console:
rpg_managers.js:1949 TypeError: Cannot read property 'match' of undefined
at Function.ImageManager.isObjectCharacter (rpg_managers.js:906)
at Game_Player.Game_CharacterBase.setImage (rpg_objects.js:6630)
at Game_Player.refresh (rpg_objects.js:7407)
at Game_Player.performTransfer (rpg_objects.js:7451)
at Game_Player.performTransfer (SRD_SuperToolsEngine.js:2614)
at Scene_Map.onMapLoaded (rpg_scenes.js:569)
at Scene_Map.isReady (rpg_scenes.js:561)
at Function.SceneManager.updateScene (rpg_managers.js:2018)
at Function.SceneManager.updateMain (rpg_managers.js:1983)
at Function.SceneManager.updateMain (SRD_SuperToolsEngine.js:413)
I managed to track the cause of error in this lines of the code:
< ImageManager.loadPersona = function(filename, hue) {
return this.loadBitmap('img/persona/', filename, hue, true);
};>
<determineWindowSize() {
// Load button images
this._selectButton = "select_persona_button.png";
this._equipButton = "equip_persona_button.png";
this._releaseButton = "release_persona_button.png";
var hue = 0; // replace with the hue value you want (or omit if you don't need it)
var selectBitmap = ImageManager.loadBitmap(this._selectButton, hue);
var equipBitmap = ImageManager.loadBitmap(this._equipButton, hue);
var releaseBitmap = ImageManager.loadBitmap(this._releaseButton, hue);>
Here the link to complete code I have until now: https://github.com/Geroto/Persona-Path-of-the-Magician/blob/main/Persona Module
Thanks in advanced!
So here de error from the console:
rpg_managers.js:1949 TypeError: Cannot read property 'match' of undefined
at Function.ImageManager.isObjectCharacter (rpg_managers.js:906)
at Game_Player.Game_CharacterBase.setImage (rpg_objects.js:6630)
at Game_Player.refresh (rpg_objects.js:7407)
at Game_Player.performTransfer (rpg_objects.js:7451)
at Game_Player.performTransfer (SRD_SuperToolsEngine.js:2614)
at Scene_Map.onMapLoaded (rpg_scenes.js:569)
at Scene_Map.isReady (rpg_scenes.js:561)
at Function.SceneManager.updateScene (rpg_managers.js:2018)
at Function.SceneManager.updateMain (rpg_managers.js:1983)
at Function.SceneManager.updateMain (SRD_SuperToolsEngine.js:413)
I managed to track the cause of error in this lines of the code:
< ImageManager.loadPersona = function(filename, hue) {
return this.loadBitmap('img/persona/', filename, hue, true);
};>
<determineWindowSize() {
// Load button images
this._selectButton = "select_persona_button.png";
this._equipButton = "equip_persona_button.png";
this._releaseButton = "release_persona_button.png";
var hue = 0; // replace with the hue value you want (or omit if you don't need it)
var selectBitmap = ImageManager.loadBitmap(this._selectButton, hue);
var equipBitmap = ImageManager.loadBitmap(this._equipButton, hue);
var releaseBitmap = ImageManager.loadBitmap(this._releaseButton, hue);>
Here the link to complete code I have until now: https://github.com/Geroto/Persona-Path-of-the-Magician/blob/main/Persona Module
Thanks in advanced!
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...