Game Development Community

My animation works in showtool but not TGE

by Aidan Sliney · in Artist Corner · 02/12/2007 (7:48 am) · 9 replies

Hi everyone,
I really hope somebody can help with this. I've made a character in 3ds Max 8 and have converted him and exported him to .dts. When I open him in Showtool Pro and connect him to a .dsq animation the animation plays but when I import him to Torque and link him to the animations there the animations never play! I've linked these animations to the Orc character that comes with TGE and have them working in Torque so I'm fairly sure I'm doing that right but they still don't work on my new character!! I'd really appreciate any help or advice!
Thanks,
Aidan

#1
02/12/2007 (8:42 am)
Make sure the datablock TSShapeConstructor() in the player.cs within data/shapes for the new player model has a different name than the default orc if you are exec'ing them both.

If they both have the same name the engine will only use one of them, overwriting the other. I had this happen before as well, and that was what solved my issue.
#2
02/12/2007 (12:19 pm)
Cheers thanks!
#3
05/24/2007 (9:02 am)
I'm having a similar problem, but changing the name of the TSShapeConstructor doesn't appear to work. I'm using a flying/space vehicle as the player, and when the vehicle moves forward I want the propellers to spin. I've exported the animation sequence, and it's named MaintainBack, and it works fine in the ShowTool, but I can't get it to play in the engine. Is there some attribute in the sequence that I need to be setting that maybe I'm not, or is it something else. Any help would be very appreciated.

Thanks,
Denise
#4
05/24/2007 (10:30 am)
I dont think animations work for vehicle objects.
#5
05/24/2007 (10:54 am)
According to this post and "The Game Programmer's Guild to Torque" flying vehicle's support 4 animation threads. But I can't figure out how to set up the TSShapeConstructor so it merges my dts file with my dsq files. The only time I can get them to work together is in the Show Tool when I load the dts and dsq individually. Trying to load the dts and cs file in the Show Tool doesn't work.
#6
05/24/2007 (11:12 am)
I stand corrected! :)
#7
05/30/2007 (10:59 am)
I'm still having issues with this. Does anybody have any suggestions?

Thanks,
Denise
#8
05/30/2007 (10:34 pm)
Yes,

1) check that there aren't two animations listed in the showtool animation list. for example, you may see two 'root' animations, or a blank line animation that plays, or an animation name you didnt specify in the dsq. If so, you exported the animations in the shape file (.dts) and the sequence (.dsq) file. Uncheck the option in the parameters rolldown of the DTS exporter "Enable seequence export" when exporting the shape. This can cause problems.

2) The animations are listed in a file called player.cs (for the player character- flying vehicles use another file) within the shape directory for player. make sure you comment out all the lines for animations you are not using. There are 30 animations in the fps demo but you may only be using 2 or 3, so comment the rest out of that file. This made it work for me. Delete the player.dso (compiled version of the cs) file to make sure the list gets recompiled after you change it.

for example, im only using the top 5 sequences:

datablock TSShapeConstructor(PlayerDts)
{
baseShape = "./player.dts";
sequence0 = "./player_root.dsq root";
sequence1 = "./player_headside.dsq headside";
sequence2 = "./player_look.dsq look";
sequence3 = "./player_run.dsq run";
sequence4 = "./player_death1.dsq death1";

// sequence5 = "./player_side.dsq side";
// sequence6 = "./player_lookde.dsq look";
etc...
#9
05/31/2007 (8:38 am)
There is only one animation in the showtool animation list, and it's only there when I load the dsq file. I'm using the Maya2DTS exporter to export my dts and dsq files, and I've made sure to keep separate maya files for the shape and the animation for exportation. I have also already tried deleting the dso file, and it still doesn't work, and I am loading the ship.cs file in my server player file, so I don't think that is the problem either.

My ship.cs file, which is located in the data/shapes/ship directory with the dts and dsq files consists of:

datablock TSShapeConstructor(ShipDTS)
{
baseShape = "./ship.dts";
sequence0 = "./ship.dsq MaintainBack";
};

The only other thing I can possibly think of is that the problem may be in the cfg file for the dts or dsq export.