Model used in server side melee system
by Jacob Mahar · in Torque Game Engine · 12/11/2005 (2:01 am) · 6 replies
Does anybody know how to setup model to be used in server side melee system (from Josh Moore tutorial)? like sequence naming, cyclic animation, or something else.
cause i've tried, with my custom model, and named it without using "h1" prefix. but i ended with crash.
cause i've tried, with my custom model, and named it without using "h1" prefix. but i ended with crash.
About the author
#2
12/11/2005 (7:47 am)
After i add the look sequence, the game's not crashing anymore. but i still can't attack with my sword, the animation sequence don't want to play. the key binding is all right. and i double checked that the engine code modification is all right too. is there any suggestion for my problem here?
#3
Animations are only seen, when played client side. When your server object is advised to play a animation you must make sure, a network mask is set to make the pack/unpack code transfer this state change to the client.
The client must do a playAnimation() from it's unpack() method, once such a network message is received.
-- Markus
12/11/2005 (8:07 am)
I guess there is.Animations are only seen, when played client side. When your server object is advised to play a animation you must make sure, a network mask is set to make the pack/unpack code transfer this state change to the client.
The client must do a playAnimation() from it's unpack() method, once such a network message is received.
-- Markus
#4
12/12/2005 (1:57 am)
Hmm.. can you tell me which part of the scripts i have to modify? i don't really understand your answer. maybe you would like to explain it to some noobs like me.
#5
12/12/2005 (8:26 am)
Anyone else know why this kind of problem happening?
#6
You must make sure, your animation is played client-side, otherwise you will not see it.
Maybe you should post some extracts from your code. Something where we can see, how you are trying to invoke the meele attack. It's hard to tell, what is wrong without checking out the code.
-- Markus
12/12/2005 (11:02 am)
Jakob, I was not talking about script code, I was talking about engine code.You must make sure, your animation is played client-side, otherwise you will not see it.
Maybe you should post some extracts from your code. Something where we can see, how you are trying to invoke the meele attack. It's hard to tell, what is wrong without checking out the code.
-- Markus
Torque Owner Markus Nuebel
Maybe you can post your console.log and the stack trace at the point of the crash.
-- Markus