The original Elvarg had a bunch of custom networking code that was never finished, resulting in decoding randomly messing up sometimes. It was meant to be linked with the file-server but was never done. Every client packet also included its size, which in hindsight is quite inefficient.
I've spent a few hours today ripping out all the Client > Server networking code from a fresh deob into an updated version of the economy elvarg release, link:
https://www.mediafire.com/file/gqhoa...7_net.zip/file
I don't expect you to switch base but feel free to use it as reference, I've put most of the outgoing packets in one class (
PacketSender) for you to make it easier. I've also gotten rid of all the duplicate buffer classes and shit. Private message/Chat packets are now properly encoded & decoded aswell, a lot of server code had to be changed.
I put all packet sizes in an array in server's PacketDecoder, a few sizes might be incorrect as I remember some packets being a bit different from standard 317.
If you dc when doing something just make sure that the packet has the correct defined size in that array.
Server > Client should be changed to standard 317 aswell in the future but I don't think that matters too much right now. It shouldn't be causing problems.
Let me know how that is!