Author Topic: LOAD GAME GUI PROBLEM-Saves not shown on load GUI in some situations  (Read 336 times)

Jigen Daisuke

  • Posts: 16
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

  • Posts: 10,647
  • having to deal with what games are going through
    • Lifetime Achievement Award Winner
    • I can help with play testing
    • I can help with scripting
    • I can help with translating
    • Khris worked on a game that was nominated for an AGS Award!
May I assume that in order to show the Load GUI, you're using
Code: [Select]
  gRestoreGame.Visible = true;
Replace that with
Code: [Select]
  show_restore_game_dialog();a function in the global script that populates the list first.

Jigen Daisuke

  • Posts: 16
May I assume that in order to show the Load GUI, you're using
Code: [Select]
  gRestoreGame.Visible = true;
Replace that with
Code: [Select]
  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

  • Posts: 16
May I assume that in order to show the Load GUI, you're using
Code: [Select]
  gRestoreGame.Visible = true;
Replace that with
Code: [Select]
  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

  • Posts: 10,647
  • having to deal with what games are going through
    • Lifetime Achievement Award Winner
    • I can help with play testing
    • I can help with scripting
    • I can help with translating
    • Khris worked on a game that was nominated for an AGS Award!
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: [Select]
import function show_restore_game_dialog();

Jigen Daisuke

  • Posts: 16
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: [Select]
import function show_restore_game_dialog();

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