Commit Graph

128 Commits

Author SHA1 Message Date
Jordan Cristiano 56e6eef1da Fixed missing initialization for voice data writer members. 2018-03-30 17:29:14 -04:00
Jordan Cristiano b0db8deafb Fixed linux and osx build. 2018-03-30 17:22:08 -04:00
Jordan Cristiano ee254b984f Added voice data writer. Rips voice chat from svc_VoiceData and writes it to separate wav files. 2018-03-30 17:17:16 -04:00
Jordan Cristiano ef898de18d Updated SVC_VoiceInit for latest TF2 version. 2018-01-11 01:40:50 -05:00
Jordan Cristiano 630351e7e5 Added SVC_CmdKeyValues and SVC_SetPauseTimed 2018-01-11 01:34:35 -05:00
Jordan Cristiano 134c8d0ed0 Doubled the max stringtable data size. Game code actually keeps the original value, but doubles it each time the read fails (max of 4 tries). 2018-01-11 01:33:46 -05:00
Jordan Cristiano b199c71ef0 Fixed SVC_BspDecal reading an incorrect number of bits. 2017-05-27 19:17:46 -04:00
Jordan Cristiano 2fe7b12f7e Fixed gcc build 2016-04-27 22:41:24 -04:00
Jordan Cristiano 77b0e9d81e Made pretty json output as default during development since it's easier on text rendering 2016-04-27 22:33:06 -04:00
Jordan Cristiano 963fc1ae4c WIP game event parsing 2016-04-27 22:31:33 -04:00
Gabriel Huber 99426dc6ef Changed scope of nBytes in StringTable_BitRead 2016-04-26 04:04:28 +02:00
Gabriel Huber 3a36da8a82 Removed unnecessary buffer zero assignment in StringTable_BitRead 2016-04-25 22:43:53 +02:00
Gabriel Huber 1ca5fbfd2c Simplified entryIndex assignment in StringTable_BitRead 2016-04-25 22:43:46 +02:00
Jordan Cristiano 861988e0be Fixed incorrect bitbuf parameters for wip stringtables parsing 2016-04-20 22:42:43 -04:00
Jordan Cristiano afad200209 WIP SVC_CreateStringTable data parsing 2016-04-20 21:18:56 -04:00
Jordan Cristiano a416145e27 Identified unknown SVC_CreateStringTable member as compressedData 2016-04-20 21:12:24 -04:00
Jordan Cristiano 3858162c9c Removed unused includes 2016-04-16 20:57:49 -04:00
Jordan Cristiano 7c9fc12b63 Reduced code duplication 2016-03-08 23:14:13 -05:00
Jordan Cristiano 462f53d912 Use old NET_MAX_PAYLOAD_BITS constant for SVC_CreateStringTable 2016-02-06 20:10:59 -05:00
Jordan Cristiano 2eb62f16e8 Fixed compilation with vs2013 2015-10-15 01:07:29 -04:00
Jordan Cristiano 3b11809be7 Changed demdata struct array to use std array 2015-10-15 01:06:51 -04:00
Jordan Cristiano e3ccd21314 Changed netdata struct array to use std array 2015-10-15 00:40:40 -04:00
Jordan Cristiano 372267d192 Rapidjson can only write up to 2^32 - 1 length strings by default, so change the api to reflect that 2015-08-31 23:07:51 -04:00
Jordan Cristiano 806f42dd84 Fixed mismatch of decl/def return types on ReadString 2015-08-31 22:51:15 -04:00
Jordan Cristiano efab1c3707 Fixed compilation of jsonfile on gcc/clang 2015-08-31 22:16:06 -04:00
Jordan Cristiano 0f471d9b7a Fixed incorrect invalid index check 2015-07-28 21:07:55 -04:00
Jordan Cristiano 42955b7e01 Fixed assigning a temporary to a non const reference 2015-07-15 23:25:22 -04:00
Jordan Cristiano 4e4186d49e Removed stats printout from con writer 2015-07-13 23:26:12 -04:00
Jordan Cristiano 0033d3aeba Added json reader utilities and implemented json reader functions to dem, net, and svc types 2015-07-13 23:25:49 -04:00
Jordan Cristiano 6be95005c5 Added resize function wrapper to Array. Changed redundant else if to else in Array reset 2015-07-13 23:21:06 -04:00
Jordan Cristiano d3b8873481 Renamed WriteAngles to WriteAngle. Made use of WriteAngle and WriteVector 2015-07-13 23:19:55 -04:00
Jordan Cristiano fed62e14a4 Forced json writer to output ascii multibyte sequences 2015-07-13 23:12:10 -04:00
Jordan Cristiano 11ed4883cb Added initialization for demo writer packet buffer 2015-07-13 23:10:57 -04:00
Jordan Cristiano f5d8d9bbf1 Signal to stop reading demo if invalid command is found 2015-07-13 23:08:05 -04:00
Jordan Cristiano 2bf16179ad Added WriteString to jsonfile which takes an std::string 2015-07-13 21:09:07 -04:00
Jordan Cristiano e959fb0334 Added WriteChar func to JsonWriterFile 2015-07-12 20:51:25 -04:00
Jordan Cristiano 236919cc4c Added net/dem msg create/destroy funcs to handler namespaces 2015-07-11 03:02:49 -04:00
Jordan Cristiano 1b90dc6298 Changed svc_menu type cast to signed 2015-07-11 02:23:18 -04:00
Jordan Cristiano ef50be7054 Replaced libb64-1.2.1 with cbase64-1.0 2015-07-09 20:52:06 -04:00
Jordan Cristiano 87a3d645e4 Commented out json verifier in main 2015-07-06 00:12:04 -04:00
Jordan Cristiano ab79444732 Added fflush to JsonWriterFile Flush function 2015-07-05 23:44:14 -04:00
Jordan Cristiano 2e597565bf Changed json output to an object stream based format 2015-07-05 23:42:08 -04:00
Jordan Cristiano 8e13067339 The last byte of stv demos is cut off, so do that here too 2015-06-30 01:34:55 -04:00
Jordan Cristiano 7bdbce9aef Fixed naming in dem_stringtables structure 2015-06-29 23:31:48 -04:00
Jordan Cristiano cfc6498c25 Fixed not copying trailing bits from dem_stringtables 2015-06-29 23:31:26 -04:00
Jordan Cristiano 65089f3585 Fixed missing bitfile header 2015-06-28 17:32:34 -04:00
Jordan Cristiano 1d3656b24b Implemented JsonWriter io class 2015-06-26 01:11:36 -04:00
Jordan Cristiano 45da2a9b2d Made JsonWriterFile flush on destruct 2015-06-26 01:10:46 -04:00
Jordan Cristiano 121dd61e9a Implemented demmessage json writer funcs 2015-06-26 01:06:29 -04:00
Jordan Cristiano 9696646576 Added demowriter check for num bits written being a multiple of 8 2015-06-25 09:02:08 -04:00