P0nk
084e7b22fa
Consolidate HexTool methods and add more tests
2022-02-14 19:48:21 +01:00
P0nk
1daddbf302
Use HexFormat for converting from bytes to hex string and the other way round
2022-02-14 18:37:30 +01:00
P0nk
0e32f439fb
Add unit tests for HexTool
2022-02-14 18:20:02 +01:00
P0nk
503740542d
Fix issue with packet bytes reuse
...
Big oversight that caused broadcasted (packet sent to multiple clients)
packets to only be correct for the first receiver, for example when
3 players were in the same map.
2021-11-17 22:00:21 +01:00
P0nk
c841e9952b
Respect charset when loading scripts
2021-09-08 18:46:16 +02:00
P0nk
41cb6749c8
Make packet charset configurable
...
Better support for different language clients such as Thai or Korean
2021-09-08 08:26:34 +02:00
P0nk
4fd7adf547
Dump packet with ByteBufInPacket toString
2021-08-23 21:03:35 +02:00
P0nk
da2d8abc56
Handlers read from InPacket instead of SeekableLittleEndianAccessor
2021-08-22 22:10:19 +02:00
P0nk
8f6860d7d7
All packet creating methods now create Packet instead of byte[]
...
This commit got way too big...
- Remove deprecated methods for sending packets
- Favor OutPacket & Packet over MaplePacketLittleEndianWriter, LittleEndianWriter, and byte array
- Split up some packet creating methods into separate classes
2021-08-21 01:36:51 +02:00
P0nk
d8b0929975
Tweak OutPacket
2021-08-20 13:11:46 +02:00
P0nk
12a415e3d5
Add simple hex utils that delegate to Netty
...
The goal is to use libraries for this sort of common stuff
2021-07-15 23:48:47 +02:00
P0nk
72ff8d563b
Refactor packet string charset
2021-06-21 22:03:20 +02:00
P0nk
c4c5700d32
Add basic unit tests for ByteBufOutPacket
2021-06-21 21:45:30 +02:00
P0nk
4fd64884f2
Simplify getBytes and add tests for it
2021-06-21 21:45:06 +02:00
P0nk
6d02a95273
Simplify test setup for written bytes
2021-06-20 23:02:01 +02:00
P0nk
926371c9a7
Add unit tests for ByteBufInPacket
2021-06-20 22:53:20 +02:00