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!