MV [solved]Removing the fade after cancelling out the load scene.

Hi!
So basically I am not using any plugins to modify the default Save/Load screen, and when you cancel out of the load screen, there's a fade effect that happens and I don't know how to remove it.

I've tried the only thing that appears when I try to google a solution: This one. I saved it as a JS file, put it on top of all my plugins just to be sure it'll work(I left it at the bottom first and it didn't work) and yet it still didn't work. The fade remains.

Does anyone know of another plugin or another way to remove the fade?
This one. I saved it as a JS file
The only thing that plugin does is redeclare a function from the core files to comment out one line. It would have the same effect to ctrl+f that line and comment it out yourself, but it's bad practice to modify the core files since if something goes wrong it's not easy to locate and fix and you would have to download the engine again to get the untouched original files back.

Make sure you copied everything in that block of code exactly and didnt miss the }; at the end, and place it last in your plugin list on the off chance another plugin is overwriting the same function
Weird that @AquaEcho didn't notice this before but that plugin only works IF you press OK or click on OK. The requestor was looking for a way to cancel the fade out effect before loading the map scene. Nothing to do with going back to the title menu.

If @ecilla1 is using the default plugin for the load scene, there's NOTHING that needs to be changed. The cancel button would only kick out the load scene and rerun the title scene instead. No fade out involved there because there's no other function being called there. If you think you can still see a fade out effect on screen, it might be caused by your game running slowly at that point.
Weird that @AquaEcho didn't notice this before but that plugin only works IF you press OK or click on OK. The requestor was looking for a way to cancel the fade out effect before loading the map scene. Nothing to do with going back to the title menu.
Oh, I assumed that plugin was what the OP wanted since they downloaded it and tried to install it.

If @ecilla1 The cancel button would only kick out the load scene and rerun the title scene instead. No fade out involved there because there's no other function being called there. If you think you can still see a fade out effect on screen, it might be caused by your game running slowly at that point.
Well, unless the issue is the player is bringing up the load screen from the map rather than the title screen, then cancelling out back to the map.

Then the solution would be to find the other location this.fadeOutAll() is being called and do the same thing Shaz did: redeclare that function in a plugin file and comment out that line in that function.
Oh, I assumed that plugin was what the OP wanted since they downloaded it and tried to install it.


Well, unless the issue is the player is bringing up the load screen from the map rather than the title screen, then cancelling out back to the map.

Then the solution would be to find the other location this.fadeOutAll() is being called and do the same thing Shaz did: redeclare that function in a plugin file and comment out that line in that function.
Weird that @AquaEcho didn't notice this before but that plugin only works IF you press OK or click on OK. The requestor was looking for a way to cancel the fade out effect before loading the map scene. Nothing to do with going back to the title menu.

If @ecilla1 is using the default plugin for the load scene, there's NOTHING that needs to be changed. The cancel button would only kick out the load scene and rerun the title scene instead. No fade out involved there because there's no other function being called there. If you think you can still see a fade out effect on screen, it might be caused by your game running slowly at that point.
Hello!

Sorry for the late reply.
I was using an event, that calls a common event when you trigger it, the common event has some erase pictures and show pictures but nothing else, and then it also has a script to push scene load(i forgot the exact code, I should’ve made a screenshot earlier).

And the thing is, I am also using this exact coding to call the options and save windows, but when I cancel out of them using the right mouse click, the screen does not give any fade effects, it simply just removes the window and put me back where I was.

In the load scene though, when you cancel, it fades in from a black screen(which did not exist until you cancel suddenly there’s 1 black frame it fades in from).

I’m not sure if it’s understandable, but I will provide a video with screenshots later if it’s confusing.
I forgot to mention, I do not use any Save/Load plugins, I tried the one I saw from the link I provide earlier, but when it didn’t work, I removed it.
Hello!

Sorry for the late reply.
I was using an event, that calls a common event when you trigger it, the common event has some erase pictures and show pictures but nothing else, and then it also has a script to push scene load(i forgot the exact code, I should’ve made a screenshot earlier).

And the thing is, I am also using this exact coding to call the options and save windows, but when I cancel out of them using the right mouse click, the screen does not give any fade effects, it simply just removes the window and put me back where I was.

In the load scene though, when you cancel, it fades in from a black screen(which did not exist until you cancel suddenly there’s 1 black frame it fades in from).

I’m not sure if it’s understandable, but I will provide a video with screenshots later if it’s confusing.

Wait a second, did you say you pushed the load scene?
What happens if you "goto" that scene instead?
Wait a second, did you say you pushed the load scene?
What happens if you "goto" that scene instead?

I cannot 100% confirm this is what I was using, but I’m pretty sure it is:

Code:
SceneManager.push(Scene_Load);

How do I goto the scene?
Replace push with gato and check out if there's any change in the fadeout effect.
Replace push with gato and check out if there's any change in the fadeout effect.
I replaced the push with goto, and now when I cancel out of the load, it crashes? or at least quits the game completely.

This is how it looks like in game.

As you can see, I also showed how the option reacts to the same script, and it doesn't fade after I cancel out.

I also attached the common event that's being triggered.
Well, it says push on those screenshots. Since all of this happens after being on the map, it shouldn't crash but there might be a couple of details I could have missed here. I mean, like the way Options returns to the map or the main menu.
Well, it says push on those screenshots. Since all of this happens after being on the map, it shouldn't crash but there might be a couple of details I could have missed here. I mean, like the way Options returns to the map or the main menu.
Yes I put them back to push because I tried several times with goto, and it’s crashing. I can’t really record them because they corrupt the file.

Yes this is my title screen but made with Hime Pretitle so it’s a normal map.
Yes this is my title screen but made with Hime Pretitle so it’s a normal map.

=_= Never forget to mention such details like using Hime's plugin.
=_= Never forget to mention such details like using Hime's plugin.
I’m sorry, I didn’t thought it matters.

As you can see in the common event lists, I have 2 load common events, they are the same with only the “erase picture” different, they are also placed in different maps, but both of them acts this way.
One of the differences is that the title menu is the very first scene and this also means that usually using goto and then calling a scene that tells the game that it will be detached from the scene list, can make it crash terribly. Why? Because there was no other scene left. So yes, you might be forced to use push whenever you go to the next scene.
One of the differences is that the title menu is the very first scene and this also means that usually using goto and then calling a scene that tells the game that it will be detached from the scene list, can make it crash terribly. Why? Because there was no other scene left. So yes, you might be forced to use push whenever you go to the next scene.
I see. So there's no way to address the fade problem?
Are there any other ways to load a save game?
Yes, all menu scenes are intended for use with push.

The map scene deliberately fades in if coming from the battle or load scenes. Unfortunately it doesn't seem to distinguish between a successful load and a cancellation.

Try this:
Spoiler: plugin code
JavaScript:
/*:
 * @target MV
 * @plugindesc Remove map fade-in after cancelled load for Load -> Map transition.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/159161/
 * @help Free to use and/or modify for any project, no credit required.
 */

;void (function() {
'use strict';

  let loadSuccess = false;

  const _Scene_Load_create = Scene_Load.prototype.create;
  Scene_Load.prototype.create = function() {
    loadSuccess = false;
    _Scene_Load_create.apply(this, arguments);
  };

  const _Scene_Load_onLoadSuccess = Scene_Load.prototype.onLoadSuccess;
  Scene_Load.prototype.onLoadSuccess = function() {
    loadSuccess = true;
    _Scene_Load_onLoadSuccess.apply(this, arguments);
  };

  const _Scene_Map_needsFadeIn = Scene_Map.prototype.needsFadeIn;
  Scene_Map.prototype.needsFadeIn = function() {
    const res = _Scene_Map_needsFadeIn.apply(this, arguments);
    if (res && SceneManager.isPreviousScene(Scene_Load) && !loadSuccess)
      return false;
    return res;
  };

})();
Yes, all menu scenes are intended for use with push.

The map scene deliberately fades in if coming from the battle or load scenes. Unfortunately it doesn't seem to distinguish between a successful load and a cancellation.

Try this:
Spoiler: plugin code
JavaScript:
/*:
 * @target MV
 * @plugindesc Remove map fade-in after cancelled load for Load -> Map transition.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/159161/
 * @help Free to use and/or modify for any project, no credit required.
 */

;void (function() {
'use strict';

  let loadSuccess = false;

  const _Scene_Load_create = Scene_Load.prototype.create;
  Scene_Load.prototype.create = function() {
    loadSuccess = false;
    _Scene_Load_create.apply(this, arguments);
  };

  const _Scene_Load_onLoadSuccess = Scene_Load.prototype.onLoadSuccess;
  Scene_Load.prototype.onLoadSuccess = function() {
    loadSuccess = true;
    _Scene_Load_onLoadSuccess.apply(this, arguments);
  };

  const _Scene_Map_needsFadeIn = Scene_Map.prototype.needsFadeIn;
  Scene_Map.prototype.needsFadeIn = function() {
    const res = _Scene_Map_needsFadeIn.apply(this, arguments);
    if (res && SceneManager.isPreviousScene(Scene_Load) && !loadSuccess)
      return false;
    return res;
  };

})();
It works perfectly!
Thank you very much for the help!😍
One of the differences is that the title menu is the very first scene and this also means that usually using goto and then calling a scene that tells the game that it will be detached from the scene list, can make it crash terribly. Why? Because there was no other scene left. So yes, you might be forced to use push whenever you go to the next scene.
Thank you again!👋
Great! Happy RPG Making~ 👋

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-removing-the-fade-after-cancelling-out-the-load-scene.159161/