Mac User frustrated with GPGT book.
by Kenneth Malone · in General Discussion · 07/13/2006 (8:16 am) · 12 replies
HELP!!! Nobody seems to be "minding the store" at Torque Game Engine Public Area>>BooK: Game Programmer's Guide to Torque>>Topic:GPGT Chapter 14 - Issues and Questions.
I recently purchased The Game Programmer's Guide to Torque. It looks as though it has a lot of useful stuff in it.
I'm a newbie and very frustrated.
I am working on an iMac G5 with Torque DemoOSX-1-4
I'm trying to get the prototype to work.
On page 576 -
14.4.4 Modify "main.cs" it says:
Next, edit "main.cs and change line 6 from this:
$defaultGame = "demo";
to this:
$defaultGame = "prototype"
This will use our new "prototype" mod instead of the demo mod.
Question 1
I can't find a "main.cs" that has $defaultGame = "demo"; anywhere in it's script.
Where can I get It?
14.4.5
I've added the new code to \MazeRunner\prototype\main.cs so it looks like this:
function onStart()
{
// Maze Runner changes Begin -->
exec("./EGSystems/SimpleInventory/egs_SimpleInventory.cs");
exec("./EGSystems/SimpleTaskManager/egs_SimpleTaskManager.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
Parent::onStart();
This is what I have in my MazeRunner directory so far:
\deldso
\delml
\prototype
\Torque Demo OSX
\Torque ShowMod
This is what I have in prototype directory:
\client
\data
\EGSystems
\main.cs
\server
Question 2
What should I have in each directory (file) to make the prototype work and where can I find it?
It is damn hard for a beginner to get a grasp of this material if he can't get to square one. Don't I need an executable in the first directory(MazeRunner)? Where is it?
Should I assume I need the "main.cs" (which I can't find) in the \MazeRunner directory along with "prototype & Torque Demo OSX"? The book does not tell me to add anything else to execute the test run.
Question 3
How can I get MRA to run on my Mac?
I downloaded MRA from the author's website. I can't get the zip files to unarchive. I get a dialog box that says:
Unable to unarchive "common.zip" into "desktop". (error 78 - function not implemented)
I thought by looking at MRA it would help me understand what is needed in "prototype"
alas, nothing seems to work.
Question 4
In the GPGT LessonKit there appears to be an executable "gpgt.exe". When I double-click on it I get a dialog box that requests an application. Shouldn't this start the demo?
If anyone can help me, my eMail is kenmalone@a-znet.com.
I hope someone out there was once a newb and understands my frustration.
Thanks in advance for pointing me in the right direction.
I recently purchased The Game Programmer's Guide to Torque. It looks as though it has a lot of useful stuff in it.
I'm a newbie and very frustrated.
I am working on an iMac G5 with Torque DemoOSX-1-4
I'm trying to get the prototype to work.
On page 576 -
14.4.4 Modify "main.cs" it says:
Next, edit "main.cs and change line 6 from this:
$defaultGame = "demo";
to this:
$defaultGame = "prototype"
This will use our new "prototype" mod instead of the demo mod.
Question 1
I can't find a "main.cs" that has $defaultGame = "demo"; anywhere in it's script.
Where can I get It?
14.4.5
I've added the new code to \MazeRunner\prototype\main.cs so it looks like this:
function onStart()
{
// Maze Runner changes Begin -->
exec("./EGSystems/SimpleInventory/egs_SimpleInventory.cs");
exec("./EGSystems/SimpleTaskManager/egs_SimpleTaskManager.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
Parent::onStart();
This is what I have in my MazeRunner directory so far:
\deldso
\delml
\prototype
\Torque Demo OSX
\Torque ShowMod
This is what I have in prototype directory:
\client
\data
\EGSystems
\main.cs
\server
Question 2
What should I have in each directory (file) to make the prototype work and where can I find it?
It is damn hard for a beginner to get a grasp of this material if he can't get to square one. Don't I need an executable in the first directory(MazeRunner)? Where is it?
Should I assume I need the "main.cs" (which I can't find) in the \MazeRunner directory along with "prototype & Torque Demo OSX"? The book does not tell me to add anything else to execute the test run.
Question 3
How can I get MRA to run on my Mac?
I downloaded MRA from the author's website. I can't get the zip files to unarchive. I get a dialog box that says:
Unable to unarchive "common.zip" into "desktop". (error 78 - function not implemented)
I thought by looking at MRA it would help me understand what is needed in "prototype"
alas, nothing seems to work.
Question 4
In the GPGT LessonKit there appears to be an executable "gpgt.exe". When I double-click on it I get a dialog box that requests an application. Shouldn't this start the demo?
If anyone can help me, my eMail is kenmalone@a-znet.com.
I hope someone out there was once a newb and understands my frustration.
Thanks in advance for pointing me in the right direction.
#2
Thanks for your quick response!!!
You might turn out to be my hero :)
I've used my finder to find all instances of "main.cs".
None have the line $defaultGame = "demo"; at line 6 as indicated in the book.
The following are the only ones that have line 6's that start with "defaultGame =".
@ "GPGT/GPGT LessonKit/main.cs" I have:
$defaultGame = "gpgt";
$displayHelp = false;
there is an executable named "gpgt.exe"
----------
@ GPGT/MazeRunner/MazeRunner_Post A - Lesson 21/main.cs" I have:
$defaultGame = "prototype";
$displayHelp = false;
there is an executable named "demo.exe"
there is an executable named "getdxver.exe"
These are probably used to run Lesson 21 only.
-----------
@ GPGT/MazeRunner/MazeRunner_Post_Finishing_the_Prototype/main.cs" I have:
$defaultGame = "prototype2";
$displayHelp = false;
No executable in this directory!
This is probably used to run Finishing the Prototype only.
------------
@ GPGT/MazeRunner/MazeRunner_Post_Improve_Feeback//main.cs" I have:
$defaultGame = "prototype3";
$displayHelp = false;
No executable in this directory!
This is probably used to run Improve Feedback only.
------------
I've tried making the change in all of them previously but will try again later. I need to go to work now.
You've definately helped me. Now that I know there is nothing else that needs to go in the directory to get Prototype launched, I'm one step closer to moving on.
07/13/2006 (10:26 am)
To Tim,Thanks for your quick response!!!
You might turn out to be my hero :)
I've used my finder to find all instances of "main.cs".
None have the line $defaultGame = "demo"; at line 6 as indicated in the book.
The following are the only ones that have line 6's that start with "defaultGame =".
@ "GPGT/GPGT LessonKit/main.cs" I have:
$defaultGame = "gpgt";
$displayHelp = false;
there is an executable named "gpgt.exe"
----------
@ GPGT/MazeRunner/MazeRunner_Post A - Lesson 21/main.cs" I have:
$defaultGame = "prototype";
$displayHelp = false;
there is an executable named "demo.exe"
there is an executable named "getdxver.exe"
These are probably used to run Lesson 21 only.
-----------
@ GPGT/MazeRunner/MazeRunner_Post_Finishing_the_Prototype/main.cs" I have:
$defaultGame = "prototype2";
$displayHelp = false;
No executable in this directory!
This is probably used to run Finishing the Prototype only.
------------
@ GPGT/MazeRunner/MazeRunner_Post_Improve_Feeback//main.cs" I have:
$defaultGame = "prototype3";
$displayHelp = false;
No executable in this directory!
This is probably used to run Improve Feedback only.
------------
I've tried making the change in all of them previously but will try again later. I need to go to work now.
You've definately helped me. Now that I know there is nothing else that needs to go in the directory to get Prototype launched, I'm one step closer to moving on.
#3
07/13/2006 (10:46 am)
I'm having the same problem as you are. I picked up the book last night and was going through this section (chapter 14) and ran into the exact same problem. Neither of the main.cs files that I found had $defaultGame listed in line 6. I couldn't even find $defaultGame at all.
#4
There is a forum dedicated to the book that you might find helpful.
07/13/2006 (11:51 am)
http://www.garagegames.com/mg/forums/result.forum.php?qf=178There is a forum dedicated to the book that you might find helpful.
#5
I wasn't getting any response at that forum. That's why I Posted here as well.
To Oliver:
Let me know if you have any success. I'll do likewise @ Torque Game Engine Public Area>>Book: Game Programmer's Guide to Torque>>Topic:GPGT Chapter 14 - Issues and Questions.
www.garagegames.com/mg/forums/result.forum.php?qf=178
07/13/2006 (7:33 pm)
To Benjamin:I wasn't getting any response at that forum. That's why I Posted here as well.
To Oliver:
Let me know if you have any success. I'll do likewise @ Torque Game Engine Public Area>>Book: Game Programmer's Guide to Torque>>Topic:GPGT Chapter 14 - Issues and Questions.
www.garagegames.com/mg/forums/result.forum.php?qf=178
#6
07/16/2006 (1:25 am)
Any luck? I'm still stumped when it comes to changing that file to "prototype".
#7
On the disk there is a directory named "MazeRunner".
Open it, and there is another directory named "MazeRunner_Post_Finishing_the_Prototype"
Open that and there is a script called "main.cs"
This script is used in the root directories to open whatever demo you want by changing that one word in line 6.
I've checked the whole script, line for line, with all demos I have been able to get my hands on.
"main.cs" used in other directories, other than the root directories, can contain script that is different.
I still can't get the "prototype" to launch. It keeps giving me the Demo everytime I try. There seems to be something else that is missing on the CD or in the book.
By the way, are you related to Oliver Smith the Set Designer?
07/17/2006 (4:35 am)
To OliverOn the disk there is a directory named "MazeRunner".
Open it, and there is another directory named "MazeRunner_Post_Finishing_the_Prototype"
Open that and there is a script called "main.cs"
This script is used in the root directories to open whatever demo you want by changing that one word in line 6.
I've checked the whole script, line for line, with all demos I have been able to get my hands on.
"main.cs" used in other directories, other than the root directories, can contain script that is different.
I still can't get the "prototype" to launch. It keeps giving me the Demo everytime I try. There seems to be something else that is missing on the CD or in the book.
By the way, are you related to Oliver Smith the Set Designer?
#8
And no. I'm not related to any Set Designer :)
07/17/2006 (3:17 pm)
Thanks Kenneth. I'm still playing around with it myself.And no. I'm not related to any Set Designer :)
#9
Hall Of Worlds - For Gamers
EdM|GPGT
07/18/2006 (7:16 pm)
@Kenneth and All - I'm back to minding the store. I'm going to step through the chapter 14 stuff on a Mac and then I'll reply to Kenneth and anyone else who has posted in the GPGT Forum since I last answered posts. Please bear with me for another couple of hours.
Hall Of Worlds - For GamersEdM|GPGT
#10
I'm currently creating an Appendix E which is the Maze Runner steps but for Max OSX users only. This is going to take a little more than 2 hours (as last posted) so please bear with me. I'm on the job.
Thanks
Hall Of Worlds - For Gamers
EdM|GPGT
07/18/2006 (10:22 pm)
UpdateI'm currently creating an Appendix E which is the Maze Runner steps but for Max OSX users only. This is going to take a little more than 2 hours (as last posted) so please bear with me. I'm on the job.
Thanks
Hall Of Worlds - For GamersEdM|GPGT
#11
I'm taking this thread over to the other forums.
Please follow me there.
Hall Of Worlds - For Gamers
EdM|GPGT
07/19/2006 (12:51 am)
UpdateI'm taking this thread over to the other forums.
Please follow me there.
Hall Of Worlds - For GamersEdM|GPGT
#12
I am impressed with your response to a lowly noob like me.
Your desire to back up your book for PC and Mac people alike (even though you are, I'm sure, a very busy person) has gained my respect. I will be looking forward to book 2.
@GarageGames
With guys like Ed, it reassures me that I am on the right track choosing Torque for my game ideas. I honestly wasn't sure in March, when I gave up on the early adopter of T2D.
@To All
Buy this book! It will be money well spent.
I'm 66 years old and Ed is teaching an old dog new tricks.
07/19/2006 (7:27 am)
@Edward F. Maurina IIII am impressed with your response to a lowly noob like me.
Your desire to back up your book for PC and Mac people alike (even though you are, I'm sure, a very busy person) has gained my respect. I will be looking forward to book 2.
@GarageGames
With guys like Ed, it reassures me that I am on the right track choosing Torque for my game ideas. I honestly wasn't sure in March, when I gave up on the early adopter of T2D.
@To All
Buy this book! It will be money well spent.
I'm 66 years old and Ed is teaching an old dog new tricks.
Torque Owner Tim Heldna
The main.cs file should be located in the same directory as the torqueDemo.exe (or whatever the Mac equivalent is).
On a Windows system this is typically C:\Torque\SDK\example
As well as containing main.cs and the executable, the example folder contains a series of folders which represent and hold data for any number of projects you are creating in Torque. In your case you have a folder named 'prototype' which is why the book is instructing you to make this alteration in main.cs
That tells the Torque executable to run that particular project.
At the moment I would speculate your main.cs file would be running 'Torque Demo OSX'.
Main.cs should look something like this
As you can see the code you are looking for is at the very top of the file and should be easy to locate. Remembering that as you are running on a Mac your file will most likely differ from mine and might read something like this
So all you have to do is open main.cs, which should be located in the root folder that's holding the folders you mention above;
\deldso
\delml
\prototype
\Torque Demo OSX
\Torque ShowMod
with any text editor and change it to read
Shouldn't be very hard at all.