Need help replacing control object with new model
by Jeff Trudeau · in Torque Game Engine · 11/29/2003 (11:57 pm) · 1 replies
Greetings,
I have a .dts model created with no animation sequences that I would like to quickly insert into the demo mission just to get an idea of how it looks within the engine. I have had difficulty acheiving any results, however. The first problem I am running into is this statement
AssertFatal(squared != 0.0, "Error, no plane possible!");
within mPlane.h is causing the application to shutdown. I am not entirely certain what is causing this, but I am worried that it may be due to errors within the .dts file? I am very uncertain of this, though, as I was able to insert this model into the game via the editor (just not as the control object). I have commented this out and the application still crashes before any loading of datablocks is performed.
Also, will the spineNode data structure in Player.h cause errors if the specified nodes are not defined?
I think I am beginning to understand what is involved in changing the 'type' of player (i.e. I eventually want to specify that my control object is a flying vehicle). It will require loading a datablock from a script file of type FlyingVehicleData.
Anyway, if anyone (and/or everyone) has any comments or suggestions, I am really looking for the simplest way to just get this model as the control object. I know there is some way of accomplishing this using existing scripting language files, I am just unsure of exactly what it is at this time.
Please reply - thanks.
I have a .dts model created with no animation sequences that I would like to quickly insert into the demo mission just to get an idea of how it looks within the engine. I have had difficulty acheiving any results, however. The first problem I am running into is this statement
AssertFatal(squared != 0.0, "Error, no plane possible!");
within mPlane.h is causing the application to shutdown. I am not entirely certain what is causing this, but I am worried that it may be due to errors within the .dts file? I am very uncertain of this, though, as I was able to insert this model into the game via the editor (just not as the control object). I have commented this out and the application still crashes before any loading of datablocks is performed.
Also, will the spineNode data structure in Player.h cause errors if the specified nodes are not defined?
I think I am beginning to understand what is involved in changing the 'type' of player (i.e. I eventually want to specify that my control object is a flying vehicle). It will require loading a datablock from a script file of type FlyingVehicleData.
Anyway, if anyone (and/or everyone) has any comments or suggestions, I am really looking for the simplest way to just get this model as the control object. I know there is some way of accomplishing this using existing scripting language files, I am just unsure of exactly what it is at this time.
Please reply - thanks.
Torque Owner Jeff Trudeau