How can I make my game not to create a My Saved Games folder in MyDocs?

Started by Joe, Fri 28/08/2009 21:26:53

Previous topic - Next topic

Joe

I'm using the SetSaveGameDirectory("Saves"); at game_start() in the global and hav cleared the textbox which is next to "Save games folder name" in general settings, But when I run my game it still creates a folder in My docs...
What can I do?
Copinstar © Oficial Site

monkey0506

Try using the path "./Saves" instead. The "." dot indicates that you are working with the current directory (the same as the one the running file, your compiled EXE, is in). Then you just specify the directory from there.

I'm assuming this is of some relation to the thread in the Tech Forum regarding saves in My Documents not working on systems with Unicode characters in the path prior to AGS 3.2 beta 3?

Either way it's important to note that anyone playing your game running Windows Vista (in a language which uses non-English characters) will have to be very particular about where they install the game to make this work. My recommendation to try and by-pass Vista's absurd security handling would be to tell them to extract it to somewhere "safe" like My Documents, but then move it to a different directory (such as C:\Games\YourGame). I just tested this on Vista and by moving the game files like this I was able to create save files without any type of warnings or issues otherwise.

Joe

Where? in the setsavegamedirectory function or in general settings?

What I want is a folder in my game's directory not in my docs
Copinstar © Oficial Site

monkey0506

Sorry if I was unclear about that. I used Game.SetSaveGameDirectory myself and it worked. Based on the description of "Save games folder name" I'm not sure you can use that...lemme see though.

Edit: When I put "./Saves" into the Game Settings pane it removes the "/" and creates the folder ".Saves" in Vista's "Saved Games" folder. So it would appear that you have to use Game.SetSaveGameDirectory to specify the game directory (or any sub-directories thereof) as the save directory.

Joe

You say it worked? Did you try deleting the 'My Saved Games' folder from my docs and then run your game?
I did, and when I ran my game it creates two folders (one in myDocs called 'My Saved Games' and other one in my game's directory folder called 'Saves')...Both empty folders
What I want is my game not to create that folder in my docs, but it still does...
Copinstar © Oficial Site

SMF spam blocked by CleanTalk