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

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!
have you tried making these changes you listed on a new project? maybe yanflys plugins modify the gauge parameters to provide its own gauges.
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.
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!

Original thread: https://forums.rpgmakerweb.com/threads/changing-hp-gauge-height-in-rpg_windows-js-without-using-a-plugin.149640/