MV Could someone edit this plugin? (GALV's MV Variable Bar)

I need a plugin created by GALV to be edited. (I got direct permission from GALV to post this thread, for the record.)

MV Variable Bar

The issue is that the bars appear ABOVE pictures, and this is a problem because I have a fadeout picture that sweeps across the screen(think like a curtain closing effect), and the bars remain on top of it. I need to be able to designate certain picture numbers to show above the bars.

Picture #99 is the fade bar, but I might have other pictures that need to appear above or below later, so setting the bars to appear under ALL pictures could be problematic.

If anyone can help with this, it'd be greatly appreciated.
Try CT_Bolt Pictures Above
lile AquaEcho said or use picture 50+ for those.
another work around is a mini plugin for max picture = 1000 and
use scriptcalls to call ID 200, and also modify battle image that uses
picture ID + 100 by default (you probably need to modify this too)
if you use it in battle to let it show correctly or add +100 by default.
How exactly do I use it?

Because I attempted to use it today, and it did not seem to work. The pictures assigned to the GALV plugin still show.

image.png


It is an Oregon Trail styled game that primarily uses pictures and show text, and here is a test I added in with the fade picture active. (Normally, the text wouldn't be visible, but I just added this in at a random moment to test it, lol.)

I asked for an edit to GALV's Plugin because I think it handles the pictures differently. You don't exactly assign them a number or anything, you use a plugin call, and they appear there, and seem to have superiority over pictures.
How exactly do I use it?

Because I attempted to use it today, and it did not seem to work. The pictures assigned to the GALV plugin still show.

image.png


It is an Oregon Trail styled game that primarily uses pictures and show text, and here is a test I added in with the fade picture active. (Normally, the text wouldn't be visible, but I just added this in at a random moment to test it, lol.)

I asked for an edit to GALV's Plugin because I think it handles the pictures differently. You don't exactly assign them a number or anything, you use a plugin call, and they appear there, and seem to have superiority over pictures.
You need to lookup the name of the constructor Galv's plugin uses in its code (search for the word "constructor" and plug it into the script call of CT_Bolt's plugin. I know it works with SRD_HUDMaker.
You need to lookup the name of the constructor Galv's plugin uses in its code (search for the word "constructor" and plug it into the script call of CT_Bolt's plugin. I know it works with SRD_HUDMaker.

Let me know if I made a mistake anywhere.

I found this line:
image.png


I made a script call with the Sprite_VarBar
image.png


This had no effect. I copied the example in directly, so I shouldn't have any typos or errors in there, and if I did, it'd likely error, lol.
if yo want to hide the bars as your image is full screen, why not make a
toggle switch? turn ON to show the bars, OFF to hide it (or vice versa).

but it should work, but it might be possible galv_variable bar has another
thing you need to set to make it work.
Let me know if I made a mistake anywhere.

I found this line:
image.png


I made a script call with the Sprite_VarBar
image.png


This had no effect. I copied the example in directly, so I shouldn't have any typos or errors in there, and if I did, it'd likely error, lol.
That should be correct. You tried the show picture command after that script call? Also that plugin only works for showing PICTURES above a HUD, not animations
if yo want to hide the bars as your image is full screen, why not make a
toggle switch? turn ON to show the bars, OFF to hide it (or vice versa).

but it should work, but it might be possible galv_variable bar has another
thing you need to set to make it work.

You can toggle on and off the bars, but it wouldn't be seamless as the fade sweeps across the screen like a horizontal curtain effect, essentially covering everything up. It isn't a true fade, it just obscures all other pictures, as the game, in this portion of gameplay, is run entirely by pictures. Because of this, the bars would appear to disappear in a brief moment, rather than be a seamless cover-up, which I don't want.

That should be correct. You tried the show picture command after that script call? Also that plugin only works for showing PICTURES above a HUD, not animations

Not right after, I put this at the start of the game in the initialization map. Does it have to be on the same map? And, no, it isn't an animation. It needs to cover the three bars shown at the bottom of this image I shared before:

image.png


The three bars were setup using this command from the GALV plugin:

image.png
if its on transfer and shows for a brief moment before dissapear, I see that alot
with huds, even with other plugins, and I have no idea how to avoid that issue.

it's rather an bug or glitch MV on loading/transfer part that somehow "reload"
for use again.

I'm not entirely sure how to avoid that issue though, if it stays on screen, than
turning it off/remove it temporarly is the best way, but I dont know if there is
a perma fix for it though or how to fix it.
the fade sweeps across the screen like a horizontal curtain effect, essentially covering everything up. It isn't a true fade, it just obscures all other pictures, as the game,
What does the command for this fade effect look like?
What does the command for this fade effect look like?
It is a simple picture movement.

image.png


Here is a GIF showing the picture movement, and at the end, an abrupt fade out(no curtain effect,) showing that the bars still show. Ignore the text at the end, as that is only because I placed the picture in an unnatural moment, where it skips to the outcome phase.

game_zXsPqBOuiO.gif
it looks to be, you removed the pictures, but you didn't remove the bars or
at least not temporarly with it, so you need to remove the ID of the bars
and add them later when needed again when you erase the pictures.

how else is the variable bars be called and where?
it looks to be, you removed the pictures, but you didn't remove the bars or
at least not temporarly with it, so you need to remove the ID of the bars
and add them later when needed again when you erase the pictures.

how else is the variable bars be called and where?
I do not remove any pictures, I just have picture #99 cover all of the lower ones. They are still there.

Galv's Bars do not act as normal pictures. #99 does not cover them, and if I remove them while the covering is happening, they'll just abruptly disappear before the bar touches them, or appear to cover it briefly for a second before disappearing. I need them to appear UNDER picture 99, which cannot happen at the moment with how the plugin functions.
I see, I think I get you, Sprites are drawed differently and probably above
everything else (like SRD_HUDMaker), as CT_Bolts have a plugin to place
things below pictures or above pictures. the one AquaEcho mentioned.

I dont know what the effect was when you set it "above" or tried "below"
as well, but I can take a look tomorrow to see if I can figure out something.
without promises, if you have a short tech demo with the 2 plugin and
set up, I can see if I can do something for you on that demo for testing
purpose for a solution or modification.
I see, I think I get you, Sprites are drawed differently and probably above
everything else (like SRD_HUDMaker), as CT_Bolts have a plugin to place
things below pictures or above pictures. the one AquaEcho mentioned.

I dont know what the effect was when you set it "above" or tried "below"
as well, but I can take a look tomorrow to see if I can figure out something.
without promises, if you have a short tech demo with the 2 plugin and
set up, I can see if I can do something for you on that demo for testing
purpose for a solution or modification.
Yeah, sure. I can rig something up that has the same thing going on.

However, one thing that I will say about the CT_Bolt Plugin is that I tried using the plugin call at the top of the event page, and it just ended up deleting all pictures, so I dunno what happened there. The bars remained irregardless.
send a DM when you have something, I will be back tomorrow and take a look.
hopefully I can find something that fix it for you 🙂 or modify CT bolts plugin or
galv to make things work or otherwise 🙂
The issue has not been fixed. We only managed to make one bar disappear with CT_Bolt's plugin, but the other two still remain.
I got a brilliant idea how to fix this issue, I just need to test it 😀 will test
later today for you.

Edit: almost fixed in a smarter way ^^

Edit2: I fixed your entire solution nicely in very neat way (without CTB_AddPicturesABove),
without editing any plugin 😀 and its pretty smart too (I will explain how to do it)
but it require some changes as it is 99.5% smooth with a small sound delay when opening
the 2nd time (depending how the entire system works) but you can fix that on your own.

I DM you the solution, and you can place it here if you want too for others to know.
but I dont know how strict your options is for this effect.

but I can place it here too with a different slightly different setup 🙂

Edit 3 (with approval):
I could share the method used how you could accomplish the way.
as he had a FadeSweep effect from left to right and from right back to left.

as pictures are set below, and with CTB_AddPicturesAbove, it doesn't quite work,
even though, if you cut out the picture from those bars from underlaying pictures
except the overlay one.

So how can you make it work.

Spoiler: Step 1
Make sure you set the VariableX of the bar first (I use 97) but feel free to change that.
I would recommend the variables X, Y, ValueX, ValueY (99 & 100) to keep as reserve)
for this sprite ID only (which is 2 in this case).

once the variable value is set, create the bar (see comment).
I use "x" as a variable value, the 99 and 100 does nothing in this case, but must be set.
y = upper left as anchor point, 0, 0 for offsets as it is not required in this case.
BottomEvent1.png

Spoiler: step 2 IMPORTANT
I slightly modify it from the original, but effect is the same!

IMPORTANT NOTE: sound has a delay from around 10-15 frames when re-using it,
I dont explain how to fix that as it is not part on my side, but this delay is also there
when using it in the start, no delay when opening it!

set 1 wait or 2 as buffer, and make sure its a loop (IMPORTANT).
control the X variable + 18 per frames so it takes around 1.2 second from left to right.
ALWAYS set variable value first, or it does not work (this is base on 816 screen width!)
so change value if your width is different (same goes for height if you use it).

after that variable is set, use Galv.VBAR.mod(ID).x = $gameVariables.value(ID) to change
to the new value.

than check if variable ID >= value, it is, set value to a fix number that it must be, just
in case if it goes over it, than use Galv.VBAR.mod(ID).x = variable value again.
and break the loop. (if not using that, the value WILL be incorrect.

you can do the same for the other way around with - values.
use a high number ID for the overlay for this to work, if you only use 1 image, than
ID will be enough, else use 50+ depending how many you use.
FadeSweep.png

this is only an same, but you can go far fancier like 8 bars, with open and close.
in a neat way.

here are some idea's,:

2 bars (change x left, the other x to right)
2 bars (change y UP to down, adown to up
4 bars, use a PLUS pattern
4 bars, use a cross pattern

you can go fancy with underlaying bars extend further or top one with 8 bars!
or use 2-3 or 4 from left to right or right to left.

Enjoy.
This thread can now be closed, as a solution has been found and given.

Original thread: https://forums.rpgmakerweb.com/threads/could-someone-edit-this-plugin-galvs-mv-variable-bar.161213/