Game Development Community

Torque 3D RTS prototype Documentation

by Mark Rogotowicz · in Torque 3D Beginner · 09/29/2009 (10:43 am) · 23 replies

Hi guys,

This could be a noob question, but I am having difficulty completing the RTS prototype tutorial in the Torque scripting documentation.
Please be aware that I am using the DEMO version.
I have downloaded the zip file containing the sample assets as the documentation states, but the following error still occurs:

www.whitetail.com.au/torqueqa/torqueQA1.jpg
Also, after editing all the scripts, the game would not run in a 3rd person/top down perspective when I changed the camera angles.
I then proceeded to just copy the referenced script files (from the documentation links) into the relevant directories, and still no luck.
When adding in the code manually, I did find a few reference errors.
Eg.
The documentation states at the beginning of the RTS section -

Open game/scripts/server/game.cs. In function GameConnection::onClientEnterGame(%this), locate the following line:
%this.spawnPlayer(%playerSpawnPoint);

However, this line or GameConnection function do not exist. I found them in the game.cs file in the gamecorescriptsserver directory, but I do not believe this to be the correct file.

Also, I did create a new project - with the FULL template.

Is there a limit on what can be done in the DEMO version?
Can anyone help me?
Thanks.


About the author

Recent Threads

Page«First 1 2 Next»
#21
10/21/2009 (9:37 am)
It would be great to extend the tutorial with example how create more then one unit and manage them(unit choosing and ordering), add teams(client can choose between).
#22
11/02/2009 (3:56 pm)

i'm having trouble spawning enemies... i followed the instructions and typed this into "default.bind.cs"
// Spawn an AI guy when key is pressed down
function spawnAI(%val)
{
   // If key was pressed down
   if(%val)
   {
      // Create a new, generic AI Player
      // Position will be at the camera's location
      // Datablock will determine the type of actor
      new AIPlayer() 
      {
         position = LocalClientConnection.camera.getPosition();
         datablock = "DefaultPlayerData";
      };
   }
}

// Bind the function spawnAI to the keyboard 'b' key
moveMap.bind(keyboard, b, spawnAI);
when i press 'b', nothing happens. i've checked over the code, and the rest of the RTS prototype tutorial, and made sure i didn't skip any steps. i had a feeling that it had something to do with the datablock "DefaultPlayerData" since that didn't ring a bell and i didn't find it anywhere in the folders. sure enough, i hit b and check the console and there's an error message saying datablock "DefaultPlayerData" can't be found.
#23
05/17/2010 (10:59 am)
*Resurrection*
-I keep getting this thread when searching and the lack of an answer bothers me for some reason. So I'll answer it.

---

Note: it's 1.0 compatible so that could be your problem.

But defaultPlayerData should be located here:
...artdatablocksplayer.cs line 463
Page«First 1 2 Next»