Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: tiagocorreia on Wed 26/04/2006 15:33:50

Title: Savegames in "My Documents" (IMPLEMENTED)
Post by: tiagocorreia on Wed 26/04/2006 15:33:50
Hi,

I've been reading the forums, but I didn't found what i want.
Is it possible to have the save file in the My Documents folder, or in Local SettingsApplication Data

I would prefer in the My Docuemtns folder. I've read this post
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=19623.0
but I didn't found if this feature has been implemented or not. Or if this can be done in script.

I tought it could be something like, in the file acsetup.cfg
datadir=MyDocs

If it was like this this, it would save inside a folder with the game name, inside the My Documents folder.

These feature is needed to Windows XP and 2000 users with no priviligies to change files inside the program files.
Title: Re: Save in My Documents
Post by: SSH on Wed 26/04/2006 16:49:39
Unprivilidged users can just "install" (aka unzip) the whole game under My Documents and their problems will be solved.
Title: Re: Save in My Documents
Post by: tiagocorreia on Fri 28/04/2006 11:51:17
I understand this.
This might be easy for the more or less experienced users.

Since the company where I work is building a adventure game, we want to install it in a regular way (in program files).

This game is going to be used in schools so, this is not really an option.

Changing the acsetup.cfg, can only be done with users with privileges, so not even with a extra EXE before the game run.
Title: Re: Suggestion: Savegames in "My Documents"
Post by: Scorpiorus on Sat 29/04/2006 22:05:58
Here is a tracker entry I found: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=316

In case you want to support this feature :)
Title: Re: Suggestion: Savegames in "My Documents"
Post by: Pumaman on Mon 08/05/2006 20:11:23
The simplest solution here would probably be some sort of SetSaveGameDirectory function, which allowed you to pass a special token to set it to My Documents. Obviously this would be non-portable for Mac/Linux but it's probably worth doing, especially for running the game off a CD.

Edit by strazer:

AGS v2.72 RC 1:
* Added Game.SetSaveGameDirectory command, including support for My Documents folder.