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!
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.
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!
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:
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();
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: