Multiple probelms

So, one of my first problems is that I'm trying to make the game in 640x480 (544x416 seems a little silly to me) using Yanfly's Ace Core Engine, but everytime I get into a battle this happens...
Problem.png
The battlebacks I can easily fix, but the real problem I'm looking at, is how the guages for hp and mp and etc go beyond the picture. This might due to also changing the party members to a max of 4 via Yanfly's Party System script, but I just want to know if there is a way I can fix this. I just started using this program so I'm really bad at Scripting.

Another problem is also in that picture, I have 4/5 battle scripts (Probably a bad thing)
The scripts are:
Yanfly's battle Engine (So I can use the next script)
Fomar0153's ATB Addon for Yanfly's Battle Engine (I love everything about AT😎
YanPac's Battle HUD (So I can change whose guages I want to see)
Pacman's Change Display Guage (Not sure why I have this really)
Pacman's Neo Guage Ultimate (Changes the layouts of guages in the game, I disabled it in the picture though)

The problem with this, is that with Yanfly's and Fomar's scripts alone, it would show the three basic guages; HP, MP/TP, and ATB on bottom.
But ever since I added the other three, it started only having two slots for guages, one for HP, and the other for ATB, but once ATB filled up, it changes to MP/TP until I select my move, I was wondering if there was a way to fix this as well, to have the normal 3 bars back, and if there's a way to make a Neo Guage for ATB as well. I really would appreciate all of your help.
It's due to the way the battle script handles gauge widths.  I've looked at the script extensively and it can be changed, however you'd have to hardcode the values into it, however if you use variable group sizes (changes from 3 to 4 to so on and so forth), it can get tricky.

As for the ATB gauge, you can change where the gauge is on the screen in Fomar's script.  Look for "draw_actor_stamina" and that should point you in the right direction.
I appreciate your help, but I have looked at draw_actor_stamina in multiple parts in the script, and it still makes no sense to me...Starting to wonder if I can make this work or not
ok after a bit of playing around with the scripts...

I've played around with Yanfly's scripts before so I know that the TP bar will never show unless the actor has a skill learned that requires TP. However, the YanPac HUD takes care of this via the notetagging. If you want to show the MP and TP for an actor use the tags

\def_draw_mp
\def_draw_tp

they must go in the actor's tab (they don't work in class tab).

Put the scripts in this order:

 Gauge Script

 Yanfly's Battle Engine

 YanPac Battle HUD

Change Gauge Display (although this one seems reduntant with YanPac Battle HUD)

 ATB (this one MUST be below the others)

For the ATB gauge, consider http://forums.rpgmakerweb.com/index.php?/topic/840-syvkals-menu-bars-vxace/

That gauge script effects all gauges drawn.
Thank you so much! This helps a lot! Still have the problem with the guage length, but I'm sure I can fix that later on, this is really awesome! Thank you 😀
np 😉

as djDarkX said, that would take some changes to the script to fix

    draw_actor_hp(actor, rect.x+2, line_height*2+gx, rect.width-4)    if draw_tp?(actor) && draw_mp?(actor)      dw = rect.width/2-2      dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE      draw_actor_tp(actor, rect.x+2, line_height*3, dw)      dw = rect.width - rect.width/2 - 2      draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw)    elsif draw_tp?(actor) && !draw_mp?(actor)      draw_actor_tp(actor, rect.x+2, line_height*3, rect.width-4)    else      draw_actor_mp(actor, rect.x+2, line_height*3, rect.width-4)    end
you'd want to change the linies with draw_actor_hp, _mp, and _tp. and change the rect.width-4 to 96 or 94 (depending on how the gauges draw (somtimes they are exact width sometimes they add a few pixels for their borders). 96 is the width of the face.

You'd probably have to change those on the PacHUD, I don't have them loaded any more so I can't test it out. The code above is from the Yanfly battle engine script but it should be something simular in the PacHud script
Okay, thank you again for that too! I'm just really bad with scripting but I do want to learn, I just barely understand any of this ^^'
this is a utube series that is pretty great to start learning. Just take your time with it and do the exercises with the guy. Give it time between lessons to sink in.

I changed to rect.width-4 to -32 and it worked, but uh....
Oops.png

It looks good, and it works, but the only problem is that the outline still spreads out farther than it should, is there anything else I could probably do to the script to change this?
the outline? do you mean the black border around the battle picture? you'd have to stretch the graphic to match your screen resolution (640x480)

There are ways to do it via script, but it's not something I'm that familiar with, or you can just stretch all the battlebacks in a graphic program like photoshop or GIMP (free graphic program). I'm not overly familiar with these programs as I use Adobe Fireworks for all my graphic stuff. But I'm sure there're lots of tutorials out there for those 2 programs as they're very popular
Edit.. Oh you mean the flashing cursor box around the actor's face?

sorry (accidently double post)
Yeah, I should have been more clear, my bad :x
I updated the Pac Hud. Should fix it.

YanPac Battle HUD.txt
Tested it and there was an error in Line 170: ZeroDivisionError occured
 

divided by 0.

Ohhhhhhhh nooooooo! ;_;
I'm not getting the error, looking into it to see what might cause it.
It only happens when I have one player in the party...Hmmmm
YanPac Battle HUD.txt

ok, that should fix it.. really!! 😉

I had a feeling that was the problem when I went back and looked at how I wrote it.
WORKS! Thank you so much! But um, also on the note of helping, I was wondering if there was a way to make it so that if a certain member was in the party they would say a line, but if they aren't in the party it would skip that statement.

Is there a way that I can do it? I really have some ideas for some this game and it work a lot if I could manage to do that :x I hate to ask a lot of you though
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


This Yanfly division by 0 error seems to be popping up very frequently. It would be good to know if it's an actual issue with the script (and have Yanfly provide a fix), or if it's because of a conflict between scripts. I don't know how many times I've seen this asked in the last couple of weeks.
in this case it was my fault on the divide by 0.

I'm going out to dinner now and I have a friend that's keeping me pretty busy with scripts already.  There are a few scripts that do something like this.  I think victory aftermath does some custom actor talking. There is also this one that has actual audio files

http://rmrk.net/index.php/topic,47294.0.html

Original thread: https://forums.rpgmakerweb.com/threads/multiple-probelms.18783/