LOAD GAME GUI PROBLEM-Saves not shown on load GUI in some situations

Started by Jigen Daisuke, Tue 02/01/2018 07:57:40

Previous topic - Next topic

Jigen Daisuke

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!


Khris

May I assume that in order to show the Load GUI, you're using
Code: ags
  gRestoreGame.Visible = true;


Replace that with
Code: ags
  show_restore_game_dialog();

a function in the global script that populates the list first.

Jigen Daisuke

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
Code: ags
  gRestoreGame.Visible = true;


Replace that with
Code: ags
  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

I will try to follow your advice ASAP!

Thank you very much!

Jigen Daisuke

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
Code: ags
  gRestoreGame.Visible = true;


Replace that with
Code: ags
  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:

Khris

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:

Code: ags
import function show_restore_game_dialog();

Jigen Daisuke

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:

Code: ags
import function show_restore_game_dialog();


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

SMF spam blocked by CleanTalk