Skip to content
Jak edited this page Aug 27, 2016 · 12 revisions

Welcome to the osrs-refactor-revision-1 wiki!

Here are a few steps to follow when starting off with a fresh deob to get it connected to your private server. It is suggested to follow these steps in the following order.

The basics

  1. Disable RSA
  2. Disable ISAAC
  3. Change the cache loading directory
  4. Identify ALL client-to-server packet sizes (takes a bit)
  5. Locate server-to-client packet size array (takes seconds compared to #4)

The login protocol

Investigate the Login protocol (TODO)

After you have completed the login protocol, when you login it will look this the below picture. You cannot move, and will disconnect within a couple of seconds. To stop the disconnection, you need to send the player update packet from the server to the client.

The Player Update protocol

See this page

Cache tools for revision 400+ file system

Free's cache library - based on Bubbletan's RSCEL library

Other

Notable protocol information which you might miss

  • Player update -> appearance mask -> size (byte) then packed data is written in reverse
  • 317 Npc updating -> the amount of bits used to write the 'npc type' value changes from 12-14 in some servers.
  • Clients will always disconnect if client packet sizes are not 100% correct.
  • When disabling RSA, disable it properly (only the scrambling) and don't disable the actual method. The method writes a byte of data to indicate the size (in bytes) for the block of RSA data.
  • The remaining data written during login included and after the players Username uses XTEA to scramble data further.