1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-01 23:25:09 +02:00

improve packet error logging and handling

This commit is contained in:
p2r3
2025-08-23 01:50:14 +03:00
parent 313c31bf7d
commit 4a90979e2f
5 changed files with 74 additions and 65 deletions

View File

@@ -38,6 +38,13 @@
// player counts. For very many players, makes movement look jittery.
#define SCALE_MOVEMENT_UPDATES_TO_PLAYER_COUNT
// If defined, logs unrecognized packet IDs
// #define DEV_LOG_UNKNOWN_PACKETS
// If defined, logs cases when packet length doesn't match parsed byte count
#define DEV_LOG_LENGTH_DISCREPANCY
// If defined, log chunk generation events
#define DEV_LOG_CHUNK_GENERATION
#define STATE_NONE 0
#define STATE_STATUS 1
#define STATE_LOGIN 2