Thread: RS3 Update Protocol Change

Results 1 to 7 of 7
  1. #1 RS3 Update Protocol Change 
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    idk when this was changed but im gonna just post a bit of code for the people that want to know the change in the update server stuff and want to work on something like 876. i wont spoon feed it tho

    rs changed the sector length or whatever u kids call it. its an easy fix for converting matrix to current runescape.

    Code:
    					Buffer buffer = (request.buffer);
    					if (null == buffer) {
    						int numRead = 5 - -673602973 * archiveData.offset;
    						if (numRead > available)
    							numRead = available;
    						stream.read((archiveData.buffer), (archiveData.offset) * -673602973, numRead, (byte) -126);
    						if (0 != xorValue) {
    							for (int i_13_ = 0; i_13_ < numRead; i_13_++)
    								archiveData.buffer[(archiveData.offset * -673602973) + i_13_] ^= xorValue;
    						}
    						archiveData.offset += -1195249845 * numRead;
    						if (archiveData.offset * -673602973 >= 5) {
    							archiveData.offset = 0;
    							int compressionId = archiveData.readUnsignedByte(-797533122);
    							int length = archiveData.readUnsignedInt(100691186);
    
    							int compressionLength = 5;
    							if (compressionId != Compression.UNCOMPRESSED.method82())
    								compressionLength = 9;
    							buffer = request.buffer = (new Buffer(request.extraBytes + (compressionLength + length)));
    							buffer.writeByte(compressionId, (short) -20281);
    							buffer.writeInt(length, (byte) 15);
    							sectorReadCount += 753494077;
    						}
    					} else {
    						int length = (buffer.buffer.length - request.extraBytes);
    						int numRead = 102400 - sectorReadCount * -118871191;
    						if (numRead > length - buffer.offset * -673602973)
    							numRead = (length - buffer.offset * -673602973);
    						if (numRead > available)
    							numRead = available;
    						stream.read((buffer.buffer), -673602973 * (buffer.offset), numRead, (byte) 1);
    						if (xorValue != 0) {
    							for (int i_19_ = 0; i_19_ < numRead; i_19_++)
    								buffer.buffer[(buffer.offset * -673602973 + i_19_)] ^= xorValue;
    						}
    						buffer.offset += -1195249845 * numRead;
    						sectorReadCount += numRead * -1567288103;
    						if (buffer.offset * -673602973 == length) {
    							request.removeFromQueue(1561442003);
    							request.inProgress = false;
    							request = null;
    						} else if (102400 == -118871191 * sectorReadCount) {
    							sectorReadCount = 0;
    							request = null;
    						}
    					}
    image just in case



    happy scaping and merry christmas

    EDIT: there are more changes to the update server, not posting though.
    Attached image
    Attached image
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Reverse Engineering

    freeezr's Avatar
    Join Date
    Dec 2011
    Posts
    1,067
    Thanks given
    288
    Thanks received
    444
    Rep Power
    401
    Note, this actually changed around 864 iirc, but no one release info anymore

    Attached image
    Reply With Quote  
     

  4. #3  
    Registered Member
    Join Date
    Apr 2016
    Posts
    139
    Thanks given
    30
    Thanks received
    38
    Rep Power
    66
    Quote Originally Posted by Leon_ View Post
    Note, this actually changed around 864 iirc, but no one release info anymore
    865 was when it got updated. Thats when i first realised it while updating my server
    Reply With Quote  
     

  5. #4  
    lol k


    Join Date
    Mar 2016
    Posts
    301
    Thanks given
    114
    Thanks received
    143
    Rep Power
    414
    Quote Originally Posted by _jordan View Post
    idk when this was changed but im gonna just post a bit of code for the people that want to know the change in the update server stuff and want to work on something like 876. i wont spoon feed it tho

    rs changed the sector length or whatever u kids call it. its an easy fix for converting matrix to current runescape.

    Code:
    					Buffer buffer = (request.buffer);
    					if (null == buffer) {
    						int numRead = 5 - -673602973 * archiveData.offset;
    						if (numRead > available)
    							numRead = available;
    						stream.read((archiveData.buffer), (archiveData.offset) * -673602973, numRead, (byte) -126);
    						if (0 != xorValue) {
    							for (int i_13_ = 0; i_13_ < numRead; i_13_++)
    								archiveData.buffer[(archiveData.offset * -673602973) + i_13_] ^= xorValue;
    						}
    						archiveData.offset += -1195249845 * numRead;
    						if (archiveData.offset * -673602973 >= 5) {
    							archiveData.offset = 0;
    							int compressionId = archiveData.readUnsignedByte(-797533122);
    							int length = archiveData.readUnsignedInt(100691186);
    
    							int compressionLength = 5;
    							if (compressionId != Compression.UNCOMPRESSED.method82())
    								compressionLength = 9;
    							buffer = request.buffer = (new Buffer(request.extraBytes + (compressionLength + length)));
    							buffer.writeByte(compressionId, (short) -20281);
    							buffer.writeInt(length, (byte) 15);
    							sectorReadCount += 753494077;
    						}
    					} else {
    						int length = (buffer.buffer.length - request.extraBytes);
    						int numRead = 102400 - sectorReadCount * -118871191;
    						if (numRead > length - buffer.offset * -673602973)
    							numRead = (length - buffer.offset * -673602973);
    						if (numRead > available)
    							numRead = available;
    						stream.read((buffer.buffer), -673602973 * (buffer.offset), numRead, (byte) 1);
    						if (xorValue != 0) {
    							for (int i_19_ = 0; i_19_ < numRead; i_19_++)
    								buffer.buffer[(buffer.offset * -673602973 + i_19_)] ^= xorValue;
    						}
    						buffer.offset += -1195249845 * numRead;
    						sectorReadCount += numRead * -1567288103;
    						if (buffer.offset * -673602973 == length) {
    							request.removeFromQueue(1561442003);
    							request.inProgress = false;
    							request = null;
    						} else if (102400 == -118871191 * sectorReadCount) {
    							sectorReadCount = 0;
    							request = null;
    						}
    					}
    image just in case



    happy scaping and merry christmas
    how much did elveron pay ya?
    Reply With Quote  
     

  6. #5  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    Quote Originally Posted by scape View Post
    how much did elveron pay ya?
    its none of your business but if you must know, im not being paid for anything.
    Attached image
    Attached image
    Reply With Quote  
     

  7. #6  
    lol k


    Join Date
    Mar 2016
    Posts
    301
    Thanks given
    114
    Thanks received
    143
    Rep Power
    414
    Quote Originally Posted by _jordan View Post
    its none of your business but if you must know, im not being paid for anything.
    oh so guessing you're on the team then?
    Reply With Quote  
     

  8. #7  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    Quote Originally Posted by scape View Post
    oh so guessing you're on the team then?
    im just helping out
    Attached image
    Attached image
    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. The Update Protocol
    By Method in forum Informative Threads
    Replies: 151
    Last Post: 05-28-2016, 03:26 PM
  2. 317+ Update protocol
    By Tom in forum Informative Threads
    Replies: 25
    Last Post: 03-09-2011, 07:14 PM
  3. Update Protocol
    By Mrquarterx in forum Help
    Replies: 1
    Last Post: 12-13-2010, 09:11 PM
  4. 400+ update protocol opcodes
    By Anadyr in forum Help
    Replies: 3
    Last Post: 12-07-2010, 03:54 AM
  5. NIO Networking Base + RS Update Protocol
    By 'Conner in forum Downloads
    Replies: 17
    Last Post: 11-14-2010, 12:41 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
  •