you're reading the packet incorrectly
|
Fixed it:
I have this exact error:
Here are the lines of code:
Its all the same, just diff lines for me. It happens every time someone clicks an item defined in the class. If you could help me with this id be extremely grateful as I cant eat, drink, do herb, etc atm.
Thank you
you're reading the packet incorrectly
I saw u post on my profile, I didnt find a fix for it, sorry but its reading the packets incorrectly, all i know.
What did you do then?
My computer's graphic card crapped out last night (almost 9 years old) I gotta get a new computer now (YAY!) anyways it makes it harder to get online unless i can "find" a replacement around school...
post your clickitem stream indices
I will when I get home.
Edit: Do you mean these:
Code:public void processPacket(Client c, int packetType, int packetSize) { int itemSlot = c.getInStream().readUnsignedWordA(); int itemId = c.getInStream().readUnsignedWordBigEndian();
Nevermind, Harlan helped me over MSN
The client was sending 3 variables but the server wasnt reading one of them. This must have happened when I removed one because it was flagged as unused in eclipse.
Here is how it was fixed:
Thanks Harlan.Code:public void processPacket(Client c, int packetType, int packetSize) { @SuppressWarnings("unused") int interfaceId = c.getInStream().readSignedWordBigEndianA(); int itemSlot = c.getInStream().readUnsignedWordA(); int itemId = c.getInStream().readUnsignedWordBigEndian();
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |