Hi all,
I'm attempting to create a server, never done this before so apologies for any noobiness lol.
I've been following this:
https://rsps.fandom.com/wiki/317_Protocol
It seems great and all, but as soon as it hits the player updating / map updating it seems off. As such I grabbed something called winterLove (I think that's it?) and checked how he creates the initial packet structure after the login procedure.
He begins by creating a frame using this method:
Code:
public void createFrame(int i)
{
buffer[currentOffset++] = (byte)(i + packetEncryption.getNextKey());
}
My first question is, as the server session key I'm receiving from my client isn't encrypted whatsoever (for real, it's just straight up byte[] = data type), can I omit the "packetEncryption.getNextKey" in my server?
If the above is possible, then the frame ID is just simply 73 in the first instance he uses for updating the map regions. So could I effectively just write two separate buffers to the socket like so(?) (73 seems to be the map and 81 the player initialisation):
Code:
[73, ...rest of buffer]
[81, ...rest of buffer]
Again, apologies if this is a little nooby I have very little idea how the client is functioning and the deob is well, nearly impossible for me to pinpoint what anything is haha. Any guidance/help is appreciated. I've not used any decryption for ISAAC / RSA as it just isn't present in my initial login packet so I presumed I don't need the seeded key to add to my frame ID's?
Appreciate all the help in advance,
Thanks!