Game Development Community

File I/O Tutorial Quirk

by Noble Adeodatus Valerian · in Technical Issues · 03/07/2012 (7:54 am) · 2 replies

I'm doing the File I/O Tutorial for Torque 2D and when it writes the file it creates this entirely new directory (Independent>UntitledGame>game>gameScripts>TutorialBase>game>data) inside of AppData/Roaming. I had to do a search just to find it! That doesn't seem quite right. Why won't it just write to the TutorialBase/game/data folder where the TutorialBase project and scene are located?

Later Same Day:
Did the Audio Tutorial and no sound played. Wondering if it's related, since the tutorial is very short and the code can be copy and pasted. For that matter, the first problem I had was with the Resources section just before File I/O. It seemed to load the images but wouldn't show them. I didn't uninstall the demo before installing the Pro version. Don't know if that's related either.

About the author

I'm a new developer excited about making games and Torque is just about the best looking and most user friendly engine I've ever seen!

Recent Threads


#1
03/07/2012 (11:23 am)
Windows does not allow writing to the Program Files directory now. Windows automatically redirects the write to the AppData folder.
#2
03/07/2012 (12:01 pm)
Thanks for the info. In that case, would it mess anything up to move the entire games folder out of the Program Files > Torque > Torque 2D Pro folder and into someplace new, say, my users folder or something like that? And would that also allow it to write where it should? Or is there a better way to handle this?