Commit graph

115 commits

Author SHA1 Message Date
3067032f1b
use bare SectionProxy, remove UDP
bare SectionProxy won't throw KeyError when there's no [Treepuncher]
section in config and we're trying to access fields in it: we want
default value to be returned so it can fallback accordingly
2022-05-10 01:30:39 +02:00
f95f594967
added use_udp option 2022-05-09 23:53:50 +02:00
fdfe71b481
log a ton start/stop sequence
This is temporary: sometimes it gets stuck into stop() (I think?) so I'm
adding some debug prints everywhere so every instance can be used to
spot this issue
2022-05-06 10:35:24 +02:00
bbe668bcec
track HP changes 2022-05-05 10:30:57 +02:00
3548603578
track player abilities 2022-05-05 00:26:45 +02:00
b8477c3d22
use explicit deserialize 2022-05-05 00:19:40 +02:00
2885c3c270
changes for player type, install return instance, fixes 2022-05-04 23:35:46 +02:00
98d3967dfe
more limited jank fix 2022-04-29 00:45:46 +02:00
c2a9726ec6
install providers first 2022-04-28 13:46:14 +02:00
c29a03aeda
jank fix for 'Treepuncher' type hint 2022-04-28 13:44:17 +02:00
757be795c3
fix: lookup types with globalns 2022-04-28 13:18:18 +02:00
8b9848cdfb
useless commit spree: forgot I removed this 2022-04-28 13:00:52 +02:00
1ecb1c44e8
ops need to be typing strings 2022-04-28 12:59:52 +02:00
8503a36df4
ops xor was wrong 2022-04-28 12:57:40 +02:00
7c4c523562
print timestamp on stdout too 2022-04-28 12:54:23 +02:00
cfd5dd079a
added notifier/provider structure, moved addon out
now treepuncher has 1 notifier, which holds many providers for various
services. Each provider is an Addon, but not the Notifier itself.
Moved Addon and Notifier out of Treepuncher, and added type hints without
dependancy cycle with TYPE_CHECKING control
2022-04-28 01:57:19 +02:00
1307869d9c
Allow to enable logging of ignored packets 2022-04-27 13:30:19 +02:00
aeea271547
Merge branch 'microsoft' of github.com:alemidev/treepuncher into microsoft 2022-04-26 23:24:13 +02:00
61cfd72d1f
Assure notifier is initialized first 2022-04-26 23:23:46 +02:00
a3aacd6291
catch addon exc with bare traceback 2022-04-26 23:23:33 +02:00
Francesco Tolomei
b92791ce04
windows fix 2022-04-26 02:31:42 +02:00
91afbbc28a
fallback to string 2022-04-25 15:36:05 +02:00
f0c34376fa
keep and expose single loop 2022-04-25 04:43:15 +02:00
4e4bb50e4a
add sub logger to each addon 2022-04-25 04:43:00 +02:00
b73a352484
fix double logger 2022-04-24 03:21:45 +02:00
e52b4d5a37
hopefully clearer exception handling and _work fn 2022-04-23 22:09:53 +02:00
261d18f854
try/catch importing modules for help 2022-04-23 22:06:09 +02:00
086e59a0ce
sort union types so str comes last 2022-04-23 15:55:19 +02:00
977ce7a9de
reordered stop sequence 2022-04-23 15:22:04 +02:00
d5d1f8c036
added force_proto config, catch connection errors in ping 2022-04-23 15:18:11 +02:00
15c2fc09dc
bump version 2022-04-23 14:34:05 +02:00
5a652f1710
try to parse Union hints 2022-04-23 14:33:30 +02:00
6f53778fc9
typo :( 2022-04-20 00:20:24 +02:00
eefa1bf211
separated auth storage from sys storage 2022-04-20 00:02:24 +02:00
6a39e61e03
give self to default notifier 2022-04-19 12:06:21 +02:00
c6ff6a6bf7
oof fix 2022-04-19 11:59:55 +02:00
5527d50ff3
hopeful fix for self-stop 2022-04-19 11:54:13 +02:00
c87dbd63e2
set proto only if it was given 2022-04-19 11:46:35 +02:00
923dfa3532
readded ability to specify plugins via CLI 2022-04-19 11:31:37 +02:00
cdc5e9301f
CLI improvements 2022-04-19 04:05:38 +02:00
fa4f0dc58a
was importing wrong packet? 2022-04-19 03:54:27 +02:00
c0f698ac7d
oops run the events 2022-04-19 03:51:02 +02:00
4da1a9f834
load each addon only once but for real 2022-04-19 03:36:30 +02:00
6d64973c54
join_game_event holds args inside itself 2022-04-19 03:36:20 +02:00
db01f5d5b7
install notifiers first 2022-04-19 03:22:53 +02:00
148c809628
don't initialize notifier multiple times 2022-04-19 03:14:34 +02:00
6813181800
pass args kwargs in notifier 2022-04-19 02:36:21 +02:00
49fe4f185f
all the opposite 2022-04-19 02:26:40 +02:00
631ff0bc2c
fixed imports 2022-04-19 02:17:35 +02:00
3b9880ad6b
circular import 2022-04-19 02:14:46 +02:00