Thread: [iClarity] Animations won't play!

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 [iClarity] Animations won't play! 
    k1ng 0f k1ngs
    Guest
    Hello everyone!
    I'm starting a server off the iClarity blank server base.
    And now, here I am, back with another problem .
    What my problem is, is that when I call the setAnimation(int i) method, nothing happens.
    Here's my call line:
    Code:
    client.setAnimation(827);
    And here's my setAnimation(int i) method:
    Code:
        public void setAnimation(int i){
            startAnimation(i);
        }
    And here's my startAnimation(int animIndex) method:
    Code:
        public void startAnimation(int animIdx){
            animationRequest = animIdx;
            animationWaitCycles = 0;
        }
    So if you faced any problems like this, or know what I need to do, please tell me.
    -And yes reputation will be given.
    Reply With Quote  
     

  2. #2  
    k1ng 0f k1ngs
    Guest
    Okay, guys I solved the problem! - BUT there's still a chance for you to get some reputation in this thread! Because that now it does the animation BUT now it keeps on doing it until i click another action.. Here's my performAnimation(int i) method:
    Code:
    	public void performAnimation(int i){
    		pEmote = i;
    		updateRequired = true;
    		appearanceUpdateRequired = true;
    	}
    And now here's my new setAnimation(int i) method:
    Code:
        public void setAnimation(int i){
            performAnimation(i);
        }
    -And yes reputation will still be given if you help me out!
    Reply With Quote  
     

  3. #3  
    Revolution
    Guest
    Maybe add pEmote = -1; after the updating?

    Regards,

    Brandon
    Reply With Quote  
     

  4. #4  
    k1ng 0f k1ngs
    Guest
    Quote Originally Posted by Revolution View Post
    Maybe add pEmote = -1; after the updating?

    Regards,

    Brandon
    Where do you mean, 'cause I already tried that at the end of performAnimation(int i) but that only, make him NOT do the animation..? And if you mean in this if statement:
    Code:
            if(appearanceUpdateRequired){
                updateMask |= 0x10;
            }
    I already tried that too, and that just makes him not do the animation.
    So please make yourself a little bit more clear
    Reply With Quote  
     

  5. #5  
    k1ng 0f k1ngs
    Guest
    Okay guys, here's a quick resume of what I did:
    I just added a resetAnimation() method that looks like this:
    Code:
        public void resetAnimation(){
            pEmote = 0x328;
            updateRequired = true;
            appearanceUpdateRequired = true;
        }
    This will simply set the players animation to his default stand position.
    And of course this is meant to be done AFTER he performed the animation.
    But if I call this method, in the performAnimation(int i) method, no animation will be performed what so ever.
    So please tell me where to call this method, and you'll get reputation!
    Last edited by k1ng 0f k1ngs; 10-20-2009 at 03:57 PM. Reason: typo
    Reply With Quote  
     

  6. #6  
    Registered Member
    CTucker's Avatar
    Join Date
    Oct 2008
    Posts
    2,422
    Thanks given
    263
    Thanks received
    281
    Rep Power
    343
    lol this is a noob way but it works, i only have like 5 mins tho

    add this in client.java

    Code:
    public int animationrofl = 0;
    now in this

    Code:
        public void resetAnimation(){
            pEmote = 0x328;
            updateRequired = true;
            appearanceUpdateRequired = true;
        }

    make it this

    Code:
        public void resetAnimation(){
    animationrofl = 0;
    if(animationrofl == 0) {
            pEmote = 0x328;
            updateRequired = true;
            appearanceUpdateRequired = true;
            animationrofl = 1;
        } else if(animationrofl == 1) {
            return;
        }
    }

    the return; might give a error if so just comment it out
    Reply With Quote  
     

  7. #7  
    Registered Member
    CTucker's Avatar
    Join Date
    Oct 2008
    Posts
    2,422
    Thanks given
    263
    Thanks received
    281
    Rep Power
    343
    oops mispost dont mess with resetanimation


    Code:
        public void startAnimation(int animIdx){
            animationRequest = animIdx;
            animationWaitCycles = 0;
        }
    needs to be


    Code:
        public void startAnimation(int animIdx){
    animationrofl = 0;
    if(animationrofl == 0) {
            animationRequest = animIdx;
            animationWaitCycles = 0;
            animationrofl = 1;
    } else if(animationrofl == 1) {
    return; 
    }
    }
    Reply With Quote  
     

  8. #8  
    Registered Member
    CTucker's Avatar
    Join Date
    Oct 2008
    Posts
    2,422
    Thanks given
    263
    Thanks received
    281
    Rep Power
    343
    Doing this will only make it loop once instead of a infinate loop as you had it going, adding the
    if(animationrofl == 0) { and the animationrofl =1; will just make it go once and then at the begging of the proccess it will set it abck to 0 so the void can complete again

    Sorry that i had to program this in such a shit ass cunfuck way but i was at school and the bell is fixing to ring i hope that you have a nice day and the repp++ will be nice c\because i do not have much of it on this account
    Reply With Quote  
     

  9. #9  
    k1ng 0f k1ngs
    Guest
    Quote Originally Posted by dds3030 View Post
    lol this is a noob way but it works, i only have like 5 mins tho

    add this in client.java

    Code:
    public int animationrofl = 0;
    now in this

    Code:
        public void resetAnimation(){
            pEmote = 0x328;
            updateRequired = true;
            appearanceUpdateRequired = true;
        }

    make it this

    Code:
        public void resetAnimation(){
    animationrofl = 0;
    if(animationrofl == 0) {
            pEmote = 0x328;
            updateRequired = true;
            appearanceUpdateRequired = true;
            animationrofl = 1;
        } else if(animationrofl == 1) {
            return;
        }
    }

    the return; might give a error if so just comment it out
    Okay, I placed the variable in Player.java instead and called it animationCount instaed of animationrolf . But still when I call the resetAnimation method at the bottom of performAnimation it doesn't do any animation.
    Reply With Quote  
     

  10. #10  
    k1ng 0f k1ngs
    Guest
    Quote Originally Posted by dds3030 View Post
    oops mispost dont mess with resetanimation


    Code:
        public void startAnimation(int animIdx){
            animationRequest = animIdx;
            animationWaitCycles = 0;
        }
    needs to be


    Code:
        public void startAnimation(int animIdx){
    animationrofl = 0;
    if(animationrofl == 0) {
            animationRequest = animIdx;
            animationWaitCycles = 0;
            animationrofl = 1;
    } else if(animationrofl == 1) {
    return; 
    }
    }
    Thanks, but you forgot
    Code:
    updateRequired = true;
    and
    Code:
    appearanceUpdateRequired = true;
    to make it update the player rendering - but I added to your reputation anyway
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •