Help me find my way to Pathing
by Kevin James · in Torque Game Builder · 07/24/2006 (7:00 pm) · 4 replies
I have seen various symbols at the beggining of a path to a file. such as "~/" and "./". I have always gotten my pathing right, but I still don't know exactly what these mean. Thanks for the help.
About the author
Computer security, digital forensics, and platform jumper enthusiast. shells.myw3b.net/~syreal/
#2
07/25/2006 (5:51 am)
Clear as crystal, you've been a big help again, Apurva. That's kind of what I assumed, but I wanted to make darn sure of it.
#3
Although the "~/" in theory means the same thing, for some reason you have to explicitly define the project name in the path directory. This was discussed in this thread
07/25/2006 (8:17 am)
Just for future reference, when you do load a level, you would use a different pathname method. I didn't want to edit my explanation above incase of confusion but if you do load a level, do it like this:function loadNewLevel(){
sceneWindow2D.loadLevel("<projectname>"/data/levels/myLevel.t2d");
}Although the "~/" in theory means the same thing, for some reason you have to explicitly define the project name in the path directory. This was discussed in this thread
#4
07/25/2006 (4:10 pm)
Yeah, I'd actually already had read that thread, but thanks for the heads up anyway!
Torque Owner Apurva Amin
Bit of a lengthy explanation, but hopefully it's clear :)