Chapter 4 problems
by Matthew Ruggiero · in Torque Game Engine · 06/30/2004 (9:19 am) · 10 replies
I typed in all the files as they are written in the text and I am unable to run the chapter 4 sample. I checked the files against the working chapter 4 files provided on the CDROM and I do not find any differences.
Has anyone else had problems with this example.
I am beginning to think my experience with this book is going to be me stumbling over erroneous code.
Very frustrating indeed!!
Has anyone else had problems with this example.
I am beginning to think my experience with this book is going to be me stumbling over erroneous code.
Very frustrating indeed!!
#2
It should probably be a Typo, a missing colon on the function name, perhaps.
06/30/2004 (9:53 am)
Line 21 is the definition of the function SpawnPlayer.It should probably be a Typo, a missing colon on the function name, perhaps.
#3
They are EXACTLY the same!!
I am not sure why mine doesn't work.
Maybe the torque script parser has a problem with certain hidden characters.
It is possible that there was a hidden character in there somewhere.
06/30/2004 (10:34 am)
OK I just replaced my server.cs with the one on the CDROM.They are EXACTLY the same!!
I am not sure why mine doesn't work.
Maybe the torque script parser has a problem with certain hidden characters.
It is possible that there was a hidden character in there somewhere.
#4
06/30/2004 (10:38 am)
It's possible. What is your editing environment?
#5
06/30/2004 (3:16 pm)
I was using the trial version of UltraEdit-32 that came on the books CD.
#6
--------- Loading Add-ons ---------
common/main.cs (149): Unknown command OnStart.
07/04/2004 (7:17 am)
I get this error--------- Loading Add-ons ---------
common/main.cs (149): Unknown command OnStart.
#7
07/04/2004 (8:55 am)
Found the bug in my last post and fixed it. Now the path just dies in %conn.connectLocal(); All I get is a black screen with red trails where the mouse moves. Any hints?
#8
07/05/2004 (10:13 am)
I'm getting that same black screen with a red trail following my mouse also. However the console (tilde) works but not without glitches.
#9
07/05/2004 (10:16 am)
@Robert I finally just copied the source files from that chapter on the disk over and it works. I think there was a file supposed to be there not mentioned.
Torque Owner Matthew Ruggiero
control/server.cs (21): Unknown command spawnPlayer.
I compared it to the working versions and control/server.cs is exactly the same!!
I even copied over the common folder from the working version and that did not fix the problem.
Does anyone know where this spawnPlayer function is supposed to be?