Jump Etc.
by Thomas Shaw · in Technical Issues · 07/27/2005 (9:53 pm) · 4 replies
I have spent the last 2 days researching and am still confused.
I have made a jump animation that i wish to be the default jump (press the spacebar and he jumps). Additionally I have made an idle animation and an attack animation.
My animations don't play in the engine, but work fine in showtool.
So, im gonna try to be super clear with this:
1. I have the engine looking to a folder containing a new player character. In that folder is the dts, dsq's and "rogue_a.cs" <--that is being used instead of the normal "player.cs)
2. In the "rogue_a.cs" file I have listed my animations like so:
datablock TSShapeConstructor(PlayerDts)
{
baseShape = "./rouge_a.dts";
sequence0 = "./rouge_a_root.dsq root";
sequence1 = "./rouge_a_run.dsq run";
sequence2 = "./rouge_a_run.dsq jump";
//sequence3 = "./player_side.dsq side";
//sequence4 = "./player_lookde.dsq look";
//sequence5 = "./player_head.dsq head";
//sequence6 = "./player_fall.dsq fall";
//sequence7 = "./player_land.dsq land";
sequence8 = "./rogue_a_jump.dsq jump";
.......etc.
My new animations are the rogue_a...dsqs. The others are commented out cuz there arent any animations for those yet.
2. I have the "player.cs" in the "\server\scripts" folder set to execute my "rouge_a.cs" instead of the normal "player.cs" that would normally be found in \data\shapes\player.
What am I missing? There is obviously something cuz my animations don't play.
I know that the jump is hardcoded in the engine -- but I don't understand how it is referencing a specific animation. Is it somehow hardcoded to look for a file called player_jump.dsq in the player folder? I couldnt find any reference to that in the player or engine cc or h files.; just various references to Jumpanim and Jump etc.
Also, In my 3dsMax jump file, Does the Sequence helper need to be named "Jump"? It is, btw, but I am just checking if that is relevant.
So I guess it comes down to: What specific files do I neeed to change the replace the default animations. And what do the naming conventions need to be -- from the sequence helper in MAx all the way through.
Thanks for reading this long post. Any help is greatly appreciated.
Thomas
I have made a jump animation that i wish to be the default jump (press the spacebar and he jumps). Additionally I have made an idle animation and an attack animation.
My animations don't play in the engine, but work fine in showtool.
So, im gonna try to be super clear with this:
1. I have the engine looking to a folder containing a new player character. In that folder is the dts, dsq's and "rogue_a.cs" <--that is being used instead of the normal "player.cs)
2. In the "rogue_a.cs" file I have listed my animations like so:
datablock TSShapeConstructor(PlayerDts)
{
baseShape = "./rouge_a.dts";
sequence0 = "./rouge_a_root.dsq root";
sequence1 = "./rouge_a_run.dsq run";
sequence2 = "./rouge_a_run.dsq jump";
//sequence3 = "./player_side.dsq side";
//sequence4 = "./player_lookde.dsq look";
//sequence5 = "./player_head.dsq head";
//sequence6 = "./player_fall.dsq fall";
//sequence7 = "./player_land.dsq land";
sequence8 = "./rogue_a_jump.dsq jump";
.......etc.
My new animations are the rogue_a...dsqs. The others are commented out cuz there arent any animations for those yet.
2. I have the "player.cs" in the "\server\scripts" folder set to execute my "rouge_a.cs" instead of the normal "player.cs" that would normally be found in \data\shapes\player.
What am I missing? There is obviously something cuz my animations don't play.
I know that the jump is hardcoded in the engine -- but I don't understand how it is referencing a specific animation. Is it somehow hardcoded to look for a file called player_jump.dsq in the player folder? I couldnt find any reference to that in the player or engine cc or h files.; just various references to Jumpanim and Jump etc.
Also, In my 3dsMax jump file, Does the Sequence helper need to be named "Jump"? It is, btw, but I am just checking if that is relevant.
So I guess it comes down to: What specific files do I neeed to change the replace the default animations. And what do the naming conventions need to be -- from the sequence helper in MAx all the way through.
Thanks for reading this long post. Any help is greatly appreciated.
Thomas
#2
did you also tell it to reference the rouge ".dts" file instead of "player/player.dts" under "shapeFile = " defined in "PlayerBody"?
07/28/2005 (10:43 am)
Quote:
2. I have the "player.cs" in the "\server\scripts" folder set to execute my "rouge_a.cs" instead of the normal "player.cs" that would normally be found in \data\shapes\player.
did you also tell it to reference the rouge ".dts" file instead of "player/player.dts" under "shapeFile = " defined in "PlayerBody"?
#3
Matthew: yes, the shapefile = is correctly pointing to my dts file. thanks for the suggestion tho.
07/28/2005 (12:20 pm)
Oh wow! Thanks Derk. I totally didn't notice that. Sigh. this is why another pair of eyes is good to have look at things. I fixed it, thanks. ...didn't make him jump, but still good to have a nice orderly correct file.Matthew: yes, the shapefile = is correctly pointing to my dts file. thanks for the suggestion tho.
#4
07/28/2005 (12:20 pm)
Is there anything I can post; screeenshots of hierarchys or files or whatnot that might be helpful to diagnose my issues?
Torque Owner Derk Adams
At first glance your problem may be that sequence2 collides with sequence8. I would remove 8 and correct 2. There may be other issues, but this is a start.
Thanks.