the VE_BattlerGraphicSetup plugin works without a hitch, but when I activate the SVActorPosition plugin it gives me an error
through VE_BattlerGraphicSetup I can equip weapons to the enemy with the code <enemy weapons: x>
when I'm in battle and the enemy tries to attack I get the message from the attached photo, and it only does so when SVActorPosition is active
does anyone know how I can solve it?
When your game crashes with an error, you need to press F8, go to the Console tab, and take a screenshot of the full error trace.
No one can help with just that isolated line.
That is not what I gave you instructions for...it doesn't help.
1 - That's not the plugin that comes with MV, it says SVActorPositionmod. So what is it and how is it modified? That's entirely possibly breaking the entire thing.
2 - You need to put all your posts into English. They were originally, because I read your first post, but now it's Italian, so no one can do anything for you.
Posts have been reverted to English for convenience.
Sorry but I have automatic translation set And so before publishing something I have to deactivate it otherwise everything will change to Italian I'll be more careful I promise.As for the plugin, I now tried to put the dlc version (SVActorPosition), but it still gives the same error
(function() { var parameters = PluginManager.parameters('SVActorPosition'); var SVActor1X = Number(parameters['actor1 Xpos'] || 1000); var SVActor2X = Number(parameters['actor2 Xpos'] || 1032); var SVActor3X = Number(parameters['actor3 Xpos'] || 1064); var SVActor4X = Number(parameters['actor4 Xpos'] || 1150); var SVActor5X = Number(parameters['actor5 Xpos'] || 1182); var SVActor6X = Number(parameters['actor6 Xpos'] || 1214); var SVActor1Y = Number(parameters['actor1 Ypos'] || 350); var SVActor2Y = Number(parameters['actor2 Ypos'] || 398); var SVActor3Y = Number(parameters['actor3 Ypos'] || 446); var SVActor4Y = Number(parameters['actor4 Ypos'] || 350); var SVActor5Y = Number(parameters['actor5 Ypos'] || 398); var SVActor6Y = Number(parameters['actor6 Ypos'] || 446); // -------------------- // process plugin commands // -------------------- var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand; Game_Interpreter.prototype.pluginCommand = function(command, args) { _Game_Interpreter_pluginCommand.call(this, command, args); if (command === 'SVActorPosition') { // check whether sv array is already defined or not if(!$gameSystem.svActorArrayDefined()){ $gameSystem.defineSvActorArray(); } // inspect and process parameters var value = Number(args[2]); if(value){ switch(args[0]){ case '1': if(args[1] === 'x' || args[1] === 'X'){ $gameSystem.svActorX[0] = value; } else if(args[1] === 'y' || args[1] === 'Y'){ $gameSystem.svActorY[0] = value; } break; case '2': if(args[1] === 'x' || args[1] === 'X'){ $gameSystem.svActorX[1] = value; } else if(args[1] === 'y'|| args[1] === 'Y'){ $gameSystem.svActorY[1] = value; } break; case '3': if(args[1] === 'x' || args[1] === 'X'){ $gameSystem.svActorX[2] = value; } else if(args[1] === 'y'|| args[1] === 'Y'){ $gameSystem.svActorY[2] = value; } break; case '4': if(args[1] === 'x' || args[1] === 'X'){ $gameSystem.svActorX[3] = value; } else if(args[1] === 'y'|| args[1] === 'Y'){ $gameSystem.svActorY[3] = value; } break case '5': if(args[1] === 'x' || args[1] === 'X'){ $gameSystem.svActorX[4] = value; } else if(args[1] === 'y' || args[1] === 'Y'){ $gameSystem.svActorY[4] = value; } break; case '6': if(args[1] === 'x' || args[1] === 'X'){ $gameSystem.svActorX[5] = value; } else if(args[1] === 'y' || args[1] === 'Y'){ $gameSystem.svActorY[5] = value; } } } } }; // -------------------- // define arrays for save sv actors' position // -------------------- var _Game_System_initialize = Game_System.prototype.initialize; Game_System.prototype.initialize = function() { _Game_System_initialize.call(this); this.defineSvActorArray(); }; Game_System.prototype.defineSvActorArray = function() { this.svActorX = [null, null, null, null]; this.svActorY = [null, null, null, null]; }; Game_System.prototype.svActorArrayDefined = function() { return !!this.svActorX; }; // -------------------- // set actors' position (overwrited) // -------------------- Sprite_Actor.prototype.setActorHome = function(index) { // check whether sv array is already defined or not if(!$gameSystem.svActorArrayDefined()){ $gameSystem.defineSvActorArray(); } // set default values var x = 600 + index * 32; var y = 280 + index * 48; // apply option values switch(index) { case 0: x = $gameSystem.svActorX[0] || SVActor1X; y = $gameSystem.svActorY[0] || SVActor1Y; break; case 1: x = $gameSystem.svActorX[1] || SVActor2X; y = $gameSystem.svActorY[1] || SVActor2Y; break; case 2: x = $gameSystem.svActorX[2] || SVActor3X; y = $gameSystem.svActorY[2] || SVActor3Y; break; case 3: x = $gameSystem.svActorX[3] || SVActor4X; y = $gameSystem.svActorY[3] || SVActor4Y; break; case 4: x = $gameSystem.svActorX[4] || SVActor5X; y = $gameSystem.svActorY[4] || SVActor5Y; break; case 5: x = $gameSystem.svActorX[5] || SVActor6X; y = $gameSystem.svActorY[5] || SVActor6Y; } // set position this.setHome(x, y); }; // -------------------- // set weapon animation's position // -------------------- var _Sprite_Weapon_setup = Sprite_Weapon.prototype.setup; Sprite_Weapon.prototype.setup = function(weaponImageId) { _Sprite_Weapon_setup.call(this, weaponImageId); this.setPosition(); }; Sprite_Weapon.prototype.setPosition = function() { // set X position by actor sprite size var actorBitmap = this.parent._mainSprite.bitmap; var actorSpriteWidth = actorBitmap ? actorBitmap.width / 9 : 64; this.x = -16 - (actorSpriteWidth - 64) / 2; // set Y default position this.y = 0; // change X,Y position by actor's note var battler = this.parent._battler; if(battler && battler.actor){ // Aggiunta la verifica var actorMeta = battler.actor().meta; if (actorMeta) { this.x += (Number(actorMeta.SVWeaponRight) || 0); this.y -= (Number(actorMeta.SVWeaponHeight) || 0); } } };})();
I tried to enter the error code on chatGPT, and then I inserted the plugin
he changed it for me and now it works
thanks everyone anyway.
I posted it here so if anyone has the same problem, there is already the modified plugin that can be used