Change Savegame Directory

Started by Miori, Mon 26/01/2009 01:40:07

Previous topic - Next topic

Miori

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.  :'(

Khris

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.

monkey0506

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.

Khris

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");

Ghost

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?

Miori

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.  ;)

monkey0506

Alternatively you can force the path to be relative:

Code: ags
Game.SetSaveGameDirectory("./Save");

Pumaman

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.

SMF spam blocked by CleanTalk