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...
Basically, if I'm calling audio in "~/game/data/audio/music/", what should my filename be in the AudioProfile()? Thanks in advance...
About the author
Associate William Lee Sims
Machine Code Games
If I need a long path, I'll often just use "game/data/audio/music/filename.ogg"