Possible to direct agssave.999 to USB drive?

Started by Library Ninja, Wed 05/01/2011 21:50:03

Previous topic - Next topic

Library Ninja

I am trying to run my AGS creation from a network drive on a computer where the only possible local storage is a flash drive.

I have searched the forums and found that it is not possible to run an AGS game off of a CD or a network drive. However, is it possible to write a script or adjust the .cfg file so that the agssave.999 file will direct to the flash drive?

Here is my situation:

I am a library employee, and would like to create an AGS game to use as a youth activity. However, due to security restrictions on library computers, there is no local storage possible on the machines. Also due to security restrictions, executable files can't be run from external media.

Using a staff computer, I am able to write files to a network drive which is read-only on the public computers. For activities, I plug in USB flash drives so the kids can save files. This has been a fine work-around for me with other applications, so I'm hoping to figure out a way to do something similar here.

monkey0506

AFAIK the agssave.999 is written to the game's save game directory..unfortunately I don't know how many (if any) AGS games actually allow you to specify this directly due to the limitations on where it can be (the game directory itself, the My Documents folder, or a subdirectory of one of these).

Library Ninja

Gotcha. Thanks for the reply, I appreciate it.

monkey0506

#3
Admittedly I didn't read your whole first post before I posted my response, though the information I gave was presumably helpful.

As for your situation with the library computers..would it be possible to make, say, My Documents writeable, and then run a script on the public computers which could copy the folder to the USB drive? I imagine it wouldn't be difficult to write such a script in C# or something to monitor the My Documents folder and if any changes are made then commit the same changes to the USB drive.

I've never tried to do anything like that, but it seems like it would make for a fun afternoon! :=

But again, due to security restrictions of AGS, the save directory is limited as to where it can be..so if you can't open up the game directory on the network drive (which presumably would allow users to modify/delete the game files which would not be good..:-\) or somehow open up the My Documents folder..then it's probably..unfortunately..not possible for your particular situation.

SMF spam blocked by CleanTalk