Battler Positions in 640x480

So i changed the resolution in vx ace to its highest 640x480 but now once i remade some new backgrounds for the battle screen to the appropriate size i can't move the battles in the troops tab as far down. So now it looks like there more in the back ground screen and not on the ground part. Makes them look like there flying if i have to place more then one enemy.

Is there a way to increase that window size? Or am I forced to find a way to make a script to try and poisition each troop set manually?

Need help with this.
You need to script it.


http://www.himeworks.com/2013/02/19/battle-sprite-auto-position/

I tryed to use your script, thank, by the way, but it worked in parts.


I am making a fan remake of a what was a light novel, and some of the sprites and battles, have no legs, so they must be placed as low as possible, to give the effect that is the camera cutting them. Your script did corrected the sprites postions, but it didn't put them at the lowest part possible. 


SO, I got your script, and changed this part 


 new method: adjust enemy battler coords
  #--------------------------------------------------------------------------
  def adjust_coords
    adjust_x = Graphics.width / 544.0
    adjust_y = Graphics.height / 390.0
    @enemies.each do |enemy|
      enemy.screen_x *= adjust_x
      enemy.screen_y *= adjust_y


and it did corrected the rest. My question is, is there a problem doing that? I am noob in scripting. thanks
You're in the right place there.  It's just a matter of adjusting those numbers until you get the result you're after.  If you know your width and height (640x480), you can just do the calculation manually and put the result in there instead of having it do the calculation each time.  Granted, it's only going to do it once for each enemy, each time you enter a battle, so it's practically no processing required.  But it might make it easier for you to tweak the numbers.
Well. With this settings, with Y in 390 instead of 416, it already allow me to drag the enemies to the botton of the screen in the troops menu. I didn't undestand what calculation you are saying, I am noob in scripting as I said, and I just presumed that these numbers were controling the enemy position by what is written. What I did was just try and error until I managed to make the enemies on the botton of the screen using the troops menu. Since I already know the correction, I just need to position the enemies of each enconter on the troops menu. My only doubt was if what I did could cause problems elsewhere. Since you said I was in the right direction, I will presume I did right then. 


Thanks for the help.
This is the calculation it's doing:


Graphics.height / 390.0


You know your window height is 480, so you can just do the calculation 480/390.0 which is 1.23 and put that onto the line instead of the calculation itself:


adjust_y =  1.23


This just means you're telling it what the value is instead of having it do the calculation each time it places a battler.  But as I said, this bit of code will be executed so infrequently that it won't make a bit of difference.


What you've done won't cause any problems elsewhere 🙂
Oh... so that / was a division? I thought it was separating commands or something. Now I understand what I did. Thanks.
haha - yep, / is division.  Comments in Ace scripts have a # in front.

Original thread: https://forums.rpgmakerweb.com/threads/battler-positions-in-640x480.25004/