Results 1 to 5 of 5

Thread: Problem with animation

  1. #1
    Member Member LucioSettimioSevero's Avatar
    Join Date
    Apr 2008
    Location
    Venice, Italy
    Posts
    9

    Default Problem with animation

    Hi, i have a problem with Animation Utilities 1.1.

    When I extract an knight's animation I have this error:



    Where is the problem ?

  2. #2
    Member Member KnightErrant's Avatar
    Join Date
    Jan 2007
    Location
    Huntsville, Alabama USA
    Posts
    458

    Default Re: Problem with animation

    Hmm, that's strange, the usual cas footer for standard anims looks
    like:
    Code:
    104 1  1  CaozSceneCustomAttribNode   1  0  1  0  0  +0.00000 +0.00000 +0.00000 +1.00000 +0.00000 +0.00000 +0.00000 0  0  -1 0  0  1  16 2  0  0  16 3  0  0  16 8  0  0  16 10 0  0  12 5  0
    with the red integer 0 being in the 16th indexed item (0-based indexing).
    Looks like it's seeing one of the 7 floats there. Go to the joints tab and
    select the third joint, bone_Rlowerleg, and click the comment button.
    If you could, copy and paste what you see there into a post.

    Which unit and which animation did you merge? I can try and duplicate
    what you did and see if I get the same error.

  3. #3
    Member Member LucioSettimioSevero's Avatar
    Join Date
    Apr 2008
    Location
    Venice, Italy
    Posts
    9

    Default Re: Problem with animation

    This is the comment of bone_Rlowerleg:

    Code:
    106 1  1  CaozSceneCustomAttribNode 1   1  0  1  0  0  +0.00000 +0.00000 +0.00000 +1.00000 +0.00000 +0.00000 +0.00000 0  0  -1 0  0  1  16 2  0  0  16 3  0  0  16 8  0  0  16 10 0  0  12 5  0  12 12 0
    The ms3d model is byzantine_lancers_lod1 and the animation is HR_lance_Attack_stab_centre_fail.

  4. #4
    Member Member KnightErrant's Avatar
    Join Date
    Jan 2007
    Location
    Huntsville, Alabama USA
    Posts
    458

    Default Re: Problem with animation

    Ok, I see what the problem is. The 106 was the tipoff. This is a slight
    variant of the .cas file format I hadn't seen before. The node name is

    "CaozSceneCustomAttribNode 1"

    that is, the 1 is part of the name but with a space in there. I actually see
    that 1 in the string you posted and it's shifting everything right by 1 index
    value. I'll try and make a work-around for this and post it.

    Edit: Well, literally a two-liner. Download a modified animationlibrary.py
    from here:

    http://rapidshare.com/files/10746497...ibrary.py.html

    The read cas part of animmerge now has a line:

    AttribString = AttribString.replace( ' ', '%' )

    to make the node name not have spaces in the comment. The write cas
    part of animextract now has a line:

    AttribString = AttribString.replace( '%', ' ' )

    to reverse the process. (Can't see it in html but the ' ' actually has a space
    between the single quotes.)
    Last edited by KnightErrant; 04-14-2008 at 18:28.

  5. #5
    Member Member LucioSettimioSevero's Avatar
    Join Date
    Apr 2008
    Location
    Venice, Italy
    Posts
    9

    Default Re: Problem with animation

    Works perfectly!


    Thank you, you are a genius !

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO