Some questions on The Game Programmers Guide to Torque book?
by Shane09 · in General Discussion · 10/10/2008 (6:38 pm) · 1 replies
Hello. As you all have noticed, I have no CD. Recently, I have aquired one from A K Peters! Yay :) And it was free :) But now that I got the CD, I am having some questions and problems with the game that you make in chapter 14.
1) Instead of being told to use the Demo they want you to use to make the game, can I use my Torque Game Engine full version? But it says there is some stuff in the Demo that you would need to extract. Also, I tried using the full version, but nothing would load. I am guessing it's because the script is not set up to handle that version? So do I have to use the Demo version? It would be great if I could use the full version because it holds more features.
2) When it says start up the Demo, it just takes me to the walkthrough and "hit f11 for world editor" or "hit f10 for GUI editor". In the book on chapter 14.7 it says "At this point, we can start the Maze Runner mission and then manually load a level, but our player doesn't get moved into the right spot on the level, and there is pretty much no interaction."
Ok, when I start the Demo, I know that doesn't happen. I am using a Mac, too, if that can help you help me.
3) It says modify the following script in 'game.cs' under chapter 14.8.2. Well first of all, it doesn't say which 'game.cs'.
It says edit the following script under
This book isn't very specific. It doesn't tell you where to go, it just says edit this and that.
1) Instead of being told to use the Demo they want you to use to make the game, can I use my Torque Game Engine full version? But it says there is some stuff in the Demo that you would need to extract. Also, I tried using the full version, but nothing would load. I am guessing it's because the script is not set up to handle that version? So do I have to use the Demo version? It would be great if I could use the full version because it holds more features.
2) When it says start up the Demo, it just takes me to the walkthrough and "hit f11 for world editor" or "hit f10 for GUI editor". In the book on chapter 14.7 it says "At this point, we can start the Maze Runner mission and then manually load a level, but our player doesn't get moved into the right spot on the level, and there is pretty much no interaction."
Ok, when I start the Demo, I know that doesn't happen. I am using a Mac, too, if that can help you help me.
3) It says modify the following script in 'game.cs' under chapter 14.8.2. Well first of all, it doesn't say which 'game.cs'.
It says edit the following script under
GameConnection: :createplayer ()in 'game.cs':
function GameConnection: :createPlayer (%this, %spawnPoint) {
// Create the player object
%player = new player () {
dataBlock = MazeRunner; // Change this line
client = %this;
};
MissionCleanup.add(%player);
[b]$Game: :Player = %player; // MazeRunner[/b]The part in bold is the part I needed to add. Too bad I can't find this.This book isn't very specific. It doesn't tell you where to go, it just says edit this and that.
Torque 3D Owner Peter Simard
Default Studio Name
In Torsion go to Edit->Find and Replace->In files
Then enter in a piece of the code you are searching for. For example: "GameConnection::createPlayer"