MV delay battle scene so that any "turn 0" troop events can fully load

kind of a niche issue i have is that the common event that places the overlay assets and tinting i use to make my battle scene prettier can only run after the battle scene properly loads in, which is unfortunately after the loading screen is gone and makes the asset loading visible to the player, something id like to avoid
heres a clip of what i mean if needed

ideally the loading screen just sticks around until turn 0 troop events are run but if thats weird to achieve then maybe just increase the length of the fade in effect that takes place before a battle (same fade in/out used for most if not all scene transitions, i use a plugin for custom transitions but the duration is the same so its not the issue here)
open to other solutions as well, but obviously im not getting rid of the overlays just to avoid dealing with this

apologies if this is the wrong category for this post it just feels more like a general mv issue than a plugin issue
bump
Can't you make it show the loading screen as a pic after the encounter start effect and then remove the pic at the end of your common event?
i believe when you load the battle scene picture effects clear but even if thats not the case im not sure how to designate something to happen after the encounter start effect seeing as that auto plays upon running the battle processing
Ah yeah that's true, it seems to get rid of all kinds of effects. Only thing I managed was to use script for the fadeout screen (not the fade it uses in some of the functions) after encounter start effect and then remove the line that gets rid of that fadeout and then manually remove the fadeout at the end of common event.
Try this as a plugin:
JavaScript:
(($) => {
    const alias = $.startBattle;
    $.startBattle = function() {
        alias.call(this);
        const value = $gameVariables.value(1);
        if (Array.isArray(value) && value.length === 4) {
            $gameScreen.startTint(value, 1);
        }
    }
})(BattleManager);
You can change $gameVariables.value(1) to any of your assigned variables (or any variable for that matter) - in this case, I am using Control Variable #0001 (which must be an array and must have 4 values in order for it to work):
s1.png

s2.png


Edit: If you don't want the tint for different battles, set Variable 1 to 0 or [] before a new battle. The array follows the same values as your tint event command (red, green, blue, gray).
it should be set elsewhere or before hand if its random encounters.
but nice plugin if it works though =)
it should be set elsewhere or before hand if its random encounters.
but nice plugin if it works though =)
Ah, you are correct. You could assign the array when transferring to a map with random encounters (or an autorun/parallel event that gets erased when the map loads).

It worked for my tests currently - just waiting for OP to see if there are any errors or changes needed to be made.
The OP mentioned that they're doing other stuff too in addition to the tint. But if it can all be thrown easily in that battle start spot, cool.
The OP mentioned that they're doing other stuff too in addition to the tint. But if it can all be thrown easily in that battle start spot, cool.
Interestingly enough, I am encountering a delay with a common event, possibly because of how it runs, even with the same code (just inside the common event and called with $gameTemp.reserveCommonEvent() instead).

@sudo7777 do you have a screenshot of your common event? I wonder if I can work it inside the function instead of using the common event.
sorry for the delay, my common events are set up like this
1749244654455.png
1749244917684.png


amongst some other basic show picture stuff it activates at turn 0 on every battle, i use yanflys base troop events as well if that matters

ill try testing your plugin tonight though!!

Original thread: https://forums.rpgmakerweb.com/threads/delay-battle-scene-so-that-any-turn-0-troop-events-can-fully-load.177952/