1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00
Commit graph

192 commits

Author SHA1 Message Date
Peter
a1b1db6f84 Fix parsing of SayText2 messages starting with color codes other than \x01
SayText2 messages can use a simplified format where the body is just
client, raw, and a single null-terminated colored text string, without
the usual kind/from/text fields. The parser detected this by peeking
the first byte after client and raw and checking if it was \x01 (color
code for default color), but the text can also start with other color
codes such as \x07 (6-char hex color). When this happened, the parser
would consume the entire message text as the kind string (falling back
to ChatAll), leaving the text and from fields empty.
2026-04-05 10:48:27 +01:00
fbaca025b6 feature gate write support, use hash to compare game event definitions 2025-07-15 16:06:23 +02:00
6ef2b1cea8 remove some bounds checks 2025-07-14 14:56:14 +02:00
f7190dca0f clippy fixes 2025-07-13 23:40:28 +02:00
b9d311f16f no need to allocate for 4 byte magic 2025-07-13 23:40:28 +02:00
15046e8744 medigun type, spy class data 2025-06-28 19:15:16 +02:00
809d2504f5 player condition handling 2025-06-26 00:32:52 +02:00
08a6c0c33d formatting 2025-05-25 18:12:17 +02:00
1fed4d8826 wip 2025-05-03 20:31:19 +02:00
4bd97e4afc handle older serverinfo messages 2025-04-29 21:41:54 +02:00
442c4963f6 handle older prefetch messages 2025-04-29 21:14:55 +02:00
2bad24dedd fmt+clippy 2025-02-19 20:42:56 +01:00
490ebae2c6 clippy fixes 2024-05-06 16:00:59 +02:00
dd3cd6364e fix schema for serde_repr usage 2024-05-06 15:47:02 +02:00
ab87b34de8 make gameevent parsing more backwards compatible 2024-04-16 22:51:38 +02:00
1d71aa8ba6 remove some slice indexing 2024-04-07 16:48:19 +02:00
e0ec7db236 proper baseline index type 2024-04-07 16:48:19 +02:00
a7a8318083 clippy fixes 2024-04-07 14:56:43 +02:00
217211f2fb show server send messages as chat 2024-03-29 16:26:43 +01:00
c08f30a60c explicit event type to event message 2024-01-29 22:54:45 +01:00
05d5a17861 don't store raw_props that we don't need 2023-12-21 21:27:57 +01:00
T
dd060754c9 Update tests to match new behavior 2023-06-24 00:04:19 +02:00
T
1d14def1d5 Set in_pvs flag to true on entity updates 2023-06-22 18:29:23 +02:00
a561cbaf64 clippy fixes 2023-06-03 18:30:30 +02:00
a7a46384ce additional hardening against mallformed demos 2022-12-13 22:06:07 +01:00
949cb452da expose get_baseline_props 2022-10-22 17:38:09 +02:00
e3cc24ef94 delta is a ServerTick 2022-10-22 17:34:46 +02:00
Narcha
2895b4c762
Changed UserMessage::SayText2 client to type EntityId 2022-10-16 21:08:14 +02:00
28de17a67c strictly distinguish between server and demo ticks 2022-09-17 15:32:18 +02:00
Narcha
872c799acd
Made usermessage fields public 2022-09-08 22:13:10 +02:00
29a7d35aee set delta for updates 2022-08-21 02:21:59 +02:00
aca7177374 dedup props with baselines 2022-08-06 17:02:10 +02:00
bae9acdd92 rework baseline prop handling 2022-08-06 15:19:56 +02:00
5d6b22ec57 more user messages 2022-06-19 19:18:47 +02:00
c7d83f6be0 better mallformed utf8 handling 2022-06-13 22:09:28 +02:00
f83be2375c player_count → player_slot 2022-06-10 14:17:06 +02:00
614dbb2f47 more tracing 2022-06-08 15:30:34 +02:00
67d08f06da var_bit improvements 2022-05-25 23:00:31 +02:00
850c8472b6 remove dbg 2022-05-01 15:51:20 +02:00
4f8bc1cc31 saytext client id 2022-04-29 20:41:36 +02:00
64b66a770c smaller baselines 2022-04-22 20:47:33 +02:00
528e4f2230 rename 2022-04-21 23:29:33 +02:00
626544b07e don't store baseline in baseline 2022-04-21 21:46:07 +02:00
d36a5516e5 usermessagetype eq 2022-04-21 19:22:43 +02:00
f72e84dc1a encode props in order 2022-04-18 13:07:17 +02:00
ec57a76101 baseline stuff 2022-04-16 14:30:59 +02:00
c90a7a3371 improved? baseline handling 2022-04-10 20:42:51 +02:00
079881ea6e dont use wrong class baseline? 2022-04-10 20:09:18 +02:00
2617d8a611 rename pvs 2022-04-10 18:43:54 +02:00
b8d3540069 propnames 2022-04-09 18:50:47 +02:00