Game Development Community

File Structure and Access

by Rob Cain · in Torque Game Builder · 06/24/2010 (9:59 pm) · 1 replies

I'm confused with how to reference a file in the data folder. For example: The game.cs file shows the exec() command locating gamescripts in "./", like "./player.cs". But in the Audio tutorial, audio files are shown as being in "./game/data/audio/". I'm not getting what "./" is supposed to be or represent.

Basically, if I'm calling audio in "~/game/data/audio/music/", what should my filename be in the AudioProfile()? Thanks in advance...

#1
06/25/2010 (12:56 am)
"./" simply means the current directory. "../" means the parent directory.

If I need a long path, I'll often just use "game/data/audio/music/filename.ogg"