VXAce [SOLVED] Load save file without without opening window script?

Hello! i need the load file script without opening scene control window

i found this > DataManager.load_game(0)

but it does not work for me..
That should work normally.
How is it not working for you? You get some errors? Or it just doesn't do anything? And how and when do you use that line?
That should work normally.
How is it not working for you? You get some errors? Or it just doesn't do anything? And how and when do you use that line?
Ok so i just found out when i save in the same map and i click it the game frozes and it doesen't do anything... but if i save on a map and i go to a difrent map and select to load it does work
Try to add these lines after the load line:
Code:
      $game_map.setup($game_map.map_id)
      $game_player.center($game_player.x, $game_player.y)
      $game_player.make_encounter_count
Try to add these lines after the load line:
Code:
      $game_map.setup($game_map.map_id)
      $game_player.center($game_player.x, $game_player.y)
      $game_player.make_encounter_count
nothing..
maybe try adding on
Code:
$game_map.need_refresh = true

Also does it crash or just not return you to the previous position?

perhaps
Code:
SceneManager.goto(Scene_Map)
Shouldn't need that part, but maybe it will force something to run that is needed.
I checked one of my old projects where I made quick save/load function, and that goto call is needed indeed.
Extracted my script from that project, in case you need it:
Spoiler
maybe try adding on
Code:
$game_map.need_refresh = true

Also does it crash or just not return you to the previous position?

perhaps
Code:
SceneManager.goto(Scene_Map)
Shouldn't need that part, but maybe it will force something to run that is needed.
Thank you!! this worked!

DataManager.load_game(0)
SceneManager.goto(Scene_Map)
I checked one of my old projects where I made quick save/load function, and that goto call is needed indeed.
Extracted my script from that project, in case you need it:
Spoiler

Gladly Roninator2 give me solution but this would be my savior script for sure!
i might still use it, so thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/solved-load-save-file-without-without-opening-window-script.132550/