Talk:Protocol FAQ: Difference between revisions
Jump to navigation
Jump to search
imported>ConnerGDavis No edit summary |
imported>ConnerGDavis No edit summary |
||
| (91 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
I'm totally lost as to what your problem is. Store your packet types as bytes. Specify them in hex, i.e. when writing a packet, do buf.writeByte(0x32) rather than buf.writeByte(32). Wireshark should be your go-to tool for debugging - filter by tcp.port==25565, find a packet, right click > follow TCP stream [[User:Barneygale|Barneygale]] 08:07, 13 December 2011 (MST) | |||
:It makes sense that the error is caused by my sending it as normal decimal versus hexadecimal, but I could swear that I just fixed that problem. I'm going to continue messing with my packet handling structure and wireshark until I get this figured out...I am positive it's just me being stupid with packets. Thanks. I'm done posting here. | |||
- | |||
- | |||
It | |||
Latest revision as of 03:43, 14 December 2011
I'm totally lost as to what your problem is. Store your packet types as bytes. Specify them in hex, i.e. when writing a packet, do buf.writeByte(0x32) rather than buf.writeByte(32). Wireshark should be your go-to tool for debugging - filter by tcp.port==25565, find a packet, right click > follow TCP stream Barneygale 08:07, 13 December 2011 (MST)
- It makes sense that the error is caused by my sending it as normal decimal versus hexadecimal, but I could swear that I just fixed that problem. I'm going to continue messing with my packet handling structure and wireshark until I get this figured out...I am positive it's just me being stupid with packets. Thanks. I'm done posting here.