Game Development Community

T3D 1.1 Beta 3/Preview - not play character animation on server..

by Mquaker · in Torque 3D Professional · 04/10/2011 (5:25 am) · 1 replies

Player Animation play only root/run/backward/side.

Thread Body:

Build: 1.1 Beta 3, 1.1 Preview.

Platform: Windows XP x86, Windows 7 x86/x64.

Target: Local Connection & Dedicated Server.

Issues: Play only StandPose's Player Animations(root/run/backward/side) on Dedicated Server & Local Connection.
so, i don't show other client player's crouch & swimming animations.

Steps to Repeat:
1. Create Game Server( Local or Dedicated )
2. Connect over 2 players.
3. try crouchpose or swimpose

Suggested Fix: add player pose's in the same net logic as player state.

void Player::writePacketData(GameConnection *connection, BitStream *stream)
{
                    ...
   stream->writeInt(mState,NumStateBits);
   stream->writeInt(mPose, NumPoseBits);   // Mquaker :: add net logic for mPose
                    ...
}

void Player::readPacketData(GameConnection *connection, BitStream *stream)
{
                    ...
   mState = (ActionState)stream->readInt(NumStateBits);
   mPose = (Pose)stream->readInt(NumPoseBits);   // Mquaker :: add net logic for mPose
                    ...
}

U32 Player::packUpdate(NetConnection *con, U32 mask, BitStream *stream)
{
                    ...
      stream->writeInt(mState,NumStateBits);
      stream->writeInt(mPose, NumPoseBits);   // Mquaker :: add net logic for mPose
                    ...
}

void Player::unpackUpdate(NetConnection *con, BitStream *stream)
{
                    ...
      ActionState actionState = (ActionState)stream->readInt(NumStateBits);

      // Mquaker :: add net logic for mPose >>>
      Pose pose = (Pose)stream->readInt(NumPoseBits);
      setPose(pose);
      // Mquaker :: add net logic for mPose <<<
                    ...
}

add this work. all fine.
but, i'm not resolve jump animation, yet.

#1
04/12/2011 (7:23 am)
Could you fill this out in the bug reporting format with explicit details on the needs so that I can get it entered in as either a bug or a feature request/improvement?