Save Games / Custom Save+Load GUI

Started by NiksterG, Sun 12/06/2011 02:22:42

Previous topic - Next topic

NiksterG

I'm trying to make a custom Save/Load system for my game, and while I'm making a bit of progress, I could use some help.

The most important thing is this: is it possible to change the default save/load GUIs to look different, or do I have to make a new GUI(s) to handle this?

If I do, as I suspect is the case, I have some more questions. First, some background: I am using the default save/load system built into AGS (using functions like SaveGameSlot and RestoreGameSlot). However, I've noticed a few limitations to this system which I am having a hard time getting around.

1. How would I go about saving the current character's view in the save state? I let the player choose different characters at the start of the game, and whenever an old game is restored, the view from the newer game is carried over, which is not what I want. More specifically, is there a way I can do this without writing to an external file? Because if I have to write to another file, how would I synchronize the file with the save slot?

2. I have a delete game GUI set up, but I can't figure out how to actually delete save games. Is this even possible, or do I have to manually find the folder the games are saved in and delete them?

3. Where is the save game folder? Where is the default location of $SAVEGAMEDIR$ on a Windows 7 machine?

I might have more questions, but I can't think of any more right now. I'll add them when I think of them.

Thanks for the help!
Check out my games! (Not all made with AGS)

Khris

You can change the Save and Restore GUIs, just open them in the editor.

1. Could you elaborate a bit? This shouldn't happen.

2. DeleteSaveSlot()

3. It should be "Documents/My Saved Games/[NAME OF GAME]"

NiksterG

#2
Khris:

I can't open the default GUI in the editor. I'm talking about the built-in ones that pop up with SaveGameDialog()... as far as I know, it's impossible to edit those. That's why I'm trying to make the custom GUIs.

1. It is possible for the player to select different characters, each of which has a different view. My problem is that when I save the game with one view, and try to load with another, it keeps the first view. So, for example, the player chooses view A as a character, then saves the game and turns it off. Later, he restarts the game, makes a new character with view B, and saves again. If he tries to restore to the first game, the game will successfully load, but the character will still have view B (not view A, as expected).

2. Thanks. I'm not sure how I missed that...  :P

3. Again, thanks. I'm still a bit new the Windows 7 environment.  :)

EDIT: Alright, I figured out what I was doing wrong regarding 1. I wasn't using the ListBox.SaveGameSlots[] array, instead loading games directly from ListBox.SelectedIndex. This of course loaded the wrong game, even though I thought it was the right one.

Thanks for the help Khris!
Check out my games! (Not all made with AGS)

SMF spam blocked by CleanTalk