Show a message before saving/loading

My game has lots of custom data. As a result, the save/load proccess takes quite a while to finish. So I want to have a "Saving, please wait" message shown to the player so they know the game hasn't crashed.

I have tried making the following change to class Scene_Save:

class Scene_Save < Scene_File   #--------------------------------------------------------------------------  # * Confirm Save File  #--------------------------------------------------------------------------  def on_savefile_ok    $game_message.face_index = 0    $game_message.background = 0    $game_message.position = 1    $game_message.add("Saving. Please wait...")    $game_map.interpreter.wait_for_message    super    if DataManager.save_game(@index)      on_save_success    else      Sound.play_buzzer    end  endendHowever, when I try to save, I get the following error:

Game_Interpreter:246:in `yield`: can't yield from root fiber (FiberError)It seems there is no way to call messages from Scenes. If thats true, what can I use in it's stead? Anything that will convey the message will do, like an image.

Thanks!
If you don't mind using scripts Moghunter has a script like this.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
If you don't mind using scripts Moghunter has a script like this.
I'm looking into it, but all of his/her scripts are entwined very closely. I'm looking for a simpler approach.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Sorry :/
nerdmor, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If you want to quote several people, use the MultiQuote button. This way you can quote and reply to each one without double posting.
I think the error is happening because the current scene is not Scene_Map.

Try making an another window with the message (or a gauge) and initialize it in the Scene_Save

Original thread: https://forums.rpgmakerweb.com/threads/show-a-message-before-saving-loading.43293/