Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Jigen Daisuke on Tue 02/01/2018 07:57:40

Title: LOAD GAME GUI PROBLEM-Saves not shown on load GUI in some situations
Post by: Jigen Daisuke on Tue 02/01/2018 07:57:40
Hi friends,

as you can see on the tile I have a problem on LOAD GAME GUI from the title screen.

AGS version: last one (3.4.0 patch 4)
LOAD GUI: The original one.
Problem Description: When I try to load a previous saved game from the title screen load button, the LOAD GUI appears but previous saved games are NOT shown. :sad:
                     If I try to start a new game and LOAD an old saved file using the game menu button, the LOAD GUI appears and I can see the saved games: loading works fine! :shocked:

I don't know how to fix it... According to theory when the load gui starts correctly I can Always see the old files...(wrong)

Thank you for the help!

Title: Re: LOAD GAME GUI PROBLEM-Saves not shown on load GUI in some situations
Post by: Khris on Tue 02/01/2018 13:25:12
May I assume that in order to show the Load GUI, you're using
  gRestoreGame.Visible = true;

Replace that with
  show_restore_game_dialog();
a function in the global script that populates the list first.
Title: Re: LOAD GAME GUI PROBLEM-Saves not shown on load GUI in some situations
Post by: Jigen Daisuke on Tue 02/01/2018 13:54:19
Quote from: Khris on Tue 02/01/2018 13:25:12
May I assume that in order to show the Load GUI, you're using
  gRestoreGame.Visible = true;

Replace that with
  show_restore_game_dialog();
a function in the global script that populates the list first.

Now I don't have my pc with me but I think you're right because I remember that I used the script from this message on the Forum:

Message from forum (http://www.adventuregamestudio.co.uk/forums/index.php?topic=46976.msg631507#msg631507)

I will try to follow your advice ASAP!

Thank you very much!
Title: Re: LOAD GAME GUI PROBLEM-Saves not shown on load GUI in some situations
Post by: Jigen Daisuke on Tue 02/01/2018 17:06:23
Quote from: Khris on Tue 02/01/2018 13:25:12
May I assume that in order to show the Load GUI, you're using
  gRestoreGame.Visible = true;

Replace that with
  show_restore_game_dialog();
a function in the global script that populates the list first.

I have a object (quit button) in the "title screen room" and in "any click" event I put the line you suggested but it doesn't work...

AGS says "Undefined token 'show_restore_game_dialog'... :sad:
Title: Re: LOAD GAME GUI PROBLEM-Saves not shown on load GUI in some situations
Post by: Khris on Tue 02/01/2018 18:13:11
If you're using an Object and thus the room script, you need to import the function first.

Open the Global Script's header and add this line:

import function show_restore_game_dialog();
Title: Re: LOAD GAME GUI PROBLEM-Saves not shown on load GUI in some situations
Post by: Jigen Daisuke on Tue 02/01/2018 19:31:26
Quote from: Khris on Tue 02/01/2018 18:13:11
If you're using an Object and thus the room script, you need to import the function first.

Open the Global Script's header and add this line:

import function show_restore_game_dialog();

Thank you very much, I didn't know the "import" thing :wink: