Game Development Community

Problems running TorqueCombat

by Du Xiaoshi · in Torque X 2D · 07/13/2007 (1:14 pm) · 6 replies

Hi,
I have tried the Blaster Tutorial ,and it runs well.
So I'd like to try TorqueCombat with TXB and do some change with the scene just like Blaster Tutorial .
Firstly, I run the TorqueCombat in the C#2005 Express Edition,and I can get into the game.Then I open the TXB, and create the TXB project by "File->New Project from the menu" and select the Game Studio Express project and run the TXB project. And I can get into the game,too.
But unlukily,when I open the file "GameData.txscene" and run the TXB project again,I get the fatal errors
"Attempted to create new object type "barrierTall",but object database is locked.Check type name or unlock database." This is the topside line. But I haven't modified any code and I just want to load the TorqueCombat scene to TXB.
Waiting......

#1
07/13/2007 (8:34 pm)
Hi,
I have tried the Blaster Tutorial ,and it runs well.
So I'd like to try TorqueCombat with TXB and do some change with the scene just like Blaster Tutorial .
Firstly, I run the TorqueCombat in the C#2005 Express Edition,and I can get into the game.Then I open the TXB, and create the TXB project by "File->New Project from the menu" and select the Game Studio Express project and run the TXB project. And I can get into the game,too.
But unlukily,when I open the file "GameData.txscene" and run the TXB project again,I get the fatal errors
"Attempted to create new object type "barrierTall",but object database is locked.Check type name or unlock database." This is the topside line. But I haven't modified any code and I just want to load the TorqueCombat scene to TXB.
Waiting......
#2
07/14/2007 (1:50 pm)
Spamming the boards will get you nowhere. I notice you also double posted in the TXB forum
#3
07/14/2007 (2:18 pm)
Asserts are messages from the engine to you to notify you of a problem. In this case, it's telling you that the object type "barrierBall" wasn't found. Check to make sure barrierBall exists in the scene (you can add it via TXB or in the .scene file XML by hand). It sounds like TXB might have ignored the existing object types when creating a new project.

The purpose of locking object types is that they are created the same way they're used: GetObjectType(string). If you call that method to get the object type "vehicle" and you accidentally type "vehiclcle" it would normally (when unlocked) create a new object type called "vehiclcle" and have no way of knowing that it gave you the wrong information. It's locked when the game is run after it pulls the object types from the scene file. If you wanted to create a new object type, you would have to unlock object types first, and you'd want to lock it again afterwards.
#4
07/14/2007 (2:21 pm)
Also, spamming and double-posting are generally seen as obnoxious by this community. If you want to get a response, you're more likely to get one by just posting a coherent description of your problem and waiting for a reply.
#5
07/14/2007 (10:29 pm)
Sorry for double-posting.
It seems that TXB cannot load the scene from the "GameData.txscene".
How to load .txscene file ?What is the right way?
Firstly, create the TXB project by "File->New Project from the menu" and select the Game Studio Express project ,and then ,I open the file "GameData.txscene" .But in the Scene View of the TXB,it's doesn't have the
Level Scene of the TorqueCombat Game.So I don't know how to edit the Level Scene .

After that, I save the TXB project,and it get some warning in the Game Studio Express project ,butI haven't modified any code.Here is the warning:

-------------------------------------------------------------------------------------------------------------------
Warning 1 The file 'data\GameData.txscene' could not be added to the project. A file with the same path already exists in the project. Game
Warning 2 The file 'Docs\assault.jpg' could not be added to the project. A file with the same path already exists in the project. Game
Warning 3 The file 'Docs\assaultend.jpg' could not be added to the project. A file with the same path already exists in the project. Game
Warning 4 The file 'Docs\helpmenu.jpg' could not be added to the project. A file with the same path already exists in the project. Game
Warning 5 The file 'Docs\mainmenu.jpg' could not be added to the project. A file with the same path already exists in the project. Game
Warning 6 The file 'Docs\multiplayermenu.jpg' could not be added to the project. A file with the same path already exists in the project. Game
Warning 7 The file 'Docs\optionsmenu.jpg' could not be added to the project. A file with the same path already exists in the project. Game
Warning 8 The file 'Docs\sumo.jpg' could not be added to the project. A file with the same path already exists in the project. Game
Warning 9 The file 'Docs\sumoend.jpg' could not be added to the project. A file with the same path already exists in the project. Game
-------------------------------------------------------------------------------------------------------------------------------------
#6
07/14/2007 (10:49 pm)
And when I open the file "GameData.txscene",the TXB don't have such a mount of materials in the game
After I save the changes in the Game Studio Express project, the content in the GameData.txscene changed.
The TXB don't have such a mount of materials