Thread: Matrix 838

Results 1 to 4 of 4
  1. #1 Matrix 838 
    Hollow Realm

    Join Date
    Sep 2013
    Posts
    295
    Thanks given
    12
    Thanks received
    11
    Rep Power
    1
    Not really sure where to begin. I know that the source has basically nothing added, chat is broken etc. I fixed chat for normal players, working on admins and what not, then I came across this.

    Code:
    [WorldPacketsDecoder] Missing packet 73, expected size: 4, actual size: 4
    What does this mean? I'm clueless when it comes to packets since I haven't really dealt with them yet.

    I noticed something that whenever I moved my camera, it would say packet 7 missing, so I put the packet of Move_Camera to 7 and I stopped getting that message. I'm not sure if it's sending that error because its missing a packet, and because it received a packet that the message stopped or what. :c

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    652
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by Naturality View Post
    Not really sure where to begin. I know that the source has basically nothing added, chat is broken etc. I fixed chat for normal players, working on admins and what not, then I came across this.

    Code:
    [WorldPacketsDecoder] Missing packet 73, expected size: 4, actual size: 4
    What does this mean? I'm clueless when it comes to packets since I haven't really dealt with them yet.

    I noticed something that whenever I moved my camera, it would say packet 7 missing, so I put the packet of Move_Camera to 7 and I stopped getting that message. I'm not sure if it's sending that error because its missing a packet, and because it received a packet that the message stopped or what. :c
    This is the default message displayed when the packet is not handled. So basically, add the end of all the packet decoded there is:

    Code:
    } else {
        Logger.log("WorldPacketsDecoder", "Missing packet....");
    }
    A packet is a block of information that's exchanged between the client and the server in both directions.

    So basically what's happening is the client is sending packet 73 and the server doesn't know what to do with it. So it's printing out that message. To identify the packet parameters use this: [Only registered and activated users can see links. ]
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Hollow Realm

    Join Date
    Sep 2013
    Posts
    295
    Thanks given
    12
    Thanks received
    11
    Rep Power
    1
    Quote Originally Posted by clem585 View Post
    This is the default message displayed when the packet is not handled. So basically, add the end of all the packet decoded there is:

    Code:
    } else {
        Logger.log("WorldPacketsDecoder", "Missing packet....");
    }
    A packet is a block of information that's exchanged between the client and the server in both directions.

    So basically what's happening is the client is sending packet 73 and the server doesn't know what to do with it. So it's printing out that message. To identify the packet parameters use this: [Only registered and activated users can see links. ]
    Thank you for this, I read your post about reading/writing bytes. I somewhat understand the writing part, but I'm not too sure about the reading part.
    Confused on actually how to read it on the server side.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    652
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by Naturality View Post
    Thank you for this, I read your post about reading/writing bytes. I somewhat understand the writing part, but I'm not too sure about the reading part.
    Confused on actually how to read it on the server side.
    It's usually the same exact method but with "read" instead of "write". Just look at the methods. Example it says:

    Code:
    class330_sub34.aClass330_Sub46_Sub2_7729.writeUnsignedShort(i_9_, (byte) 21);
    class330_sub34.aClass330_Sub46_Sub2_7729.writeUnsignedByte(Class356.method4190((byte) 3) ? 1 : 0, (byte) 83);
    on the client, you get this code after removing the junk:

    Code:
    writeUnsignedShort(X);
    writeUnsignedByte(X);
    Now, on the server, all you have to do is read:

    Code:
    stream.readShort();
    stream.readByte();
    in the packet decoder.

    You can confirm your results by comparing the write/read of both client and server:

    Code:
    public void writeUnsignedShort() {
        buffer[(offset += 323600977) * -824785231 - 1] = (byte) (i >> 8);
        buffer[(offset += 323600977) * -824785231 - 1] = (byte) i;
    }
    
    public void readUnsignedShort() {
        return (readUnsignedByte() << 8) + readUnsignedByte();
    }
    Without the junk it gives:

    Code:
    write: i >> 8 + i
    read:  i << 8 + i
    The ">>" 8 encrypted the "i" so it needs to be "<<" in return. We can see that everything is in order so "readUnsignedShort" is the read equivalent of "writeUnsignedShort".
    Project thread
    [Only registered and activated users can see links. ]
    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

Similar Threads

  1. Matrix 838 Legacy/RS3
    By Makar in forum Downloads
    Replies: 176
    Last Post: 04-25-2018, 04:00 PM
  2. Replies: 9
    Last Post: 07-27-2016, 06:26 PM
  3. 838 Matrix World Eoc/Legacy only
    By Brazilian in forum Help
    Replies: 2
    Last Post: 10-06-2015, 09:29 PM
  4. [838 Matrix] In combat render emote
    By Singularities in forum Help
    Replies: 4
    Last Post: 06-04-2015, 03:39 PM
  5. New Sig: Matrix
    By Wafflez in forum Showcase
    Replies: 7
    Last Post: 11-03-2007, 03:46 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •