MZ Actor Battle Window Position Bug


Basically, after I complete first battle, the actor window is awkwardly extended to the bottom of the screen, which, of course, shouldn't happen. And now the tricky part, since I use A LOT of small scripts/plugins, that move window around, so I have no choice but to attach most of them here. I also use sideview, and VisuMZ free plugins.
And now the tricky part, since I use A LOT of small scripts/plugins, that move window around, so I have no choice but to attach most of them here.
Please do not attach plugins, but link to them instead. Many plugin authors do not allow redistribution of their code.

I highly recommend reading the stickied topic and doing some basic troubleshooting to narrow down the issue; simply telling us you have a few plugins that might (or might not) be causing an issue does not help anyone.

Okay, sorry
Have you considered starting some JavaScript tutorials?

For the number of posts you write about trying to customize your UI exactly the way you want it and the amount of time you spend in their conversations and waiting for replies, you could be learning how to understand the related code so you're able to look it up and modify it yourself.

Also, you responded with "Okay, sorry" but didn't actually remove the file from your first post.
As others have said, please read the terms of use and prefer to link back to 3rd-party resources where possible. I checked the attached archive, containing 7 plugins.
  • 3 of them have terms of use in-file:
    • 2 by me:

    • 1 by Oggy: "Oggy_BattleStatusShift". I couldn't find it with a quick search. The file is misnamed, but that's a non-issue because it doesn't actually use its plugin parameter anywhere. Terms are "Free for use in commercial and non-commercial projects. Credit is not required."

  • 1 looks like "Marrend's Scriptlet Collection":

  • The remaining 3 don't even have a header:
    • "Zorochii" - removes background rectangles in battle status.
    • "MoveActorBattleWindow" - moves battle status and battle log.
    • "MoveWindows" - overrides various battle window rects.
The first 3 seem OK on redistribution. Marrend's is ambiguous. The other 3, who knows?

So I've removed the attachment.


Regarding your current question: the battle actor selection window usually copies the position of the battle status window. So it's almost certainly a plugin doing something you do not want it to do.

The "MoveWindows" plugin might be responsible. Try turning off all the small plugins, save your project to apply Plugin Manager changes, then test.

You could also Ctrl+F through non-obfuscated plugins for these terms:
  • Scene_Battle.prototype.actorWindowRect
    • This is the core method that returns a rectangle determining the size of the battle actor selection window. A plugin may alter this method, effectively moving and/or resizing that window.
  • ._actorWindow
    • This is the core property of the battle scene, used to store a pointer to the current instance of Window_BattleActor on the scene.
That may help to narrow down the culprits.


Incidentally, about that problem with the actor selection window in one of your previous threads...
As mentioned, there's some other issue here because the positions ought to match by default.
The "MoveWindows" plugin overrides that. Mystery solved!
As others have said, please read the terms of use and prefer to link back to 3rd-party resources where possible. I checked the attached archive, containing 7 plugins.
  • 3 of them have terms of use in-file:
    • 2 by me:

    • 1 by Oggy: "Oggy_BattleStatusShift". I couldn't find it with a quick search. The file is misnamed, but that's a non-issue because it doesn't actually use its plugin parameter anywhere. Terms are "Free for use in commercial and non-commercial projects. Credit is not required."

  • 1 looks like "Marrend's Scriptlet Collection":

  • The remaining 3 don't even have a header:
    • "Zorochii" - removes background rectangles in battle status.
    • "MoveActorBattleWindow" - moves battle status and battle log.
    • "MoveWindows" - overrides various battle window rects.
The first 3 seem OK on redistribution. Marrend's is ambiguous. The other 3, who knows? Moderator note: So I've removed the attachment.

Regarding your current question: the battle actor selection window usually copies the position of the battle status window. So it's almost certainly a plugin doing something you do not want it to do.

The "MoveWindows" plugin might be responsible. Try turning off all the small plugins, save your project to apply Plugin Manager changes, then test.

You could also Ctrl+F through non-obfuscated plugins for these terms:
  • Scene_Battle.prototype.actorWindowRect
    • This is the core method that returns a rectangle determining the size of the battle actor selection window. A plugin may alter this method, effectively moving and/or resizing that window.
  • ._actorWindow
    • This is the core property of the battle scene, used to store a pointer to the current instance of Window_BattleActor on the scene.
That may help to narrow down the culprits.


Incidentally, about that problem with the actor selection window in one of your previous threads...

The "MoveWindows" plugin overrides that. Mystery solved!
Well, yes, I did tried to disable smaller plugins, but it didn't went away. And when I disable just MoveWindows, it doesn't becomes normal either.
And yeah, thanks for handling that plugin situation, I was at university at the moment, so it was helpful (I will not attach any more plugins in a future, I swear)

Have you considered starting some JavaScript tutorials?

For the number of posts you write about trying to customize your UI exactly the way you want it and the amount of time you spend in their conversations and waiting for replies, you could be learning how to understand the related code so you're able to look it up and modify it yourself.

Also, you responded with "Okay, sorry" but didn't actually remove the file from your first post.
Sorry, I was at university, so I couldn't delete them at the moment. And about JS tutorials, I, well, REALLY bad at math and stuff similar to it, since I'm more of artsy person. But if that's getting really bad, I guess I could post less, if you want so.
So, I started to go insane trying to figure this out. None of smaller plugins does that, but when I turned off the one, that allows to change actor window, I noticed this. No matter the plugins (beside VisuMZ), it moves down on every next fight until you reopen the game. So something wants to lower it either way
1699649037010.png

1699649086115.png
The problem is, that you're using multiple plugins to affect the battle layout, have changed plugin settings, modified some base js files (or maybe I remember wrong?) and have added at least one picture to the layout.

And many times when you ask questions you don't tell what you've done. So it's difficult for anyone to offer help. Also, this kind of stuff like exact placement of menus is something people usually code themselves, use the HUDMaker(?) or commission stuff...at least that's my impression.
Sorry, I was at university, so I couldn't delete them at the moment. And about JS tutorials, I, well, REALLY bad at math and stuff similar to it, since I'm more of artsy person. But if that's getting really bad, I guess I could post less, if you want so.
Dude, this is all math. You can't be bad at math and really do this without help.

I have one person that I know who is a programmer. He's been working professionally with JS for 7 years. Even he can't help with any of this stuff. He says what you say about math. Normal programming isn't half the math that making a game is. Most games aren't half the math RPG's are. Also I show him the code base and he says f that lol. Just pay someone to set up the windows or spend 12 years making your game like the rest of us haha.
Well, as they say, "If the mountain won't come to Muhammad then Muhammad must go to the mountain"

I may look into VisuMZ plugins in hope of finding something, but for now that's it. I mean, good thing is that it stays like that until you close the game, so yeah.
Not all programming requires math. For a user interface I would suspect it is just basic addition and subtraction of pixels for window sizes and offsets. If you were asking about something like programming particle effects moving in sine waves that would be another story.

Original thread: https://forums.rpgmakerweb.com/threads/actor-battle-window-position-bug.162801/