(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,984
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 Posts

Latest Profile Posts

Worked over a week on a new BGM, and I'm finally happy with it.

Here are some screenshots of the area it will be used in
EzLHppdVIAMY7DP


EzLHpqsVIAEZ7jt
#WIP Metal Tactics's TBS (2015 vs 2021)
VSt9pWc.png
ZXnpNYY.png
RPG Maker News #14 | Diffused Screen Effects, Unsellable Items, Ambient Synths, Adult Woman Set
If kids are going to be taught on computers and have access to the Internet, some basic knowledge of copyright should be a part of the grade school curriculum.
I have some news that I want to share - I've been accepted to university ^-^
I received some offers just over a month ago, but I wanted to make my choice and get things in place before sharing the news.
I'm super excited, and I'm very happy with my choice of program and school.

Forum statistics

Threads
110,513
Messages
1,053,867
Members
143,604
Latest member
arby
Top