Hello all! Not sure if this is the right place to make this thread, but here it is anyway.
I've created an application that will proxy data back and forth from the client and server. Now I want to start fiddling with that data.
Although, when I read the packet id, sometimes it's not correct, like during the login process, it'll receive a 0x02 from the client, even though it doesn't send that packet during the login process.
At the moment, all I'm trying to do is prevent chat packets (0x02) that start with '!' from getting sent to the server. Now this is simple enough to do, but when I implement it, it seems to prevent me from logging into the server.
Can someone explain to me what I'm doing wrong here? I've been at this for days now.
I'm not sure if I can post external links or not, but I put the code on pastebin. I've also removed any references to the project name.
EDIT: I also need a non-blocking C# method for decoding VarInts, if anyone can point me in the right direction.
Thanks for the help. I'm testing it through a localhost connection, so encryption shouldn't be an issue. And I'm not trying to edit packets, I'm trying to prevent certain packets from being received at all. The actual proxy works fine, and I can login to the server and play through the application, my issue is handling packets.