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

84 commits

Author SHA1 Message Date
glyphpoch
660b9dc1d7 Fix SendPropValue::Vector encoding when the float definition is NormalFloatVar
This is a follow up to PR #4. Handling for the Vector prop needs to be
fixed on the write/encoding side as well. When the float definition is
NormalFloatVar we need to skip writing the last component (z) to the
stream, since it's calculated from the first two components (x, y), and
just write out its sign.
2026-04-06 18:20:25 +01:00
b500fe772a update schemars to 1.0 2025-09-17 00:14:27 +02:00
Robin Appelman
6143e0289b Merge pull request 'Avoid sign-extending unsigned VarInts' (#5) from nocrex/parser:unsigned-varint-fix into master
Reviewed-on: https://codeberg.org/demostf/parser/pulls/5
2025-09-16 22:59:08 +02:00
3dcbf2a4cf fix sendprop roundtrip test 2025-09-16 22:58:29 +02:00
Nocrex
363821a545 Avoid sign-extending unsigned VarInts 2025-09-15 21:05:32 +02:00
glyphpoch
a8f379965c Fix SendPropValue::Vector parsing when the float definition is NormalFloatVar
When the float definition is NormalFloatVar, the last component (z)
should be skipped and calculated from the first two components (x and
y), otherwise we can read too many bits, causing decoding failures:
* 744d6eb003/src/engine/dt_encode.cpp (L119-L143)

This is what was causing the issue with demos recorded on the
jump_classics_a3 map:
* https://codeberg.org/demostf/parser/issues/2
2025-08-28 21:03:30 +01:00
fbaca025b6 feature gate write support, use hash to compare game event definitions 2025-07-15 16:06:23 +02:00
f7190dca0f clippy fixes 2025-07-13 23:40:28 +02:00
b6b55db0f9 better SendPropIdentifier des 2025-06-28 00:04:59 +02:00
331a9fe593 project critical 2025-06-26 16:56:52 +02:00
gcommer
32d7360433 Add SendPropIdentifier::from_const 2025-02-19 22:26:18 +01:00
dfd0b8ae90 cleanup sendprop array/vector comparisons 2024-04-07 16:48:19 +02:00
d9ff9d4662 fix schema for SendPropIdentifier 2024-02-02 19:39:56 +01:00
5e771e57c2 minor prop bit count cleanup 2023-12-21 21:27:57 +01:00
a561cbaf64 clippy fixes 2023-06-03 18:30:30 +02:00
fefda77884 serialize SendPropIndentifier as string to not run into js number rounding 2022-09-03 17:40:54 +02:00
a9a527fb5c more usefull Debug for SendProp 2022-04-10 19:33:51 +02:00
5c10ef1a0c more usable name types 2022-04-10 17:03:38 +02:00
b8d3540069 propnames 2022-04-09 18:50:47 +02:00
e678a35654 better sendpropvaluetype error 2021-07-29 19:15:46 +02:00
93b51bff70 schemars 2021-07-25 17:26:53 +02:00
43b7270fcd wip 2021-07-25 17:04:50 +02:00
03f8b8a424 add serde support for packets 2021-07-25 15:09:36 +02:00
f0bb2af3ca better packetentities 2021-07-22 22:29:46 +02:00
abfdbdcd9d fix inbounds check for bit coord 2021-07-22 17:22:01 +02:00
60f23647c5 fix signed varint encoding 2021-07-22 16:54:04 +02:00
00596f946f adjust tests 2021-07-22 14:58:43 +02:00
a59fee55ca fix sendprop definition encoding 2021-07-21 20:26:25 +02:00
67ea45433a signed varint fixes 2021-07-20 23:15:14 +02:00
a46f9edec2 bitcoord fixes 2021-07-20 22:01:59 +02:00
d00c1a8f32 more percice scale float? 2021-07-20 21:24:13 +02:00
577a998baa entity write fixes 2021-07-20 19:27:24 +02:00
4843fe0600 packetentities write? 2021-07-20 13:52:47 +02:00
bfd6d8caf9 sendprop writing 2021-07-19 19:53:51 +02:00
7fe9fd0fce dont store table name as string in sendpropdefinition 2021-07-18 20:31:38 +02:00
e901fca07a remove last Rc<String> usage 2021-07-18 20:16:03 +02:00
67e1a3ef32 write DataTablePacket 2021-07-18 16:40:25 +02:00
26e57ca59b ParseSendTable write 2021-07-18 16:18:34 +02:00
54f16e2031 bitbuffer update 2021-07-16 21:22:34 +02:00
5ec81e168f write wip 2021-07-15 22:41:58 +02:00
9a9bcdc9df some write progress 2021-07-13 20:42:59 +02:00
9f96257b80 const new for SendPropIdentifier 2021-07-11 15:07:50 +02:00
3b1f9b89b5 update dependencies 2021-05-22 17:44:29 +02:00
a3fc003437 shove changes_often into the enum 2021-02-13 16:55:22 +01:00
0a34318c65 normalize prop definitions during flatening 2021-02-13 16:39:11 +01:00
35519d5fce dont stop prop and table name in sendprop 2021-02-13 14:48:55 +01:00
df9a6a138e strongly typed sendpropdefinition 2021-02-13 01:25:03 +01:00
1258827b54 update dependencies 2021-02-12 23:21:27 +01:00
9f0acad361 cow stringtable 2020-12-06 17:42:15 +01:00
a4ddd586dd borrowed data 2020-12-06 00:55:54 +01:00