File Objects can't write files . . .
by Kevin James · in Torque Game Builder · 03/09/2008 (5:34 am) · 2 replies
I was wondering if the fact that File Objects can't actually write then save files is a bug, or if its supposed to be like that. Writing a file as with a file object creates a sort of ghost file that has everything you wrote in it, but it doesn't actually exist on the machine. You have to use a confusing combination of File Objects and File Stream Objects to get anything to save properly. I ran into this problem when trying to save a level, here's the thread in general discussion:
www.garagegames.com/mg/forums/result.thread.php?qt=72837
www.garagegames.com/mg/forums/result.thread.php?qt=72837
About the author
Computer security, digital forensics, and platform jumper enthusiast. shells.myw3b.net/~syreal/
#2
I can probably streamline my level saving logic by taking out the FileObject then.
Thanks Phil!
03/09/2008 (1:51 pm)
Hey, you're right. I guess I mistook the documentation to be saying that FileIO only writes to the game directories' data folder.I can probably streamline my level saving logic by taking out the FileObject then.
Thanks Phil!
Associate Phillip O'Shea
Violent Tulip