Commit graph

120 commits

Author SHA1 Message Date
934e00f112 stop faster 2021-12-01 13:29:21 +01:00
5705cb4231 ops this queue cannot be cleared 2021-12-01 13:29:21 +01:00
a4dd9c5672 timeout also clientside 2021-12-01 13:29:21 +01:00
84f291038e make mypy stop complaining and analyze this lib 2021-12-01 13:29:21 +01:00
5cc4c8d844 don't try to serialize optional fields 2021-12-01 13:29:21 +01:00
d1d1eb5ca1 TrailingByteArray won't fail on null fields 2021-12-01 13:29:21 +01:00
3451cefd5c handle timeout error 2021-12-01 13:29:21 +01:00
06d03266c9 added position to definitions but should be a type 2021-12-01 13:29:21 +01:00
72b4a5a43b finish processing packets upon disconnect 2021-12-01 13:29:21 +01:00
ce22e26458 catch exceptions in callbacks 2021-12-01 13:29:21 +01:00
f47d82733c improved parse_chat 2021-12-01 13:29:21 +01:00
0d43b4b5bf bump version, catch exc 2021-12-01 13:29:21 +01:00
f6835709b1 fixes 2021-12-01 13:29:21 +01:00
b4d93b3b2f of course it was a race condition 2021-12-01 13:29:21 +01:00
d82ba7a975 create also _tasks holder 2021-12-01 13:29:21 +01:00
3d88180892 oops call super constructor 2021-12-01 13:29:21 +01:00
540dbd5d90 moved common code into traits, added callbacks, made it cleaner? 2021-12-01 13:29:21 +01:00
c2e8e80806 added super basic callbacks hooks to server 2021-12-01 13:29:21 +01:00
23418c06d0 ... 2021-12-01 13:29:21 +01:00
163ab47f80 oof I really need to implement all types... 2021-12-01 13:29:21 +01:00
f513801132 super basic server impl 2021-12-01 13:29:21 +01:00
3cee338ca5 fixes, allow to run as server 2021-12-01 13:29:21 +01:00
a5b82cb8a6 tweaks to work for server too, catch and disconnect if ConnectionResetError 2021-12-01 13:29:21 +01:00
741ec33f1b some work on server impl 2021-12-01 13:29:21 +01:00
f35d927444 changed idea on dispatcher, some server scaffolding 2021-12-01 13:29:21 +01:00
a5b34b4d78 made things more generic for a mini server impl 2021-12-01 13:29:21 +01:00
f7ec83c8d5 ocd 2021-12-01 13:29:21 +01:00
a8240c8df3 first ugly impl of background callbacks with uuid dict 2021-12-01 13:29:21 +01:00
cf35e2cf24 safer disconnect sequence 2021-12-01 13:29:21 +01:00
1b72f94043 make client.run() block and run from sync 2021-12-01 13:29:21 +01:00
54f1c1d760 fix for on_packet 2021-12-01 13:29:21 +01:00
cd402f668a restructured project, improved modularity 2021-12-01 13:29:21 +01:00
f282ed6665 also catch PacketJoinWorld 2021-12-01 13:29:21 +01:00
1cd94a899a except registered callbacks individually 2021-12-01 13:29:21 +01:00
9327b77c3c log dimension changes 2021-12-01 13:29:21 +01:00
1b4430f71e Added some enums 2021-12-01 13:29:21 +01:00
7f3e58b7e6 impl integer byte array 2021-12-01 13:29:21 +01:00
d6aec8cfad fixes 2021-12-01 13:29:21 +01:00
fd4a4408d8 properly stop when credentials are invalid| 2021-12-01 13:29:21 +01:00
c6f3d1cacf small fixes 2021-12-01 13:29:21 +01:00
7b72287215 better handle auth exceptions 2021-12-01 13:29:21 +01:00
4b9b093cfe port is not required 2021-12-01 13:29:21 +01:00
699536fd78 better auth checking 2021-12-01 13:29:21 +01:00
d8dc04e663 better logging, catch some disconnect errors 2021-12-01 13:29:21 +01:00
dadf9ec013 slightly more descriptive log 2021-12-01 13:29:21 +01:00
b07a1d8a15 fix for <3.9 2021-12-01 13:29:21 +01:00
33396a0704 better starting, auto reconnect, respawn 2021-12-01 13:29:21 +01:00
d91840efc9 implemented authentication tokens 2021-12-01 13:29:21 +01:00
13254e61ae added helpers and chat parser 2021-12-01 13:29:21 +01:00
9f5daabee5 fix when compiling 2021-12-01 13:29:21 +01:00
9ebb1c2870 implemented a super barebones default launcher 2021-12-01 13:29:21 +01:00
d5c462d547 fix for types reading 2021-12-01 13:29:21 +01:00
0a688c251e implemented packet encryption 2021-12-01 13:29:21 +01:00
8e68f70e1d implemented core game logic 2021-12-01 13:29:21 +01:00
ba3c0e14e9 fixed VarInt reading, some definitions improvements 2021-12-01 13:29:21 +01:00
a485b25150 implemented some basic proto logic 2021-12-01 13:29:21 +01:00
aa92bfe3cd some work on packet flow 2021-12-01 13:29:21 +01:00
b09646deb1 implemented packet serialization with BytesIO 2021-12-01 13:29:21 +01:00
e4a1a374e4 added packet initializer and str/repr 2021-12-01 13:29:21 +01:00
093be0058f added scaffolding for state logic 2021-12-01 13:29:21 +01:00
2453689334 initial work on client 2021-12-01 13:29:21 +01:00
2af0466ee1 added barebones packet dispatcher 2021-12-01 13:29:21 +01:00
495fec6b39 moved compiler outside aiocraft, tweaks, WIP multiversion, fixed mergy compiler
also removed requests as dependancy
2021-12-01 13:28:59 +01:00
5b00b69216 added ability to read VarInt off socket 2021-12-01 13:28:59 +01:00
e8d27ca4b7 moved dispatcher up, some scaffolding done 2021-12-01 13:28:59 +01:00
eb4a3beac3 compiler fixes, made package installable 2021-12-01 13:28:59 +01:00
5cde07da56 some project sorting 2021-12-01 13:28:59 +01:00
c08f3b5153 added very basic protocol compiler 2021-12-01 13:28:59 +01:00
16c75882f1 moved out of protocol folder 2021-12-01 13:28:59 +01:00
894af39814 added initial types 2021-12-01 13:28:33 +01:00