Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: tiagocorreia on Tue 27/06/2006 10:18:43

Title: SUGGESTION: SaveScreenshot folder
Post by: tiagocorreia on Tue 27/06/2006 10:18:43
Hi,

Currently the save screenshot is saved in the folder where the game is running. On computers where users don't have privileges to write on this folders it is not possible to write the screenshots on this folder.
So my suggestion is to add an optional parameter, which is a string to the folder where it should save the screenshot. Or even if a path is included in the name of the file, then it would be used.
As for the save games that now can use the My Documents folder, this could be also be applied to the screenshots.
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: SSH on Tue 27/06/2006 11:55:39
I think if you run the game from a shortcut and the shortcut is set to run the game as if it were in a particular path, then the game can write to that folder...
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: tiagocorreia on Tue 27/06/2006 12:25:39
I guess taht might be a solution, but I'm note sure that then the Speech.vox and musix.voz files would be found, since the path is other.
But even with that, it would not be a good solution for multiple user environments where there are several users that don't have write permissions where the software is installed (eg: schools)
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: Gilbert on Tue 27/06/2006 13:06:07
The config file is saved at the folder which starts the game (i.e. where the shortcut is placed I think), so if you can manage to add a line like datafile = K:/blah/HAHA to all the users' .CFG files during installation (look here (http://www.adventuregamestudio.co.uk/kbview.php?id=63) for more info) which points to the (un-writtable) game data path it would be fine.
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: SSH on Tue 27/06/2006 14:07:42
Of course, the students can always use the Print Screen key to capture the screenshot, then save it in Paint wherever they like/can...
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: tiagocorreia on Tue 27/06/2006 14:13:08
That might be good for users that are not children. But for children, that won't be very helpfully. Off course some children can do that, but not all off them.
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: Kweepa on Tue 27/06/2006 18:18:17
Just curious: why do children in schools need to take screenshots of your game?
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: Pumaman on Tue 27/06/2006 19:13:01
I suppose SaveScreenShot could support $MYDOCS$ to allow you to save the screenshot to My Documents; I'm not sure that anything further than that is necessary?
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: tiagocorreia on Wed 28/06/2006 12:47:51
I think $MyDOCS$ is enough.

I've tried to add folders paths to the SaveScreenShot and it didn't seems to work


FolderSave = String.Format("Recorded Game at %04d-%02d-%02d %02d:%02d\\", dt.Year, dt.Month, dt.DayOfMonth, dt.Hour, dt.Minute);
String filename = String.Format("%s%08d.bmp", FolderSave, NextFrame);
SaveScreenShot(filename)


Any ideia?

About the children want to take printscreens of the game, it is use in schools where children have to write about the game they played. And adding an image to the text is sometimes used.
In the game I'm making this would be a nice think, since the player can use a camera, that in this case would take a screenshot.
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: Gilbert on Wed 28/06/2006 13:01:59
I think AGS currently doesn't support saving files into folder which is not inside the game's own folder, CJ's mentioning about $MYDOCS$ was quiting it as a possible feature in next version, it's not yet possible at the moment I think.
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: tiagocorreia on Wed 28/06/2006 13:04:59
Yes I understand that the folder should be inside the games folder. That was what I was trying to do.
Compiled\Recorded Game at ...\00000001.bmp
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: Gilbert on Wed 28/06/2006 13:08:08
Were these dated folders created already? I think the engine won't automagically create them.
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: tiagocorreia on Wed 28/06/2006 15:59:46
That might be the problem. Because I want the folder to different everytime, it was for  Record Game module.

Maybe i could use the SetSaveGameDirectory to the folder I want, since this creates the folder, if it doesn't exist.
Title: Re: SUGGESTION: SaveScreenshot folder
Post by: strazer on Thu 06/07/2006 03:27:34
Tracker'd: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=580