RuneScape Classic > Runescape Classic Server and Client Help
Understanding RSC protocol?
(1/3) >>>
CamHart:
I'm diving into trying to understand how to decode the rsc protocol used by the mopar classic client.

Can anyone describe the order of the data that gets sent?  Right now I'm looking at the very first packet that gets sent from the client, which from my understanding requests a session.  Here's my guess for what I'm seeing getting sent (byte by byte).


--- Code: ---0 ?
66 length of message
32 opcode - Session request
//rest of this is payload ?
0
89
111
117
32
109
117
115
116
32
101
110
116
101
114
32
98
111
116
104
32
97
32
117
115
101
114
110
97
109
101
32
97
110
100
32
97
32
112
97
115
115
119
111
114
100
32
45
32
80
108
101
97
115
101
32
116
114
121
32
97
103
97
105
110

--- End code ---
RSCRevolution:
length 2
opcode 1
payload -> read length amount bytes
length 2
opcode 1
payload

You can't assume that the data you receive is only one packet. It almost never is. What you're looking at is most likely session request and login data since session request can be maximum of 4 bytes.

Zach Knight:
MoparClassic client packet structure and packet assembly has been modified from original RSClassic and is a bad model to do this under.  I believe eXemplar/vortex's 204 is a better model to start with, or an un-refactored deob of 202 or 204 would be okay.  I've had to fix a lot of packet builders to match real Classic and can help others out fixing them to match Classic behavior fixing various bugs if requested.
CamHart:
RSCRevolution thanks for the tip and the breakdown.  I assume when you say length 2 you mean the length is the first 2 bytes (so the 0 and the 66).

Zach do you have the source code for a good 202/204 client?

Edit:  Is the client from https://github.com/Zlacki/OpenRSCD the correct one?  Appears to be so.
Ecko:
http://rscdump.com/eggsampler-rsc-204-d223fc6b77db.rar

heres a bunch of his stuff #039;s-collection.rar
Navigation
Message Index
Next page

Go to full version
Powered by SMFPacks SEO Pro Mod |