Thread: Packet ID's

Results 1 to 6 of 6
  1. #1 Packet ID's 
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    Can somebody tell me what the following packet(s) are? (Ill be adding more) I also need the reading stuff like
    inStream.readSignedWordBigEndianA();
    to get the parameters e.c.t. Ill use this to build a complete packet id list plus packet process method. Rep++ for awnsers

    121 - fixed
    53
    77
    78

    and in packet 214, what is the first
    Code:
    inStream.readUnsignedWordA();
    giving you? Its labeled as
    Code:
    moveWindow
    so is it the interface id?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Feb 2009
    Posts
    1,533
    Thanks given
    4
    Thanks received
    34
    Rep Power
    0
    121 has something to do with music, maybe loading or playing

    Code:
                if(pktType == 121)
                {
                    int j2 = inStream.readUnsignedWordD();
                    int k10 = inStream.readUnsignedWordC();
                    if(musicEnabled && !lowMem)
                    {
                        nextSong = j2;
                        songChanging = false;
                        onDemandFetcher.method558(2, nextSong);
                        prevSong = k10;
                    }
                    pktType = -1;
                    return true;
                }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Deadly Uzi's Avatar
    Join Date
    Jul 2008
    Posts
    994
    Thanks given
    177
    Thanks received
    87
    Rep Power
    362
    Download an Emulous source, look in PacketHandler.java...

    It has something like

    packetId(PACKET ID HERE, new CLASS FILE(Function));

    So like commands would be packetId(103, new Commands());
    Attempting to develop a multi-revision library. See it on GitHub.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    thanks for the awnsers. rep++

    ---------- Post added at 09:41 PM ---------- Previous post was at 08:57 PM ----------

    Quote Originally Posted by popbob View Post
    121 has something to do with music, maybe loading or playing

    Code:
                if(pktType == 121)
                {
                    int j2 = inStream.readUnsignedWordD();
                    int k10 = inStream.readUnsignedWordC();
                    if(musicEnabled && !lowMem)
                    {
                        nextSong = j2;
                        songChanging = false;
                        onDemandFetcher.method558(2, nextSong);
                        prevSong = k10;
                    }
                    pktType = -1;
                    return true;
                }
    can you give me these? im working with a really old stream.java lol
    readUnsignedWordD() and readUnsignedWordC()
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    bump
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Feb 2009
    Posts
    1,533
    Thanks given
    4
    Thanks received
    34
    Rep Power
    0
    Quote Originally Posted by Jad'z Core View Post
    thanks for the awnsers. rep++

    ---------- Post added at 09:41 PM ---------- Previous post was at 08:57 PM ----------



    can you give me these? im working with a really old stream.java lol
    readUnsignedWordD() and readUnsignedWordC()
    Code:
        public int readUnsignedWordC()
        {
            currentOffset += 2;
            return ((buffer[currentOffset - 2] & 0xff) << 8) + (buffer[currentOffset - 1] - 128 & 0xff);
        }
    
        public int readUnsignedWordD()
        {
            currentOffset += 2;
            return ((buffer[currentOffset - 1] & 0xff) << 8) + (buffer[currentOffset - 2] - 128 & 0xff);
        }
    I probably named them wrong, so you might already have these refractored on your client.
    Reply With Quote  
     


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
  •