Commit graph

243 commits

Author SHA1 Message Date
ChillerDragon 86d591bbdd Show flags when printing chunk header 2023-03-25 16:09:53 +01:00
ChillerDragon 1574c64d06 huffman: please mypy and pylint 2023-03-25 16:06:44 +01:00
ChillerDragon c477f736cb Add @edg-l's huffman from TeeAI 2023-03-25 14:41:51 +01:00
ChillerDragon 51dc981acf Release 0.2.0 2023-03-25 14:27:00 +01:00
ChillerDragon 0988cff4c9 Refactor to prepare proper msg unpacking
Rename `name` -> `message_name`
Replaced `GameMessage` and `SysMessage` with duck typed `NetMessage`
Split up packet.py in multiple files
2023-03-25 14:22:45 +01:00
ChillerDragon d96367374e Use map change as the first sample message 2023-03-23 13:29:44 +01:00
ChillerDragon 60ef395086 Release 0.1.2 2023-03-19 18:24:03 +01:00
ChillerDragon be2ffcc690 Fix import 2023-03-19 18:22:45 +01:00
ChillerDragon bdfa4bf2a0 Relative imports are broken 2023-03-19 18:13:18 +01:00
ChillerDragon 17b99ef262 Release 0.1.1 2023-03-19 18:07:02 +01:00
ChillerDragon cec1edcaa5 First draft of chunk header parsing 2023-03-19 18:03:13 +01:00
ChillerDragon 32ba361c04 Thoughts about packers 2023-03-19 14:34:51 +01:00
ChillerDragon 1a0e195060 Add tests for int unpacker 2023-03-19 14:24:44 +01:00
ChillerDragon bf28581b44 Port C unpacker code letter by letter to python 2023-03-19 11:57:10 +01:00
ChillerDragon 51b0b6ca9a Note about immaturity 2023-03-19 11:44:40 +01:00
ChillerDragon 845845b7b9 Some more semver thoughts 2023-03-19 11:41:49 +01:00
ChillerDragon 6240dd36e5 Polish and test int packer 2023-03-19 11:40:15 +01:00
ChillerDragon 10c089debc Commit int packer with dbg to keep it in history
Results match expectation
2023-03-19 11:24:25 +01:00
ChillerDragon dd888341d3 Add chunk parsing tests 2023-03-18 11:47:20 +01:00
ChillerDragon a58ae3aaca Some changelog helpers 2023-03-18 10:29:28 +01:00
ChillerDragon 8bdf5ce49c Release 0.1.0 2023-03-18 10:10:02 +01:00
ChillerDragon 2ca10fc4f5 drunk devs 2023-03-18 10:09:24 +01:00
ChillerDragon ba12559348 Nicer release script format 2023-03-18 10:07:51 +01:00
ChillerDragon c8f8ca6a21 Break api packet.parse -> packet.parse7
Rename the main `twnet_parser.packet.parse()` method.
Into more explicit `parse6()` and `parse7()`
2023-03-18 10:04:11 +01:00
ChillerDragon 03efdeba83 Thoughts about semver 2023-03-18 10:01:24 +01:00
ChillerDragon f6a1eb3560 Define scope of the project 2023-03-18 09:35:43 +01:00
ChillerDragon 9c3cbbc105 Do not abstract away versions
This library should not try to detect versions
because the user of the library might not want to do that
and it has performance implications

A user of this library should either know which protocol
version they expect to send and receive or they should just
try the 0.6 parser and then the 0.7 parser of this library
and decide them selfs which version to detect
2023-03-18 09:10:56 +01:00
ChillerDragon 6f2a9eda51 Some thoughts on edge cases and performance 2023-03-18 09:08:12 +01:00
ChillerDragon 8c78cdc759 Rename Header to PacketHeader
This avoids a conflict with ChunkHeader
2023-03-18 08:50:49 +01:00
ChillerDragon e3d026763a Fix dev setup command 2023-03-16 17:08:27 +01:00
ChillerDragon 54f0f8cb7c Push commit & tag and check branch in release script 2023-03-16 16:59:59 +01:00
ChillerDragon fa0751790e Getting started as a lib user now works :) 2023-03-16 16:56:37 +01:00
ChillerDragon 24758fbaa9 Release 0.0.2 2023-03-16 16:52:27 +01:00
ChillerDragon 18f5c146b4 Overengineer release script 2023-03-16 16:51:57 +01:00
ChillerDragon 9b264eb45d Document first publish (something went wrong xd) 2023-03-16 15:05:27 +01:00
ChillerDragon a41a59eda8 Release 0.0.1 2023-03-16 14:50:20 +01:00
ChillerDragon 0abf651b87 Add tests 2023-03-16 14:04:48 +01:00
ChillerDragon a0c2b54651 Parse 0.7 packet header 2023-03-16 12:08:02 +01:00
ChillerDragon d516b591b0 First actual parse 2023-03-16 10:26:36 +01:00
ChillerDragon a3c3343c42 Add pylint 2023-03-14 23:03:32 +01:00
ChillerDragon 3ba7403ad4 First draft 2023-03-14 22:58:06 +01:00
ChillerDragon 37786f7a48 POC 2023-03-12 22:12:07 +01:00
ChillerDragon 4300602154 Init 2023-03-12 21:41:14 +01:00