Order of TorqueDemo scripts?
by Danner Jones · in Torque Game Engine · 10/17/2003 (5:33 pm) · 4 replies
Before I pour over the files and code in all the script files, is there a "Getting Started" guide for order in which the Torque Demo loads script files?
What I'm looking for is something like the following, only for how the TorqueDemo loads its script files:
http://www.garagegames.com/docs/torque.sdk/index.php
(Sections 4 and 7)
I'm trying to find out what script files are getting loaded when. If there's no such document, I can look through the scripts. But if someone has something, I'd sure appreciate it :)
I'm hoping for something like:
The Torque Demo initializes and then loads main.cs in the root folder which launches the main menu GUI (Start mission, quit, etc.).
When Start Mission is pressed, it runs "SM_StartMission();" located in "file.cs".
The main mission is started from starter.fps and loads ITS main.cs, which...
You get the idea (hopefully). A basic rundown of where to look for a few basic blocks of code amidst the full Torque Demo project would be great. For instance, I can spot main() but where does the "real" main begin? Where is the code that says to show a splash screen and load main.cs?
I'm sure this will all seem rudimentary in a week or two, but for all the new Torque users, I'm sure this type of info would be greatly appreciated (at least for those of us that like to read as much as possible before delving in).
Thanks again,
Dan
What I'm looking for is something like the following, only for how the TorqueDemo loads its script files:
http://www.garagegames.com/docs/torque.sdk/index.php
(Sections 4 and 7)
I'm trying to find out what script files are getting loaded when. If there's no such document, I can look through the scripts. But if someone has something, I'd sure appreciate it :)
I'm hoping for something like:
The Torque Demo initializes and then loads main.cs in the root folder which launches the main menu GUI (Start mission, quit, etc.).
When Start Mission is pressed, it runs "SM_StartMission();" located in "file.cs".
The main mission is started from starter.fps and loads ITS main.cs, which...
You get the idea (hopefully). A basic rundown of where to look for a few basic blocks of code amidst the full Torque Demo project would be great. For instance, I can spot main() but where does the "real" main begin? Where is the code that says to show a splash screen and load main.cs?
I'm sure this will all seem rudimentary in a week or two, but for all the new Torque users, I'm sure this type of info would be greatly appreciated (at least for those of us that like to read as much as possible before delving in).
Thanks again,
Dan
#2
Still trying to track down where demo/main.cs is loaded/initialized. I see the root main.cs loaded in main.cc (in the engine's initGame function()). I'll find it sooner or later - I thought it might be in the engine's source, but I'm thinking it's probably script-driven.
Thanks for the help, Ron.
-Ner
10/17/2003 (9:55 pm)
Ah, good advice :)Still trying to track down where demo/main.cs is loaded/initialized. I see the root main.cs loaded in main.cc (in the engine's initGame function()). I'll find it sooner or later - I thought it might be in the engine's source, but I'm thinking it's probably script-driven.
Thanks for the help, Ron.
-Ner
#3
It's out of date a little now with the new [HEAD] but some of it should be quite relevant...
Script Walkthrough
Hope this helps,
- Melv.
10/18/2003 (2:27 am)
Nerseus,It's out of date a little now with the new [HEAD] but some of it should be quite relevant...
Script Walkthrough
Hope this helps,
- Melv.
#4
-Ner
10/18/2003 (7:08 am)
Ah, exactly what I was looking for. I often get stuck doing these at work, usually in Visio or Word. Glad to see it's already been done. Even if it's out of date, it will be a good start.-Ner
Associate Ron Yacketta
also have a look at main.cs in example and example/demo
-Ron