RTS prototype problem. LOGGED (THREED-2484)
by John Honkanen · in General Discussion · 08/09/2011 (3:27 pm) · 2 replies
Hi, i just bought Torque 3D a few weeks ago, and am working up the documentation area, and trying to understand the differnt aspects of the Engine.
Here is what the problem is, i was following the RTS prototype tutorial, and everything went smoothly, until i started editing the Spawn sphere. I changed the spawn sphere in an AIPlayer spawn, and made it to spawn a boombot. Once i closed down the editor and tried to play the game as it is, it starts loading(load screen), and then crashes.
So how do i fix this problem?
Also is there any tutorial around about spawning AI's?, cause when i made another spawn sphere, and did the same setting as above, nothing spawned.
Thank you
Here is what the problem is, i was following the RTS prototype tutorial, and everything went smoothly, until i started editing the Spawn sphere. I changed the spawn sphere in an AIPlayer spawn, and made it to spawn a boombot. Once i closed down the editor and tried to play the game as it is, it starts loading(load screen), and then crashes.
So how do i fix this problem?
Also is there any tutorial around about spawning AI's?, cause when i made another spawn sphere, and did the same setting as above, nothing spawned.
Thank you
#2
08/19/2011 (1:28 pm)
I'm logging this as a bug since the editor should not be crashing even with an invalid datablock.
Associate Ben Steffen
To be sure, check the console log file. You can locate that by selecting your project in the toolbox and clicking the "Open Folder" button. From there, open the game directory and locate a text file named "console".
If you see
GameBase::setDatablockProperty - Could not find data block "BoomBotData"
then that's your problem.
To fix this, either add the BoomBot art assets to the project (there is a link to download them at the beginning of the tutorial), or just use something already included in the template projects like DefaultPlayerData.
Because the crash will prevent you from making the fixes in the editor, you'll have to edit the level script file. From the project directory, this is located in game/levels/ and the filename will be the same as your level's name (such as "Empty Terrain").
Locate the new SpawnSphere declaration and edit the spawnDatablock entry:
spawnDatablock = "DefaultPlayerData";