Thread: Something I did...

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Something I did... 
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    Well I was looking at the differences between old and new engine player appearances and noticed that the Player Chat was done slightly different in the old engined clients the PLAYER WHO IS TALKING appears on the box by their own client where as in the new engine clients it is done via server sending, so all I did was remove the sending of the chat and sending it server, which removes the saving chat text etc.

    (RS2D is pFor or sumat)

    Just wondering if this is ok to keep or bad I should remove...?
     

  2. #2  
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Actually;

    317 protocol;

    When a player talks you have the pushMessage method sent, which is basically sending a String to the chatbox and a variable for which type of chat it should be, whether that be private messages or so on.

    Then;

    Code:
    stream.createFrame(4);
                            stream.writeWordBigEndian(0);
                            int j3 = stream.currentOffset;
                            stream.method425(i3);
                            stream.method425(j2);
    stream.writeBytes(stream.currentOffset - j3);
    First it creates frame 4 and sends it server side, this is followed by a dummy byte which is set to 0, i guess this is something to do with anti-macro by packet sending or something.

    It then reads both the chat effects and chat colour, this is then followed by a byte[] array which is the player chat converted.

    The reason it sends it to the server is so that it can be sent to every other player on the server in range.

    If you check against the 508 protocol it dosn't appear that anything has actually changed, the only difference is that the input is encypted.


    [Only registered and activated users can see links. ]
     

  3. #3  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    But I thought in the new engine that it dosent actually 'push the message' where as in the old it does?
     

  4. #4  
    Banned

    Join Date
    Dec 2007
    Age
    27
    Posts
    1,987
    Thanks given
    257
    Thanks received
    326
    Rep Power
    0
    in both the server controls it
     

  5. #5  
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Quote Originally Posted by Squire Michael View Post
    But I thought in the new engine that it dosent actually 'push the message' where as in the old it does?
    Don't get confused about the "pushMessage" method.

    In both protocols the client first places the text there on the chatbox for the player talking, then the data is sent to the server which sends it to the other players clients displaying it for them.


    [Only registered and activated users can see links. ]
     

  6. #6  
    Tom
    Tom is offline
    Registered Member
    Tom's Avatar
    Join Date
    Jul 2006
    Age
    27
    Posts
    1,148
    Thanks given
    8
    Thanks received
    86
    Rep Power
    902
    Quote Originally Posted by Clienthax View Post
    in both the server controls it
    Wrong. A while ago, Jagex even made a news post about how they changed the way messages are displayed. (Everyone went mad saying the new method created lag etc.)
    uh
     

  7. #7  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Tom View Post
    Wrong. A while ago, Jagex even made a news post about how they changed the way messages are displayed. (Everyone went mad saying the new method created lag etc.)
    That's true, now it's sent to the server before being displayed to all players, including the chatter, wereas before it was displayed to the chatter then the rest of the world when the server updated.

     

  8. #8  
    Banned

    Join Date
    Dec 2007
    Age
    27
    Posts
    1,987
    Thanks given
    257
    Thanks received
    326
    Rep Power
    0
    eg sending it to all players is done by server so i was right
     

  9. #9  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Zee best View Post
    Actually;

    317 protocol;

    When a player talks you have the pushMessage method sent, which is basically sending a String to the chatbox and a variable for which type of chat it should be, whether that be private messages or so on.

    Then;

    Code:
    stream.createFrame(4);
                            stream.writeWordBigEndian(0);
                            int j3 = stream.currentOffset;
                            stream.method425(i3);
                            stream.method425(j2);
    stream.writeBytes(stream.currentOffset - j3);
    First it creates frame 4 and sends it server side, this is followed by a dummy byte which is set to 0, i guess this is something to do with anti-macro by packet sending or something.

    It then reads both the chat effects and chat colour, this is then followed by a byte[] array which is the player chat converted.

    The reason it sends it to the server is so that it can be sent to every other player on the server in range.

    If you check against the 508 protocol it dosn't appear that anything has actually changed, the only difference is that the input is encypted.
    Isn't the chatbox also an interface now? Swat showed me on a 474 that its an interface lol

    [Only registered and activated users can see links. ]



     

  10. #10  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Scu11 View Post
    Isn't the chatbox also an interface now? Swat showed me on a 474 that its an interface lol
    Everything is an interface on 450+ (not literally..but you get the idea).

     

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
  •