I have JavaOP2 loaded into eclipse.
I would like to change the packets that are sent to the server when a successful connection is made (I don't want 0x01) (Experimenting with some stuff -- and this will not be connecting to a BATTLE.NET server) and change how JavaOP2 responds to what the server sends. But I'm interested more in the sending part :P.
In what package can I find the classes to change this stuff? Thanks
BNetLogin
Found it. Thanks ;D
How do I register the packets that I am going to receive? If the packet starts with 0x1 do I
register.registerIncomingPacketPlugin(this, 1, null);
?
Because it's not working ;;
Ah. Somewhere in BNetPacket class or Buffer class, the buffer has FF added to it and something else before the actual data is placed in the buffer according to some comments in the code but I cannot find where it's done so I can remove the block of code. Anyone know where it is?
help ;;
Ron saved the day ;D
For the record, that's the difference between a Buffer and a BNetBuffer. BNetBuffer does the 0xFF, packet ID, and packet length, whereas Buffer is raw.
I think I wrote a BnlsBuffer too, with the same concept.