Thread: player updating? [REP++]

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 player updating? [REP++] 
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    Solved.
    ...
    Reply With Quote  
     

  2. #2  
    Registered Member
    Polaroid's Avatar
    Join Date
    Jul 2009
    Posts
    936
    Thanks given
    1,088
    Thanks received
    63
    Rep Power
    94
    Why bother, it sucks
    Reply With Quote  
     

  3. #3  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    Quote Originally Posted by Chuck_Norris__ View Post
    Why bother, it sucks
    help section rules:
    If you can't help, don't post.

    and on my opinion playing as dwarf looks cool. (might remove giants)
    ...
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2007
    Posts
    994
    Thanks given
    25
    Thanks received
    47
    Rep Power
    604
    Add it to the player appearance block client and server side should be pretty simple.
    Reply With Quote  
     

  5. #5  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    Quote Originally Posted by bluurr View Post
    Add it to the player appearance block client and server side should be pretty simple.
    U can always try doing it urself, and see if its simple.

    If it would be simple for me, I wouldnt post this here to request help.
    ...
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Feb 2007
    Posts
    994
    Thanks given
    25
    Thanks received
    47
    Rep Power
    604
    If you take sometime to research how say head icons work, you would see why I state its a simple task. Player class server and client side.
    Reply With Quote  
     

  7. #7  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    Quote Originally Posted by bluurr View Post
    If you take sometime to research how say head icons work, you would see why I state its a simple task. Player class server and client side.
    I do know how all that works, I even said that I have done that part server+client side... but the method for resizing just affects all the players, so that is the problem.

    + I did test if everything else works properly by making it draw the player's race above (like headicons), it worked fine for every player..
    ...
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2007
    Posts
    994
    Thanks given
    25
    Thanks received
    47
    Rep Power
    604
    Without code we can't tell you where you gone wrong.
    Reply With Quote  
     

  9. #9  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    Well this is the beginning of the updatePlayer: (everything fine here)
    Code:
    public void updatePlayer(Stream stream)
    	{
    		stream.currentOffset = 0;
    		anInt1702 = stream.readUnsignedByte();
    		headIcon = stream.readUnsignedByte();
    		skullIcon = stream.readUnsignedByte();
    		race = stream.readUnsignedByte();
    then on client.java, where headicons and stuff are I added this:
    Code:
    if(player.race == 1) {
    player.resize();
    }
    I tried doing the resizing like this: (this is wrong, endlessly loops, until minimum size, and affects all the players)
    Code:
    void resize(){
    long l = aLong1718;
    int j2 = 0;
    Model model_1 = (Model) mruNodes.insertFromCache(l);
    //model_1 = new Model(j2, aclass30_sub2_sub4_sub6s);
    model_1.method478(scalePlayerX, scalePlayerY, scalePlayerHeight);
    }
    ^Just tried to put everything needed from the other method here..
    ...
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Feb 2007
    Posts
    994
    Thanks given
    25
    Thanks received
    47
    Rep Power
    604
    in your player class add

    Code:
        private boolean raceUpdate;
        private int race;
    in the updateblock change your race to

    Code:
            int incomingRace = stream.readUnsignedByte();
            
            if(incomingRace != race) { //if we reciving a new race then update
            	race = incomingRace;
            	raceUpdate = true;
            }

    in your get player model its above method449 for me
    near the bottom find something like this

    Code:
            if(idle)
                return playerModel;
            
            Models model_2 = Models.lastModelUpdated;
    above it add



    Code:
            if(playerModel != null && raceUpdate) {
            	raceUpdate = false;
            	playerModel.method478(scalePlayerX, scalePlayerY, scalePlayerHeight);
            }
    and now it should work you will need to rename things to same as your client.
    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

Similar Threads

  1. Player Updating
    By tommo in forum Help
    Replies: 2
    Last Post: 03-22-2011, 12:01 AM
  2. player updating 613
    By Zᴀᴄʜ in forum Help
    Replies: 1
    Last Post: 10-12-2010, 01:05 PM
  3. 562 player updating
    By tapeman1 in forum Requests
    Replies: 0
    Last Post: 07-09-2010, 11:14 PM
  4. player updating help
    By destiny+ in forum Help
    Replies: 4
    Last Post: 09-09-2009, 08:57 AM
  5. Player Updating - Can not fix.
    By Colby in forum Help
    Replies: 9
    Last Post: 08-23-2009, 10:30 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •