Posted September 30, 20168 yr comment_3768 Hey guys, Holy crap I can't actually believe I am writing another help thread, feel like a noob haha. Although I never dealt with this kind of error so here we go. It basically talks about unhandled packets and stuff. I tried adding a gamble system and it gives me the error when I ask to gamble another player. Here are the errors: This is the hidden content, please Sign In or Sign Up And all I added were those packets: This is the hidden content, please Sign In or Sign Up And this is GambleResponse: This is the hidden content, please Sign In or Sign Up
September 30, 20168 yr comment_3769 5 minutes ago, mathy said: Hey guys, Holy crap I can't actually believe I am writing another help thread, feel like a noob haha. Although I never dealt with this kind of error so here we go. It basically talks about unhandled packets and stuff. I tried adding a gamble system and it gives me the error when I ask to gamble another player. Here are the errors: This is the hidden content, please Sign In or Sign Up And all I added were those packets: This is the hidden content, please Sign In or Sign Up And this is GambleResponse: This is the hidden content, please Sign In or Sign Up Add me on my newer skype Skype: gear.haze i can maybe help gotta look at the code more.
September 30, 20168 yr comment_3857 Make sure that your actually reading the full packet. Otherwise you'll be incorrectly reading the next packet in the queue. Client -> Server buffer.writeShort(value); buffer.writeByte(value2); Server int value = buffer.readShort(); byte value2 = buffer.readByte();
September 30, 20168 yr Author comment_3875 2 hours ago, Arithium said: Make sure that your actually reading the full packet. Otherwise you'll be incorrectly reading the next packet in the queue. Client -> Server buffer.writeShort(value); buffer.writeByte(value2); Server int value = buffer.readShort(); byte value2 = buffer.readByte(); I've been able to get more info on the error, these are the packet sizes in client.java: This is the hidden content, please Sign In or Sign Up As you can see, for example, 15 has a size of 4 but in the error it says that its size is 0..
September 30, 20168 yr comment_3880 1 hour ago, mathy said: I've been able to get more info on the error, these are the packet sizes in client.java: This is the hidden content, please Sign In or Sign Up As you can see, for example, 15 has a size of 4 but in the error it says that its size is 0.. I see your problem. Line with the // 140, count them from the start. 140, 141, 142, 143, make 142 and 143 with a packet size of 2.
October 1, 20168 yr Author comment_3898 3 hours ago, Arithium said: I see your problem. Line with the // 140, count them from the start. 140, 141, 142, 143, make 142 and 143 with a packet size of 2. I did, the interface wont come up so I set it to 4, still nothing then to 6, now it shows up but I can't put up any items on the interface so I set it to 8, same thing then 10 and I stopped there lol
October 1, 20168 yr comment_3907 You only need a packet size of 2 since this is all your reading. This is the hidden content, please Sign In or Sign Up
October 1, 20168 yr Author comment_3909 1 minute ago, Arithium said: You only need a packet size of 2 since this is all your reading. This is the hidden content, please Sign In or Sign Up Idk how to show you what it does.. Mind adding me on Skype ? sakoofortin Edited October 1, 20168 yr by mathy
Create an account or sign in to comment