Commit Graph
100 Commits
Author SHA1 Message Date
Jordan Cristiano 630cf8cded Fixed celt include dir structure. 2018-02-12 23:47:50 -05:00
Jordan Cristiano c42a9538ff Fixed subdirs not being included in external projects. 2018-02-12 22:29:11 -05:00
Jordan Cristiano 585f370d43 Added celt v0.11.1 2018-02-12 21:55:28 -05:00
Jordan Cristiano 6d8ed3b5c6 Split external libs into their own vs projects. 2018-02-12 21:08:01 -05:00
Jordan Cristiano ef09958aa5 Fixed vs2017 build 2018-01-11 02:03:22 -05: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 6912d26add Travis CI for osx 2017-05-27 17:42:45 -04:00
Jordan Cristiano bfa09d80f2 Added vs2017 project generation 2017-05-24 23:27:23 -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
Jordan Cristiano 9dcda5054c More fixes for bitbuf initialization (missed from previous commit) 2016-04-27 22:04:59 -04:00
Jordan Cristiano 6c4f8e634a Fixed initialization for bitbuf m_pDebugName and m_errorHandler 2016-04-24 22:12:05 -04:00
Jordan Cristiano 4c5323dc64 Fixed accidentally removing DWordSwap on non vc++ 2016-04-24 21:22:26 -04: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 74530ec287 Updated build script for snappy 2016-04-16 20:56:57 -04:00
Jordan Cristiano cc6ad7c44f Added vs2015 premake bat 2016-03-13 00:09:54 -05:00
Jordan Cristiano 2dfbf0f301 Updated windows version of premake to alpha 8 2016-03-13 00:09:37 -05:00
Jordan Cristiano 27319d4532 Added snappy-1.1.3 compression library 2016-03-12 17:08:51 -05: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 67d3188a58 Fixed json_checker warnings from vs2013 2015-10-15 01:08:02 -04: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 8ef2c0ebfc Changed output dir of compiled binaries to bin 2015-08-31 23:58:47 -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 58a17bc97e Fixed compilation of bitbuf on gcc/clang 2015-08-31 22:16:29 -04:00
Jordan Cristiano efab1c3707 Fixed compilation of jsonfile on gcc/clang 2015-08-31 22:16:06 -04:00
Jordan Cristiano 4d4a751e75 Changed json_checker to cpp file to fix clang build 2015-08-31 22:14:49 -04:00
Jordan Cristiano 7de51e14ba Fixed compile errors with vs2015 2015-07-28 21:08:38 -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 04b79ff3f8 Updated to cbase64-1.1 2015-07-12 22:57:26 -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 43745b85f5 DEM format documentation 2015-07-03 00:27:45 -04:00
Jordan Cristiano 38ff1bd261 Started documenting the dem format 2015-07-02 23:01:26 -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 cfba42038d Fixed typo in bitbuf error handler name 2015-06-27 21:31:11 -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
Jordan Cristiano b0e5506384 Added bit size calculation for svc_gameeventlist data 2015-06-25 00:01:33 -04:00
Jordan Cristiano aecc11163f Added error check for if the input and output files are the same 2015-06-25 00:00:30 -04:00
Jordan Cristiano fea8bf485c Implemented json write funcs for netmessages 2015-06-24 23:59:39 -04:00
Jordan Cristiano 65a03fdf79 Added json file writing stream class based on rapidjson 2015-06-21 03:25:45 -04:00
Jordan Cristiano 5618e55129 Initialize at declaration instead of after 2015-06-21 03:10:53 -04:00
Jordan Cristiano 8b73c4041b Added calculation for encoded output size based on input size. Calculated size is never more than a byte larger than the actual size. 2015-06-21 03:10:17 -04:00
Jordan Cristiano 3acc56055c Made base64_encode_block use a local variable for stepcount which is saved back to the struct before return 2015-06-21 02:10:51 -04:00
Jordan Cristiano b10aa30f9b Reordered base64_encodedstate members by size, reordered assignments to state struct by member order 2015-06-21 01:29:00 -04:00
Jordan Cristiano a4220df30c Removed base64_encode_value from encode api, as it requires sanitized inputs (6 bit values) and is error prone for users 2015-06-21 01:24:42 -04:00
Jordan Cristiano 9adb42e579 Added encode flag to control whether the encoded string ends in a newline after padding or not 2015-06-21 01:21:20 -04:00
Jordan Cristiano e7e498efd9 Removed encode/decode helper structs 2015-06-19 20:47:35 -04:00
Jordan Cristiano 94d1c32319 Added libb64-1.2.1 for base64 encoding/decoding 2015-06-19 19:34:53 -04:00
Jordan Cristiano 60888b0c97 Added verification for json output 2015-06-19 14:15:23 -04:00
Jordan Cristiano d1921abc9f Fixed json_checker build for c++ 2015-06-19 14:12:51 -04:00
Jordan Cristiano b763712020 Added JSON_checker source 2015-06-19 14:11:18 -04:00
Jordan Cristiano f4cd7f96e2 Made CommandPacket const reference in writers 2015-06-18 20:38:17 -04:00
Jordan Cristiano 8be05db10d Removed variable assignment as the value to set is unknown and will not be read in this case 2015-06-18 20:26:23 -04:00
Jordan Cristiano 778e20803c Changed NetHandlers bit read/write types to typedefs 2015-06-18 20:23:26 -04:00
Jordan Cristiano 9ad7c54510 Added guards around DemHandlers functions 2015-06-18 20:19:35 -04:00
Jordan Cristiano b67f448d18 Changed DemHandlers file read/write types to typedefs 2015-06-18 20:18:55 -04:00
Jordan Cristiano 0d7c67aef8 Added guards around NetHandlers functions 2015-06-18 20:09:06 -04:00
Jordan Cristiano c6fb1e6ff2 Replaced void* parameter with actual type 2015-06-18 16:16:05 -04:00
Jordan Cristiano 1f74901943 Destruct writer before closing files so writer can flush buffers 2015-06-18 16:11:49 -04:00
Jordan Cristiano 4bf5cea15b Made some bitbuf getters const 2015-06-17 02:01:43 -04:00
Jordan Cristiano df008f5a73 Replaced bitbuf global error handler with per class error recovery handler 2015-06-15 22:29:54 -04:00
Jordan Cristiano 522f5a11ee Added rapidjson-1.0.2 json reader/writer 2015-06-14 22:59:30 -04:00
Jordan Cristiano b2f3469b16 Restructured external includes 2015-06-14 22:58:23 -04:00
Jordan Cristiano 7cc79178e7 Fixed not writing delta byte in svc_packetentities 2015-06-14 20:51:36 -04:00
Jordan Cristiano 91e63d3f39 Copy trailing bits to output after each packet for file hash matching 2015-06-14 20:50:09 -04:00
Jordan Cristiano 361119f19f Flush the conlog output fp when finished writing 2015-06-14 20:48:57 -04:00
Jordan Cristiano a02b034115 premake script cleanup 2015-06-14 17:27:36 -04:00
Jordan Cristiano c07678a37e Added _CRT_SECURE_NO_WARNINGS define to remove warnings for fopen 2015-06-14 17:27:21 -04:00
Jordan Cristiano cf4068fde7 Added asserts for message id type 2015-06-14 17:26:29 -04:00