Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Miori on Mon 26/01/2009 01:40:07

Title: Change Savegame Directory
Post by: Miori on Mon 26/01/2009 01:40:07
Does somebody know how i can change the savegame directory at AGS 3.0.2.44  ???
The best directory would be a "Save" Directory in the Game Directory.   :P

I'm so despaired because of this, please help me.  :'(
Title: Re: Change Savegame Directory
Post by: Khris on Mon 26/01/2009 01:58:31
You can't change the directory afaik.
Putting saves in a "Save" directory sounds great; at least they don't clutter up "My Documents" anymore, but having them inside the game folder is still better IMO.
Title: Re: Change Savegame Directory
Post by: monkey0506 on Mon 26/01/2009 05:18:04
Actually Khris there's Game.SetSaveGameDirectory. By default it's relative to the game directory, it also supports the $MYDOCS$ tag if you wanted to put it within the My Documents folder.
Title: Re: Change Savegame Directory
Post by: Khris on Mon 26/01/2009 14:24:28
That's under Multimedia functions? No wonder I didn't find it.
I do remember now though that of course there's such a function, sorry for having been misleading.

Miori:
Just put this in game_start:
  Game.SetSaveGameDirectory("Saves");
Title: Re: Change Savegame Directory
Post by: on Mon 26/01/2009 15:03:54
Quote from: KhrisMUC on Mon 26/01/2009 14:24:28
Just put this in game_start:
  Game.SetSaveGameDirectory("Saves");


Doing so still creates a folder in My Files, My Saved Games, though it now remains empty. Just out of interest, is there a way to totally override AGS's ideas of where to put its savegames?
Title: Re: Change Savegame Directory
Post by: Miori on Mon 26/01/2009 17:45:10
Quote from: KhrisMUC on Mon 26/01/2009 14:24:28
Just put this in game_start:
  Game.SetSaveGameDirectory("Saves");


That works wonderful. Thank you very much  ;D  :)

Quote from: Ghost on Mon 26/01/2009 15:03:54

Doing so still creates a folder in My Files, My Saved Games, though it now remains empty. Just out of interest, is there a way to totally override AGS's ideas of where to put its savegames?

You have to delete the Name of the Save Direktory in the General Settings. The field "Saved Games -> Save games folder name" has to be empty.  ;)
Title: Re: Change Savegame Directory
Post by: monkey0506 on Mon 26/01/2009 17:52:14
Alternatively you can force the path to be relative:

Game.SetSaveGameDirectory("./Save");
Title: Re: Change Savegame Directory
Post by: Pumaman on Mon 26/01/2009 20:02:40
Quote from: Miori on Mon 26/01/2009 01:40:07
Does somebody know how i can change the savegame directory at AGS 3.0.2.44  ???
The best directory would be a "Save" Directory in the Game Directory.   :P

I'm so despaired because of this, please help me.  :'(

Do not do this!

There is a reason why AGS defaults to the My Documents / My Saved Games folder, and it's because if the player installs your game to the Program Files folder on Vista, it won't be able to save files into the game folder. And you'll have unhappy players who can't save any games.

Unless you have a very good reason to put the save games in the game folder, please leave the default option of using the My Save Games folder enabled.