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

94 commits

Author SHA1 Message Date
5ec81e168f write wip 2021-07-15 22:41:58 +02:00
af669d34df voice encoding 2021-07-13 22:36:25 +02:00
9a9bcdc9df some write progress 2021-07-13 20:42:59 +02:00
3ab0a1b325 0.2.5 2021-07-11 16:11:15 +02:00
5547e31810 0.2.4 2021-07-11 16:07:03 +02:00
c2fe8eca07 ignore empty text messages 2021-06-03 23:44:43 +02:00
bb79d269d8 add some sanity checks to compressed and decompressed size for snap encoded string tables 2021-05-23 14:09:28 +02:00
4d87f5b279 prevent panic on invalid compressed stringtable size
fixes #2
2021-05-22 17:35:27 +02:00
e2a631cef3 fix handling of some saytext2 messages 2021-02-16 17:13:27 +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
Tails8521
b7e6db1f4f made DemoTicker cloneable 2021-01-11 20:46:58 +01:00
e5e54de65d make parserstate static 2020-12-06 20:55:02 +01:00
25f24b63f6 remove the need to allocate all messages in a packet 2020-12-06 19:30:54 +01:00
9f0acad361 cow stringtable 2020-12-06 17:42:15 +01:00
a4ddd586dd borrowed data 2020-12-06 00:55:54 +01:00
992941b5e4 fmt 2020-11-30 20:31:30 +01:00
Lasse Dalegaard
63b2f2e599 Rename VoiceInit extra_data to sampling_rate
When quality is 255, an extra field is included in the VoiceInit
message. This field is the sampling rate for the voice codec selected.
This commit simply renames that field from `extra_data` as it is
currently known.

Interestingly, this field is present, but doesn't match when CELT HQ is
used. If `sv_voicecodec = vaudio_celt_high` on the server, the sampling
rate is still specified as 22050 Hz(as for CELT non-HQ) rather than the
expected 44100 Hz.  The client code will instead look for `vaudio_celt`
and `vaudio_celt_high` as codec name, and use these to to index a lookup
table that specifies the correct sampling rate and frame size. For
`vaudio_celt` 22050 Hz with 512 samples per frame is used, while
`vaudio_celt_high` uses 44100 Hz with 1024 samples per frame.
2020-03-27 13:07:22 +01:00
8f2c732945 fixes 2020-03-05 23:34:05 +01:00
c0117de169 adjust to bitbuffer rename 2020-02-13 00:02:43 +01:00
90c5e6c7f9 improved handling of unicode chat messages 2020-02-09 16:40:34 +01:00
a47336f709 extract world boundaries 2020-01-31 00:49:03 +01:00
66d568a65f fix some more overflow panics 2020-01-20 21:07:32 +01:00
6599a5d6d2 handle mallformed utf8 gameevent values 2020-01-20 12:30:05 +01:00
d952c5c4bc fix parsing demos that have game events before the definitions 2020-01-20 11:47:42 +01:00
3caadadb3b harden against dos with crafted input by limiting reserved vec/map size 2020-01-19 22:13:12 +01:00
e412399309 fix panic in log_base2 in malformed demos 2020-01-19 21:15:03 +01:00
e77770c780 fix panics with misformed demos and incorrect length values 2020-01-19 20:25:13 +01:00
f5504cd682 better skips 2020-01-19 14:50:35 +01:00
b7c3baee17 update to bitstream_reader 0.7 2020-01-07 23:26:37 +01:00
c4f9b7bfb8 switch from enum-primitive-derive to num_enum 2019-12-16 14:47:18 +01:00
11c7fb507f clippy fixes 2019-12-15 14:41:45 +01:00
ca1c67af75 remove seperate userstate struct 2019-12-15 01:17:34 +01:00
4cf1e92657 optimize packet/message format a bit 2019-10-11 22:07:36 +02:00
11140b149b box the 2 biggest message variants 2019-10-11 20:12:32 +02:00
8d6ef8e2fb some error cleanup 2019-10-05 13:12:25 +02:00
68416d6025 derive FromStr 2019-10-05 12:51:56 +02:00
b761a0aa1a reduce the size of the generated code 2019-09-03 23:14:24 +02:00
4bd352feb9 pass message to analysers by ref 2019-08-29 23:28:26 +02:00
8e39a1ed50 use jemalloc 2019-08-29 22:28:38 +02:00
6636eb4a93 reuse prop vector for entities 2019-08-29 21:16:38 +02:00
33b8d76e88 use more optimized way to store things in state 2019-08-29 16:47:32 +02:00
06d53573d4 compare definitions by index 2019-08-29 16:32:15 +02:00
bf65dffb13 save sendtables by classid
since we only really need to get them by classid
2019-08-29 02:39:21 +02:00
91e5b82f2f dont save full serverclass in entity, only store classid 2019-08-29 02:38:22 +02:00
b6f7ebb15a use vec for event definitions 2019-08-28 16:00:47 +02:00
0df7d0b394 entity fixes and test 2019-08-28 12:44:33 +02:00
66668e3e61 derive Display where possible 2019-08-27 21:43:46 +02:00
a7702856d0 wrap sendprop definition in an Rc 2019-08-27 00:48:43 +02:00