LoadDir
by Howard Dortch · in Torque Game Engine · 05/15/2004 (5:06 am) · 5 replies
Does the loadDir("common"); mean to go to the common directory open the main.cs and execute all scripts referenced there?
If so can I just do a loadDir("mygame") and get everything?
If so can I just do a loadDir("mygame") and get everything?
#2
sorry for the noob questions that are comming in the next couple of weeks, I bought 1.5 and havnt got around to using it been to busy. But now that I am getting into it I decided I should probably read the scripts that are in the tutorial.base "game" to try to figure it all out.
My question is the main.cs file located in the tutorial.base folder has the first line as " loadDir("common"); " assuming it needs to load the "common" folder like you mentioned above Howard, but in the tutorial.base folder there is now common folder so what excatly is it trying to load? Im still messing with it but I would geusse when they made this script they have that line in there for a reason.
08/05/2007 (8:28 pm)
Hey all,sorry for the noob questions that are comming in the next couple of weeks, I bought 1.5 and havnt got around to using it been to busy. But now that I am getting into it I decided I should probably read the scripts that are in the tutorial.base "game" to try to figure it all out.
My question is the main.cs file located in the tutorial.base folder has the first line as " loadDir("common"); " assuming it needs to load the "common" folder like you mentioned above Howard, but in the tutorial.base folder there is now common folder so what excatly is it trying to load? Im still messing with it but I would geusse when they made this script they have that line in there for a reason.
#3
What I am trying to do is get a clean slate so I can start tearing apart the tutorial.base all this extra code / folders are kinda confusing for a begginer to be honest.
08/05/2007 (8:34 pm)
Ok well it seems its loading the common folder that is located where the tge.exe is at. But im not getting the logic here. In the common folder you have client,server,data folders and in the tutorial.base folder you have client,server,data folders Im pretty certain when shipping out a game there would be no point in having both would there? What I am trying to do is get a clean slate so I can start tearing apart the tutorial.base all this extra code / folders are kinda confusing for a begginer to be honest.
#4
In the tutorial.base folder, (it's the game folder) you should have client, server, and data. Those are game specific folders.
Hope that helps a little bit.
08/06/2007 (4:03 am)
Austin, you should only have 1 common folder. The common folder holds the scripts and UI stuff that you would most likely use again in another game. Its the "common" stuff. In the tutorial.base folder, (it's the game folder) you should have client, server, and data. Those are game specific folders.
Hope that helps a little bit.
Torque Owner Stefan Lundmark