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

Damascus7

Regular
Regular
Joined
Jul 21, 2019
Messages
157
Reaction score
44
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

Regular
Regular
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

Regular
Regular
Joined
Jun 25, 2021
Messages
1,092
Reaction score
1,575
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

Regular
Regular
Joined
Jul 21, 2019
Messages
157
Reaction score
44
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

I woke up a touch early and was going to draw by the fireplace until it’s a more appropriate noise-making time, but I left my stylus AND my glasses (WHAT?!) upstairs and it’s just too cold to get out of the blanket now.
Made some simple samples with the Time Reversal Mechanic. It would be interesting to make a bigger puzzle where you could dynamically choose which elements are affected by the time reverse. But if there's much more than move routes and waits, it's starts to get too annoying for my brain :D Like even that exploding bomb was such a bother.
Question: How do you sort your tilesets? Do you prefer to have "A2" or "B" or "A4" at the front of the name or what the map is about and then what it is?
Example 1: A2_ForestTown
Example 2: ForestTown_A2
Today I realized taking 1000 x 1000 px image and turning it into a 96 x 96 portrait looks... bad
Well... some good news from Kanori, actually... My interest in getting into aviation has been reignited by a wonderful story of a 14 year girl who made a cross country journey in an ultralight aircraft. Too many details to list, but the gist is I don't need to go through $15,000 worth of training to fly such an aircraft. I will need to thank her if I ever meet her at any airshows, etc. :)

Forum statistics

Threads
134,867
Messages
1,251,387
Members
177,666
Latest member
Shrimpknight67
Top