MZ Player can't move on respawn, VisuStella UniqueTileEffects and McKathlin GameOver

I use the GameOver plugin to simulate "fainting" to avoid the gameover screen or to avoid going back to the title screen upon death so as to instead tp the player back to a tent for instance
VisuStella's UniqueTileEffects works seamlessly with the gameover plugin for all tile effects EXCEPT water tiles and pitfall tiles
For some reason upon death via drowning through the water tiles, after the gameover plugin triggers a common event, the player can't move
Whereas upon dying in any other manner or via any other tile (quicksand lava shock etc) the game over common event triggers and the gameplay carries on seamlessly
Any ideas on why this is?
I have included an example of what I'm trying to say as file attachments
This is the clip from dying via water tiles:
This is the clip from dying via quicksand tiles:
Thanks in advance for your help?

Little update: I have tried it with Galv's autocommonEvent plugin, and it's the same result, it seems it has something to do with changing the gameover behavior
Up
Up

@Ahstval, please do not bump your topic unless it has been 24 hours later since your last post. You can review our forum rules here. Thank you.

There are members here from many different time-zones helping out in their spare time. Please be patient and let other people have their questions seen as well. 👋
Sure I apologize, I did not know.
[bump]@Ahstval[/bump] There are members here from many different time-zones helping out in their spare time. Please be patient and let other people have their questions seen as well. 👋
Up
Hi,

Have you considered reporting this to Visustella? In my experience they are quite responsive.

Also, I don't mean to play mod but I think the rule is that you shouldn't bump within 72 hours.

I do have the plugin, and what I can say from experience is that it is a FRIGGIN WILD HORSE. I've had so many problems with it that I'm on the verge of just abandoning an entire mechanic in my project that is dependent on it (namely that players can buy magical swim wear as an alternative to buying boats).

When you say "cannot move", does this include moving with debug mode (holding down Ctrl)? Also, would you be able to provide more details on the common events triggered upon death? Screenshots maybe?
Hello! Thank you for answering!
Hi,

Have you considered reporting this to Visustella? In my experience they are quite responsive.

Also, I don't mean to play mod but I think the rule is that you shouldn't bump within 72 hours.

I do have the plugin, and what I can say from experience is that it is a FRIGGIN WILD HORSE. I've had so many problems with it that I'm on the verge of just abandoning an entire mechanic in my project that is dependent on it (namely that players can buy magical swim wear as an alternative to buying boats).

When you say "cannot move", does this include moving with debug mode (holding down Ctrl)? Also, would you be able to provide more details on the common events triggered upon death? Screenshots maybe?
About bumping, yeah I was told so by the mod earlier, but I believe I have respected the 72 hour delay before my last bump?
Also, no I haven't tried reporting it to Visustella, I'm actually surprised i didn't think about it before! I will do!
I'm trying to simulate "fainting" so that when the player dies they're transferred to a close area depending on game progress that would be tracked via a variable; until they obtain a "temporary swimming spell" that would also trigger a timer, and when the timer goes off, a plugin command to turn the swimming ability off would run, resulting in the player drowning.
The gameover plugin works just fine with death brought about by quicksand tiles, shock tiles and lava tiles, after respawning the player can move like they're supposed to.
But when you die from water tiles and pitfall tiles, after the gameover screen goes off and the common event triggers, the player can't move, not with debug mode either I'm afraid :/ So it has to be something water and pitfall tiles have in common. Here is the said common event:
1692281594985.png

The recover all call isn't necessary, because you will respawn with 1 HP anyway. The fadein screen call is necessary because the plugin automatically keeps the screen faded out so you can run whatever actions you want meanwhile.
I have tried refreshing as well, still did not work.
Have you tried if saving + loading fixes the issue? If it does you could use save/load scripts before you fade in the screen after you transfer the player? (You can find those scripts in the script call list)
Have you tried if saving + loading fixes the issue? If it does you could use save/load scripts before you fade in the screen after you transfer the player? (You can find those scripts in the script call list)
I just tried it, I had high hopes for this because when I go to title screen and load back the game it seems to work fine. I added the script calls to the common event, but now it seems to go in an endless save/load loop. And I'd also like to remove the sound effect but I'm not too knowledgeable about js
Here are the script calls I used:

$gameSystem.setSavefileId(1);
$gameSystem.onBeforeSave();
DataManager.saveGame(1);

and:

DataManager.loadGame(1)
.then(() => {
SoundManager.playLoad();
SceneManager._scene.fadeOutAll();
if ($gameSystem.versionId() !== $dataSystem.versionId) {
const p = $gamePlayer;
p.reserveTransfer($gameMap.mapId(), p.x, p.y, p.direction(), 0);
p.requestMapReload();
}
SceneManager.goto(Scene_Map);
$gameSystem.onAfterLoad();
}).catch(() => SoundManager.playBuzzer());
Removing the sounds is easy, but you'll have to wait for caethyril to answer why the save/load scripts behave like that, or what else you need to add to imitate returning to the title scene, LOL.

(If I understood correctly you've already tested that transferring them to a different map and back during the fade out screen doesn't work, right?)
Removing the sounds is easy, but you'll have to wait for caethyril to answer why the save/load scripts behave like that, or what else you need to add to imitate returning to the title scene, LOL.

(If I understood correctly you've already tested that transferring them to a different map and back during the fade out screen doesn't work, right?)
Yes I have! I have also tried autosave/autoload plugins title screen bypass plugins..
ALSO: I had not noticed this before, but though you can't move you can still open the menu and manually save. So I did that, went to the menu, loaded the save, and nope, still can't move.
If the save/load is going in a loop...are you sure that's not because of your event setup? Not that it really matters: if a manual save/load doesn't work, a scripted version isn't likely to work either. 😴

A shot in the dark: in your "game over" event, if you set the player's speed to 4 (or whatever) using a move route, does that let them move again?
I figured it could be the case with the event setup.. But like you said it doesn't really matter and I didn't bother to fix it when I found out that a manual save/load did not work.
If the save/load is going in a loop...are you sure that's not because of your event setup? Not that it really matters: if a manual save/load doesn't work, a scripted version isn't likely to work either. 😴

A shot in the dark: in your "game over" event, if you set the player's speed to 4 (or whatever) using a move route, does that let them move again?
About setting the player's speed to 4, I just tried it right now, it still didn't work :/ It should be something that water tiles and pitfall tiles have in common because I don't have this issue with death via lava/shock/quicksand tiles but I just can't seem to figure that part out
(by the way thank you everybody for trying to help me with this)
It should be something that water tiles and pitfall tiles have in common
Yes, it does appear as though the passability of the tile the player was on "sticks" after the player respawns. Is there perhaps a property like "isDrowning" or "hasDrowned" that needs to be set to false before you can move again?

Edit: peeking in the plugin I can see:
turnOffDrowning
processDrowningEffect
StartDrowningEffect
_isDrowning

Perhaps setting any of these to TRUE or FALSE in the gameover common event might help?
Yes, it does appear as though the passability of the tile the player was on "sticks" after the player respawns. Is there perhaps a property like "isDrowning" or "hasDrowned" that needs to be set to false before you can move again?

Edit: peeking in the plugin I can see:
turnOffDrowning
processDrowningEffect
StartDrowningEffect
_isDrowning

Perhaps setting any of these to TRUE or FALSE in the gameover common event might help?
That was EXACTLY IT!!!! I had to switch _isDrowning off! Same for the pitfall tiles I also had to switch off _isPitfalling!! Thank you so much!!!!!
It's kind of surprising that the plugin doesn't inherently turn that off automatically in the event of death

Thank you so much everyone!!! It's FIXEDDDDDD
Great it worked! For future reference, would you be able to post the screenshot of the working common event?

I think it isn’t switched off upon drowning because it’ll be initialized anyway after gameover. Although yeah it is kind of funny since the plug-in (apparently) does reset this for you if set to respawn at the coast.
Great it worked! For future reference, would you be able to post the screenshot of the working common event?

I think it isn’t switched off upon drowning because it’ll be initialized anyway after gameover. Although yeah it is kind of funny since the plug-in (apparently) does reset this for you if set to respawn at the coast.
Oh yeah absolute!y! My bad:
1692401158489.png


I track game progress via the MapID variable and then trigger different "death events" depending on the context.

Original thread: https://forums.rpgmakerweb.com/threads/player-cant-move-on-respawn-visustella-uniquetileeffects-and-mckathlin-gameover.160273/