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

RedRose190

Anna/Misty190
Veteran
Joined
Oct 9, 2018
Messages
95
Reaction score
37
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,188
Reaction score
839
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
37
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,188
Reaction score
839
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
37
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,910
Reaction score
643
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,188
Reaction score
839
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
37
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
37
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

Do you like to practice level design? I do hahahaha! It's not from a specific game, it's just some tests...Fase 1.png
I really need a better indicator of where you can jump up and down though I feel... otherwise I like how this turned out for the first part of the first dungeon of the game.
@Shaz needs to make a website for his plugins. (it can be done easily for free with google sites.) I can't find a database of them anywhere!
Dion2.jpg

testing #2

Forum statistics

Threads
109,127
Messages
1,042,376
Members
141,628
Latest member
KaithFoyer
Top