Game Development Community

Cyclic DSQ's.. Want to change to Single run..

by Scott Warren · in Technical Issues · 05/26/2008 (4:27 pm) · 8 replies

I need some help from someone to help me change the DSQ files I have.

Many of the DSQ files cycle through and really need most of them to be a single run through.
An example would be the run.dsq .. which would normally be fine for a creature but when that same run.dsq is used for a player instead, it just keeps cycling even when I have stopped pressing the movement button.

Anyone care to assist me in a fix ?

#1
05/26/2008 (4:32 pm)
What is your code?
#2
05/26/2008 (4:49 pm)
datablock TSShapeConstructor(dragondts)
{
	baseShape = "./dragon.dts";
	sequence0 = "./g_idle.dsq";
	sequence1 = "./run.dsq"; 
	sequence2 = "./backward.dsq";
	sequence3 = "./straferight.dsq";
	sequence4 = "./g_idle.dsq";
	sequence5 = "./g_idle.dsq";
	sequence6 = "./airdeath.dsq";
	sequence7 = "./land.dsq";
	sequence8 = "./g_idle.dsq";
	sequence9 = "./death.dsq death1";
	sequence10 = "./death2.dsq death2";
	sequence11 = "./sleep.dsq death3";
	sequence12 = "./sleep.dsq death4";
	sequence13 = "./sleep.dsq death5";
	sequence14 = "./sleep.dsq death6";
	sequence15 = "./sleep.dsq death7";
	sequence16 = "./sleep.dsq death8";
	sequence17 = "./sleep.dsq death9";
	sequence18 = "./sleep.dsq death10";
	sequence19 = "./sleep.dsq death11";
	sequence20 = "./fly.dsq standjump";
	sequence21 = "./pain.dsq lightrecoil";
	sequence22 = "./walk.dsq crawl";
	sequence23 = "./walk2.dsq walk";
};

The datablock above is used to make the dragon model usuable as a player model.
The only problem is that many of the .dsq files are made to cycle over again after they reach the end.
Is there some way to modify these .dsq files to cycle once only?
#3
05/26/2008 (6:07 pm)
Try adding a "root" animation. So, it would look like :

sequence0 = "./g_idle.dsq root";

I think that will fix your problem. But, if you still need to set your animations to non-cyclic, I believe you can only do it during export. I'm not aware of any script command for it.
#4
05/26/2008 (6:24 pm)
Ok.. I think J.P helped me fix a different issue.
Difficult to explain without YouTube, please bare with me.

g_idle.dsq is the model standing still on the ground. I don't understand the reason for adding "root" inside the quotes but after adding it to look like this
sequence0 = "./g_idle.dsq root";
it helped stop the problem of the model getting stuck in an animation loop ( animation cycling ).

But I'm pretty sure I need to export the .dsq files from 3DsMax again.. so I can stop the animation from cycling.
I just don't know how to export anything from 3DsMax. Any link to a video or some such would help with that a great deal.

Also.. Can anyone explain why we add "root" or "death1" etc.. inside the quotes? I have been looking for that answer as well, during my attempts to fix this.

p.s. Anyone know if "Shaper" can fix the .dsq file instead?
#5
05/26/2008 (6:44 pm)
Those tags after the sequence file name assign a name to the animation sequence other than the name stored in the DSQ file.
#6
05/26/2008 (6:56 pm)
Thank you Rene =)
Also, just discovered Shaper can Import my .dsq and allow me to make a new animation file with as many frames as I need and seems to work even in ShowTool.

However, Shaper causes a minor glitch.. there seems to be a vector(?) perhaps.. that floats randomely..and it gets skinned also.. effectively making the animation appear to have a stretched out skin.. worse.. it's in the animation export.

So back to square one. Need to locate the export method for 3DsMax to get this fixed correctly.
If anyone using 3DsMax can guide me with a link I can export the .dsq file again.

Also, thank you Tyler, J.P, and Rene for the help.
Making this dragon model as a playable model is becoming a good learning experience.
#7
06/01/2008 (7:11 pm)
An update to this Issue:
3DRT has been contacted to request the animation change.
Inverse for Shaper has been contacted to request a fix.

Are their any developers here, that own the 3DRT Fantasy Dragon pack, and also knows how to operate 3ds Max, if changing the provided files in 3Ds Max to animate the sequence from frame 1 to frame(n) just once as opposed to each sequence cycling through endlessly?
#8
06/06/2008 (6:35 pm)
3DRT has helped with this and the animation has been fixed.
Thank you 3DRT.com for everything =)