Greetings all,
I am pretty new to the RPG maker community, so hello. I am starting to look into making my own plugin and seem to be possibly missing something. I have gone through almost all of the official tutorial steps.
I am starting with a new project, no plugins and nothing edited. I have created a file myPlugin.js and saved it into the plugins directory. I was starting to follow Write a Plugin that reads Notetags - Beginner
But when I try to start the game I get this:
and in the console:
I looked at rpg_objects.js at 3440 and see the call but am not sure why/how I am affecting that.
Thanks all for your time and help.
I am pretty new to the RPG maker community, so hello. I am starting to look into making my own plugin and seem to be possibly missing something. I have gone through almost all of the official tutorial steps.
I am starting with a new project, no plugins and nothing edited. I have created a file myPlugin.js and saved it into the plugins directory. I was starting to follow Write a Plugin that reads Notetags - Beginner
(function () {
console.log('loaded plugin...')
// Retain a reference to the original function
const Game_Actor_setup = Game_Actor.prototype.setup;
Game_Actor.prototype.setup = (actorId) => {
})();// Retain a reference to the original function
const Game_Actor_setup = Game_Actor.prototype.setup;
Game_Actor.prototype.setup = (actorId) => {
// Call the original function
Game_Actor_setup.call(this, actorId)
this.race = $dataActors[actorId].meta.race || null;
}Game_Actor_setup.call(this, actorId)
this.race = $dataActors[actorId].meta.race || null;
But when I try to start the game I get this:
and in the console:
rpg_managers.js:1949 TypeError: this.initImages is not a function
at Game_Actor.setup (rpg_objects.js:3440)
at Game_Actor.setup (NameTag.js:7)
at Game_Actor.initialize (rpg_objects.js:3408)
at new Game_Actor (rpg_objects.js:3393)
at Game_Actors.actor (rpg_objects.js:4587)
at Game_Party.<anonymous> (rpg_objects.js:4871)
at Array.forEach (<anonymous>)
at Game_Party.setupStartingMembers (rpg_objects.js:4870)
at Function.DataManager.setupNewGame (rpg_managers.js:219)
at Scene_Boot.start (rpg_scenes.js:402)
at Game_Actor.setup (rpg_objects.js:3440)
at Game_Actor.setup (NameTag.js:7)
at Game_Actor.initialize (rpg_objects.js:3408)
at new Game_Actor (rpg_objects.js:3393)
at Game_Actors.actor (rpg_objects.js:4587)
at Game_Party.<anonymous> (rpg_objects.js:4871)
at Array.forEach (<anonymous>)
at Game_Party.setupStartingMembers (rpg_objects.js:4870)
at Function.DataManager.setupNewGame (rpg_managers.js:219)
at Scene_Boot.start (rpg_scenes.js:402)
I looked at rpg_objects.js at 3440 and see the call but am not sure why/how I am affecting that.
Thanks all for your time and help.