Forum for 3D Game Programming All inOne
by Christopher Frenton · in Torque Game Engine · 10/25/2009 (5:35 pm) · 7 replies
Hello,
I was perusing the threads looking for a forum for the Kenneth Finney book "3D Game Programming All in One" to see if could come upon some hints to solve my current issue with one of the tutorials.
I found a link to a dedicated forum but it was dead. Does this forum no longer exist or has it moved? Can someone kindly point me in the direction to get some help? Thank you.
-Chris
I was perusing the threads looking for a forum for the Kenneth Finney book "3D Game Programming All in One" to see if could come upon some hints to solve my current issue with one of the tutorials.
I found a link to a dedicated forum but it was dead. Does this forum no longer exist or has it moved? Can someone kindly point me in the direction to get some help? Thank you.
-Chris
#2
I have the second edition of '3D Game Programming All in One' and although I own TGEA I am using the demo that came on the disk for consistency.
I am on chapter 4 and just completed all the scripts in that tutorial. I had a multitude of mistakes but was finally able to get the game to start. However, when it does I just fall through the world. I backed up my versions and replaced them with the scripts that are located on CD just to see if it fixed the issue but I got the same thing.
I just realized that a copy of my console.log might be helpful but I am currently at work and do not have access to torque. I can post that when I get home tonight. I noticed other people on older posts had that issue on chapter 5 but I have not seen a resolution yet.
Any ideas?
Thanks!
10/26/2009 (1:57 pm)
cool.I have the second edition of '3D Game Programming All in One' and although I own TGEA I am using the demo that came on the disk for consistency.
I am on chapter 4 and just completed all the scripts in that tutorial. I had a multitude of mistakes but was finally able to get the game to start. However, when it does I just fall through the world. I backed up my versions and replaced them with the scripts that are located on CD just to see if it fixed the issue but I got the same thing.
I just realized that a copy of my console.log might be helpful but I am currently at work and do not have access to torque. I can post that when I get home tonight. I noticed other people on older posts had that issue on chapter 5 but I have not seen a resolution yet.
Any ideas?
Thanks!
#3
10/26/2009 (2:23 pm)
Christopher, Do you start out above the world, or are you falling upon zoning it. If you are falling upon zoning in, then press f11 to load the world editor, and makesure the spawnsphere is above the ground. If the spawnsphere is above the ground and you're just not colliding with the ground, but falling through it, we'll have to take a deeper look.
#4
control/server.cs (34): Unknown command setTranform.
Object (1207) Player -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject
That line in my Server.cs is the " %player.setTranform (%SpawnPoint); " in the following function...
function GameConnection::CreatePlayer (%this, %spawnPoint)
{
if (%this.player > 0)
{
Error ("Attempting to create an angus ghost!");
}
%player = new Player() {
datablock = MaleAvatar;
client = %this;
};
%player.setTranform (%SpawnPoint);
%this.player = %player;
%this.SetControlObject (%player);
}
as far as I can tell this is what the book is telling me to put. However, I am sure I am doing something wrong....
10/27/2009 (1:53 am)
I can not seem to access the world editor. The only keyboard function available to me is the esc button. It looks like I am falling as soon as I zone in. With that in mind I just saw an error in my console.log..control/server.cs (34): Unknown command setTranform.
Object (1207) Player -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject
That line in my Server.cs is the " %player.setTranform (%SpawnPoint); " in the following function...
function GameConnection::CreatePlayer (%this, %spawnPoint)
{
if (%this.player > 0)
{
Error ("Attempting to create an angus ghost!");
}
%player = new Player() {
datablock = MaleAvatar;
client = %this;
};
%player.setTranform (%SpawnPoint);
%this.player = %player;
%this.SetControlObject (%player);
}
as far as I can tell this is what the book is telling me to put. However, I am sure I am doing something wrong....
#5
10/27/2009 (12:14 pm)
you need to change %player.setTranform(%SpawnPoint); and put an 's' into Transform, simple spelling mistake. Lemme know if that doesn't fix the falling problem.
#7
10/27/2009 (1:49 pm)
Haha, happens to the best, I myself typically forget to put the ';' or and up putting a ':' and will spend hours pulling my hair out.
Torque Owner Richard Preziosi
WinterLeaf Entertainment