MZ SV Actor Position Issue

I've got a bit of a problem that I'm trying to figure out a solution for. Currently I'm figuring out using MZ while trying to remake the setup I had going back on MV as close as I can and I was trying to figure out how to change the SV Actor Positions in battle.

I did find that there is a SVActorPositionMZ plugin included in the BasicResources dlc folder and this plugin worked perfectly for what I needed. However, I've ran into an issue and that it seems like this plugin messed around with Visustella's plugin, as far as I can tell, crashing the game whenever an actor attacks.

I'm aware that the Visustella Battle Core plugin has notetags for changing an actor home offset but I was having issues trying to figure out how to work with that and I'd much prefer just being able to set the party positions for actors 1 -4, instead of having specific set offsets for each actor individually.

I've attached images of my plugin list as well as the gameplay + devtool log, just in case anyone might be able to point me in the right direction of what the issue might be. If anyone knows of a solution or maybe a plugin alternative I can use, I'd greatly appreciate any advice.
Thanks!
Not sure if this would help, but did you try changing the plug-ins positions?
Not sure if this would help, but did you try changing the plug-ins positions?

Yes, I first tried putting it above every other plugin I have but it seems like the plugin doesn't function at all unless its placed anywhere underneath Visustella's Battle Core.
Moved to: JS/Plugin Support
I just recently found this exact same error myself. I'll let you know if I figure anything out.
I just recently found this exact same error myself. I'll let you know if I figure anything out.

Thanks, I'd appreciate it.
I've still not really had much luck with figuring out what the cause of the error might be.
It is the weapon animation section of the SVActorPositionMZ plugin. I was able to just comment that part out because my battlers use weapons built into their battle sheets.
If you comment it out the error goes away and you can set the positions, however I am not sure if BattleCore handles moving the weapon animations to the new locations so you will have to test it out on your own there.
It is the weapon animation section of the SVActorPositionMZ plugin. I was able to just comment that part out because my battlers use weapons built into their battle sheets.
If you comment it out the error goes away and you can set the positions, however I am not sure if BattleCore handles moving the weapon animations to the new locations so you will have to test it out on your own there.

Bit late to respond but I really appreciate the help. I'll see what I can figure out from that, thank you again!
Bit late to respond but I really appreciate the help. I'll see what I can figure out from that, thank you again!
Even later but i had the same problem and managed to solve it. I don't have to use weapons in my game because the sprites will have them attatched so i have no problem with this approach. What causes conflict between the two scripts is the weapon position only.

You have to modify the script SvActorPositionMz, open the code with note pad look for the following lines. Delete them. Careful, just delete those exactly. ( i made a copy of the original just in case tho)

// --------------------
// set weapon animation's position
// --------------------
const _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
const actorBitmap = this.parent._mainSprite.bitmap;
const 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
const battler = this.parent._battler;
if(battler){
this.x += (Number(battler.actor().meta.SVWeaponRight) || 0);
this.y -= (Number(battler.actor().meta.SVWeaponHeight) || 0);
}
};


I know it's late but if anyone comes up with the same problem it might help
Even later but i had the same problem and managed to solve it. I don't have to use weapons in my game because the sprites will have them attatched so i have no problem with this approach. What causes conflict between the two scripts is the weapon position only.

You have to modify the script SvActorPositionMz, open the code with note pad look for the following lines. Delete them. Careful, just delete those exactly. ( i made a copy of the original just in case tho)

// --------------------
// set weapon animation's position
// --------------------
const _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
const actorBitmap = this.parent._mainSprite.bitmap;
const 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
const battler = this.parent._battler;
if(battler){
this.x += (Number(battler.actor().meta.SVWeaponRight) || 0);
this.y -= (Number(battler.actor().meta.SVWeaponHeight) || 0);
}
};


I know it's late but if anyone comes up with the same problem it might help

No worries about being late, especially when it can help solve the problem. c:
This solution could work for now although I do prefer to use weapons in game so I wonder if there would be method of fixing it without removing that code. Though if push comes to shove, I guess I could just go with the method of attaching weapons to an actor sprite sheet.

Hopefully this is an issue that can get fixed with a plugin update or something.
No worries about being late, especially when it can help solve the problem. c:
This solution could work for now although I do prefer to use weapons in game so I wonder if there would be method of fixing it without removing that code. Though if push comes to shove, I guess I could just go with the method of attaching weapons to an actor sprite sheet.

Hopefully this is an issue that can get fixed with a plugin update or something.
Unfortunately I don't think there will be an update since the plugin for position is a default. The best thing we can hope for is for Visulstella team to include the option to change actors position based on party number. Which I find extremely unlikely. It's easier to just attach weapons to the sprites lol


But wait. I'm thinking.... It might still work. I haven't tried using weapons after this. After all visustellas plugin is supposed to calculate where the actor is in order to perform jumps and they work properly. Try it and tell me if it works

By erasing that part of the code we're only preventing both plug-ins from trying to calculate the actors position at the same time to draw the weapon but visustellas should still be doing it. I can't think of any reason for weapons not to be drawn at the correct placement.

Original thread: https://forums.rpgmakerweb.com/threads/sv-actor-position-issue.131408/