SUGGESTION: SaveScreenshot folder

Started by tiagocorreia, Tue 27/06/2006 10:18:43

Previous topic - Next topic

tiagocorreia

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.

SSH

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...
12

tiagocorreia

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)

Gilbert

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 for more info) which points to the (un-writtable) game data path it would be fine.

SSH

Of course, the students can always use the Print Screen key to capture the screenshot, then save it in Paint wherever they like/can...
12

tiagocorreia

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.

Kweepa

Just curious: why do children in schools need to take screenshots of your game?
Still waiting for Purity of the Surf II

Pumaman

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?

tiagocorreia

I think $MyDOCS$ is enough.

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

Code: ags

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.

Gilbert

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.

tiagocorreia

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

Gilbert

Were these dated folders created already? I think the engine won't automagically create them.

tiagocorreia

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.


SMF spam blocked by CleanTalk