Changing HP gauge height in rpg_windows.js, WITHOUT using a plugin

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
143
Reaction score
39
First Language
English
Primarily Uses
RMMV
Hey, y'all! So I'm still working on an ongoing problem with changing the height of HP gauges, and I can't do it exactly the way I want with any available plugins. Any of the plugins I try either do not give me the option to change the height, do not work properly with one or more of my own events (Yanfly's Visual HP gauges), or conflict with one of my existing plugins, like the one offered by Poryg in this thread.

While talking with Olivia about one of her plugins, she suggested I make changes directly to the rpg_windows.js script to change the base height of the HP gauges. I'm guessing this is the relevant section of code that needs to be altered.

1658267333867.png

However, Olivia doesn't know exactly what it is that I need to change to alter the gauge height. I've tried changing the value of gaugeY directly, as well as the 6's in the last two lines, but none of those changes seem to have any effect. Any help would be greatly appreciated!
 

oooNUKEooo

Veteran
Veteran
Joined
Sep 22, 2020
Messages
170
Reaction score
45
First Language
br portuguese
Primarily Uses
RMMV
have you tried making these changes you listed on a new project? maybe yanflys plugins modify the gauge parameters to provide its own gauges.
 

Arthran

Veteran
Veteran
Joined
Jun 25, 2021
Messages
616
Reaction score
612
First Language
English
Primarily Uses
RMMZ
The 6s are the height. If changing them didn't have any effect, then it means that one of your other plugins is interfering with the change. You either have a plugin that is overwriting that function, or altering the code that calls that function and making it call a custom function instead.

Without knowing what all plugins you're using, it's hard to really help you. Even if we knew what all plugins you're using, it would be hard to help you, because I doubt that a lot of people have the source code of every one of your plugins memorized, and it might be hard to find somebody who will want to go download every plugin that you own and pick them apart.

You could try disabling any plugins that you think are a likely candidate, and see if it works. If so, then start enabling them again one-by-one until you figure out which plugin it is. Once you figure that out, it would be easier for someone to assist you.

On a side note, the advice that you received is somewhat questionable. There aren't many good reasons why you would *need* to edit rpg_windows.js. Making a plugin and putting it in the top spot of your plugin manager would have the same effect, unless you've got a plugin that is screwing with your load order somehow (which isn't impossible, but it's very unlikely). And neither of those things is going to be helpful if you've got a plugin overwriting that function.
 

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
143
Reaction score
39
First Language
English
Primarily Uses
RMMV
Looks like you were right about a plugin overwriting! It turned out to be Yanfly Core, which I didn't even realize has settings to adjust gauge heights. (I did even go through the parameters once when I was working on this issue and apparently completely missed it.)

So I was just able to use that plugin to do what I needed. Problem solved, thanks for the help!
 

Latest Threads

Latest Profile Posts

Sometimes I wonder why I still try and recruit others to help with my games. It never works.
ScreenShot_10_3_2022_4_27_17.png
welp, thanks to Luna MV, I was able to add the Balloon as a window... thus allowing me to edit the font color and outline... so now it looks like comic bubbles above characters. I have NO idea why I couldn't get this to work through more conventional means, but here we are.
CUTE CUTE CUTE.gif
I cannot cease doing cute art
War and Wonder is a 100% choice-based open-world visual novel.
1664821313732.png
1664821466359.png
1664821547746.png
Going live soon on Twitch, and will continue Fortunastreet's game "Verloren". For those who are curious, you are welcome to join ;)

-> Franz' Twitch channel

Forum statistics

Threads
125,749
Messages
1,173,222
Members
164,911
Latest member
KyzerKiba
Top