(VX ACE) Load save file without without opening window script?

RedRose190

Anna/Misty190
Veteran
Joined
Oct 9, 2018
Messages
95
Reaction score
38
First Language
Greek
Primarily Uses
RMVXA
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..
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,194
Reaction score
843
First Language
Hungarian
Primarily Uses
RMVXA
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?
 

RedRose190

Anna/Misty190
Veteran
Joined
Oct 9, 2018
Messages
95
Reaction score
38
First Language
Greek
Primarily Uses
RMVXA
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
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,194
Reaction score
843
First Language
Hungarian
Primarily Uses
RMVXA
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
 

RedRose190

Anna/Misty190
Veteran
Joined
Oct 9, 2018
Messages
95
Reaction score
38
First Language
Greek
Primarily Uses
RMVXA
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..
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,983
Reaction score
665
First Language
English
Primarily Uses
RMVXA
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.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,194
Reaction score
843
First Language
Hungarian
Primarily Uses
RMVXA
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:
 

RedRose190

Anna/Misty190
Veteran
Joined
Oct 9, 2018
Messages
95
Reaction score
38
First Language
Greek
Primarily Uses
RMVXA
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)
 

RedRose190

Anna/Misty190
Veteran
Joined
Oct 9, 2018
Messages
95
Reaction score
38
First Language
Greek
Primarily Uses
RMVXA
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:
Gladly Roninator2 give me solution but this would be my savior script for sure!
i might still use it, so thank you very much!
 

Latest Threads

Latest Profile Posts

Definitely glad I haven't released a few of my plugins that are technically done. As I learn more, I find ways to make my code more efficient, and in one case so far, discovered an existing function that did EXACTLY what I created my own function to do.
So I was kinda recommended a manga to learn a few drawing tips, I dunno if it will actually work, but I'm liking the story lol
M745veO.jpg
RPG Maker News #12 | Control Zooming, Customize Bush Effect, Causality & Happy Bones on Steam
Episode 16 let's go! We're making an RPG in RPG Maker MZ! This week... even more mapping, we're almost done with all the mapping for our first dungeon!

I have big news. I just got hired at a Mexican restaurant! They're like Chipotle but a bit different... and my job will be taking orders some days, delivering food other days, and of course, making customers happy. My orientation is on Tuesday. Once I start, I might disappear from here sometimes, but I'll always try to come back!

Forum statistics

Threads
110,448
Messages
1,053,400
Members
143,532
Latest member
Kinhu
Top