GPGT - Maze Runner with Torque 1.5 INDIE Instructions
by Chris Eck · in Torque Game Engine · 12/13/2006 (1:17 pm) · 6 replies
I struggled a tiny bit to get this working with the full version of Torque so I took a little time and wrote up these instructions. I think the only real difference was Step 2 (and not installing the Torque demo from the CD). I didn't want to install the Torque Demo from the CD since I wasn't sure if it would play nice with the full version. This is using Torque 1.5 the INDIE version. I also made sure to clarify when we were copying the contents of directories or copying the directory itself. A couple of times I wasn't sure.
Good luck, and happy programming,
- Eck
P.S. I got this working and then wrote the guide, so if there are any typos or problems, let me know.
eck2@comcast.net
1. Create a working directory for the MazeRunner project. For simplicity, we'll call this "C:\MazeRunner"
2. From the directory where you installed Torque, copy the contents of the "example" directory into the "C:\MazeRunner" directory.
3. Write the cleanup scripts and put them in the "C:\MazeRunner" directory.
4. From the CD,copy the "\MazeRunner\A_SettingUp\prototype" directory into your "C:\MazeRunner" directory. You're copying the directory itself, so the end result should be: "C:\MazeRunner\prototype"
5. Modify the C:\MazeRunner\main.cs file. Change line 6 from
$defaultGame = "tutorial.base";
to:
$defaultGame = "prototype";
6. From the cd, copy the "\Base\Scripts\EGSystmes" directory into your "C:\MazeRunner\prototype" directory. You're copying the directory itself, so the end result should be: C:\MazeRunner\prototype\EGSystems"
7. Edit the onStart() function in "C:\MazeRunner\prototype\main.cs" so it looks like this (Everything between the comments is new code):
function onStart()
{
// Maze Runner Changes Begin -->
exec("./EGSystems/SimpleInventory/egs_SimpleInventory.cs");
exec("./EGSystems/SimpleTaskMgr/egs_SimpleTaskMgr.cs");
exec("./EGSystems/Utilities/egs_ArrayObject.cs");
exec("./EGSystems/Utilities/egs_Misc.cs");
exec("./EGSystems/Utilities/egs_Networking.cs");
exec("./EGSystems/Utilities/egs_SimSet.cs");
exec("./EGSystems/Utilities/egs_String.cs");
// <-- Maze Runner Changes End
//.. leave remaining code alone
// The next line should be: Parent::onStart();
8. From the CD, copy the "\Base\Data\GPGTBase" directory into your "C:\MazeRunner\prototype\data" You're copying the directory itself, so the end result should be: C:\MazeRunner\prototype\data\GPGTBase"
9. Create a new directory: "C:\MazeRunner\prototype\server\scripts\MazeRunner"
10. Double-click on torqueDemo.exe and it should bring up the mission selection screen. Select MazeRunner and optionally type in a name for your little blue guy.
Good luck, and happy programming,
- Eck
P.S. I got this working and then wrote the guide, so if there are any typos or problems, let me know.
eck2@comcast.net
1. Create a working directory for the MazeRunner project. For simplicity, we'll call this "C:\MazeRunner"
2. From the directory where you installed Torque, copy the contents of the "example" directory into the "C:\MazeRunner" directory.
3. Write the cleanup scripts and put them in the "C:\MazeRunner" directory.
4. From the CD,copy the "\MazeRunner\A_SettingUp\prototype" directory into your "C:\MazeRunner" directory. You're copying the directory itself, so the end result should be: "C:\MazeRunner\prototype"
5. Modify the C:\MazeRunner\main.cs file. Change line 6 from
$defaultGame = "tutorial.base";
to:
$defaultGame = "prototype";
6. From the cd, copy the "\Base\Scripts\EGSystmes" directory into your "C:\MazeRunner\prototype" directory. You're copying the directory itself, so the end result should be: C:\MazeRunner\prototype\EGSystems"
7. Edit the onStart() function in "C:\MazeRunner\prototype\main.cs" so it looks like this (Everything between the comments is new code):
function onStart()
{
// Maze Runner Changes Begin -->
exec("./EGSystems/SimpleInventory/egs_SimpleInventory.cs");
exec("./EGSystems/SimpleTaskMgr/egs_SimpleTaskMgr.cs");
exec("./EGSystems/Utilities/egs_ArrayObject.cs");
exec("./EGSystems/Utilities/egs_Misc.cs");
exec("./EGSystems/Utilities/egs_Networking.cs");
exec("./EGSystems/Utilities/egs_SimSet.cs");
exec("./EGSystems/Utilities/egs_String.cs");
// <-- Maze Runner Changes End
//.. leave remaining code alone
// The next line should be: Parent::onStart();
8. From the CD, copy the "\Base\Data\GPGTBase" directory into your "C:\MazeRunner\prototype\data" You're copying the directory itself, so the end result should be: C:\MazeRunner\prototype\data\GPGTBase"
9. Create a new directory: "C:\MazeRunner\prototype\server\scripts\MazeRunner"
10. Double-click on torqueDemo.exe and it should bring up the mission selection screen. Select MazeRunner and optionally type in a name for your little blue guy.
#2
02/24/2007 (1:49 pm)
@Per: here is a link to your question: www.garagegames.com/mg/forums/result.thread.php?qt=48012
#3
If your going to do the work in this book I think you need the disc. This book is great so far for myself.
02/25/2007 (8:07 am)
Per HenrikIf your going to do the work in this book I think you need the disc. This book is great so far for myself.
#4
Please check your e-mail for a reply.
Cheers,
Hall Of Worlds - For Gamers
EdM|GPGT
02/27/2007 (6:33 pm)
Per Henrik Fjeld,Please check your e-mail for a reply.
Cheers,
Hall Of Worlds - For GamersEdM|GPGT
#5
Thanks a bunch for this! I really appreciate help like this as it makes the job of supporing the book so much easier. More eyes and brains on the job are always better.
Hall Of Worlds - For Gamers
EdM|GPGT
02/27/2007 (11:00 pm)
@Chris,Thanks a bunch for this! I really appreciate help like this as it makes the job of supporing the book so much easier. More eyes and brains on the job are always better.
Hall Of Worlds - For GamersEdM|GPGT
#6
In the 3rd step, I didn't know what the clean up scripts were, but I followed all the other steps and couldn't get this to work.
What I did to make it work was just cut the entire "prototype" directory and paste it into the "example" directory in C:\MazeRunner and it works fine.
I just wanted to add that incase anyone else got confused and couldn't get it to work either.
05/05/2007 (10:42 am)
I just wanted to add, I was trying this on TGE 1.5.1. I have the commercial version, but I don't think that matters all that much. In the 3rd step, I didn't know what the clean up scripts were, but I followed all the other steps and couldn't get this to work.
What I did to make it work was just cut the entire "prototype" directory and paste it into the "example" directory in C:\MazeRunner and it works fine.
I just wanted to add that incase anyone else got confused and couldn't get it to work either.
Torque Owner PH
I have one problem though;
As the books cover is quite soft, my younger brother managed to BREAK the CD while it laid inside the folder at the end of the book ( I never even got to test the CD at my computer, he managed to do so the first day ).
I learned three things from this:
First:
NEVER EVER keep your CD's in thee books, put them in covers and label them properly instead...
Second lesson learned:
Create backup copies of EVERYTHING you own...
The third thing:
How sad you can get, all my savings went into that book, and I can't complete it without the CD...
So:
If anyone has got the CD and could help me by sending it by either:
null
or
UPLOAD IT SOMEWHERE FOR A RESTRICTED DOWNLOAD - SEND ME LINK?
If anyone doubt me owning the book, i can send pictures of the book and CD, as well i can refer to AMAZON.COM...
Thanks!