I noticed that the file object is not vitalized, which is reasonable because it can delete files, but in my game I want to be able to create a directory under C:\Program Files\. Is there any way to do that?
Printable View
I noticed that the file object is not vitalized, which is reasonable because it can delete files, but in my game I want to be able to create a directory under C:\Program Files\. Is there any way to do that?
No. Vitalize applications can not write to the hard drive.
After all, writing files can be just as dangerous as deleting files. :)
If I can't write to the hard drive, is there any other way to somehow store data and image files on the user's computer?
There is a temporary directory you can use, but I would suggest loading the files in from a source on the internet rather than the computer.
That would be smart. :D How would I do this? Is there an example file I can use?
If the files are on the same server as the CCN, you can link the files to them. For example
Open array file: "http://yourwebsite.com/array.arr"
Are you serious? That's all I have to do? What if the file isn't stored in the same directory?
I'm not sure how it works because I've only used it once or twice. A little experimenting will tell you the answer. Remember, this only works in Vitalize! applications.
OK.
I found out that I can load any file on the internet (to some extent of course) with vitalized appliactions. Here's an example:
http://www.flufferfluff.com/games/bla.html
Just copy-paste an image's url and press enter.
EDIT: Ignore the "String Test" at the top. This is the directory that I use for all of my Vitalize!-related tests. ;)
Very cool. Glad it works well. I had never tried anything outside my own server so this is news to me as well. It's a very nice touch on Clickteam's part.