Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: aikex222 on Tue 16/12/2014 05:58:01

Title: Restore game from main menu problem [SOLVED]
Post by: aikex222 on Tue 16/12/2014 05:58:01
Hi i'm having a problem with save and restore,
When i saved my game and tried to restore in game it showed me the saved game.
Spoiler

(http://i.imgur.com/Z1rwcaD.png)
[close]
but when i try to restore from the main menu it doesn't show the saved game
don't know if this will be useful but from the main menu i'm using a hotspot and used the
gRestoreGame.Visible = true;
Spoiler

(http://i.imgur.com/xeMhh8G.png)
[close]
Title: Re: Restore game from main menu problem
Post by: Mandle on Tue 16/12/2014 08:22:33
Instead of:

gRestoreGame.Visible = true;

Have you tried:

RestoreGameDialog();

Worked for me when I had the exact same issues ;)

EDIT: Oh...and of course SaveGameDialog(); instead of just making the save GUI visible...

It seems that AGS has some hard-wired code it needs to run before the GUI becomes visible (which includes finally pulling up the GUI) and that just making the GUI appear doesn't do the whole job.

At least that's how I found it to work...Someone will probably prove me as wrong as I am but until then give it a try anyway
Title: Re: Restore game from main menu problem
Post by: aikex222 on Tue 16/12/2014 13:53:27
it worked now shows the saved game xD
but now is using the default GUI, can I change it for my GUI?
Title: Re: Restore game from main menu problem
Post by: Cassiebsg on Tue 16/12/2014 16:05:22
I seem to remember something about showrestoredialog, or list or something like that.
I couldn't get mine to work when I released Minifeg so I ended up leaving the default, and haven't bothered yet to look into it again. Try doing a board search for it, or the manual, if no one gives you a more definitive answer.
Title: Re: Restore game from main menu problem
Post by: aikex222 on Tue 16/12/2014 16:33:50
hey cassiebsg thanks for remember me of searching ;)
i found the solution here "http://www.adventuregamestudio.co.uk/forums/index.php?topic=44270.msg590496#msg590496"
Title: Re: Restore game from main menu problem [SOLVED]
Post by: Cassiebsg on Tue 16/12/2014 18:22:02
Cool, thanks. :)
MaybeI should go script that, before I forget... (laugh)