Commit Graph

143 Commits

Author SHA1 Message Date
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
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 60888b0c97 Added verification for json output 2015-06-19 14:15:23 -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 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 cf4068fde7 Added asserts for message id type 2015-06-14 17:26:29 -04:00
Jordan Cristiano b3daf554a7 Fixed typo 2015-06-14 17:26:05 -04:00
Jordan Cristiano 38ff2f956e Moved demo reading/writing sources to io directory 2015-06-14 17:25:49 -04:00
Jordan Cristiano a504a0e492 Made demreader use demmessage handling funcs 2015-06-14 17:24:04 -04:00
Jordan Cristiano b1830dccae Added demo message handling functions 2015-06-14 17:23:09 -04:00
Jordan Cristiano cc7066ac86 Fixed demowriter not writing packet type before the packet 2015-06-14 17:21:56 -04:00
Jordan Cristiano b06015835c Fixed demo writer writing empty packets 2015-06-14 17:21:34 -04:00
Jordan Cristiano 4218c60eff Moved demofile headers to demofile directory 2015-06-14 17:09:41 -04:00
Jordan Cristiano fbb73f1b75 Added status check IsOk function for demo file reader/writer 2015-06-14 17:05:50 -04:00
Jordan Cristiano 3fd026efa9 Source formatting 2015-06-14 17:05:20 -04:00
Jordan Cristiano 44c36ab0f2 Added Array versions of ReadRawData and ReadUserCmd 2015-06-14 17:04:05 -04:00
Jordan Cristiano 284a99fff7 Renamed parameters in Read/WriteUserCmd and ReadRawData 2015-06-14 17:03:19 -04:00
Jordan Cristiano 569a482549 Changed sourcesdk include to just include externals path 2015-06-14 16:49:44 -04:00
Jordan Cristiano 4c560eacac Added array class 2015-06-14 16:12:09 -04:00
Jordan Cristiano 21087117d7 Remove old netmessages source 2015-06-09 17:41:39 -04:00
Jordan Cristiano 4a2922edaa Added dem_unknown to demo messages enum 2015-05-27 23:10:58 -04:00
Jordan Cristiano 6304643a89 Added parsing of dem_stringtables 2015-05-27 22:58:53 -04:00
Jordan Cristiano 2ed3320b84 Partial implementation of demo file writer 2015-05-27 22:58:19 -04:00
Jordan Cristiano 05d1518653 Made DemoFileReader::ReadUserCmd return length of usercmd instead of sequence number 2015-05-27 22:57:30 -04:00
Jordan Cristiano 803db77e49 Added SourceGameContext& to IDemoWriter::WriteNetPacket 2015-05-27 22:54:07 -04:00
Jordan Cristiano 6a40e771af Netmessage cleanup 2015-05-27 22:51:30 -04:00
Jordan Cristiano bbf100a5c7 Removed dem_customdata because it's not in this protocol set 2015-05-26 19:03:16 -04:00
Jordan Cristiano 3c4c786283 Removed unused var in svc_updatestringtable 2015-05-15 20:46:09 -04:00
Jordan Cristiano c2336e52c4 Removed pragma once in cpp files 2015-05-15 19:15:58 -04:00
Jordan Cristiano fc622bc5ef Replaced std::defaultfloat with unsetf call. defaultfloat is not available in gcc <5 2015-05-15 18:58:36 -04:00
Jordan Cristiano 2e75619f42 Fixed incorrect macro concat operation 2015-05-15 18:05:28 -04:00
Jordan Cristiano 63ca708b6f Fixed pragma once in cpp 2015-05-15 18:04:43 -04:00
Jordan Cristiano b49416489c Added buffered output to stdout when using .con output 2015-05-15 17:45:37 -04:00
Jordan Cristiano 0a228bb722 Fixed pragma once in cpp file 2015-05-15 17:34:32 -04:00
Jordan Cristiano 04696d29f9 Added .con to usage string 2015-05-15 02:56:52 -04:00
Jordan Cristiano 3d80d17a99 Made NetHandler Write functions take a const SourceGameContext 2015-05-15 02:49:51 -04:00
Jordan Cristiano 9a0956e8f2 Fixed svc_prefetch parsing 2015-05-15 01:24:24 -04:00
Jordan Cristiano 6ec0224848 Fixed svc_tempentities parsing 2015-05-15 01:15:11 -04:00
Jordan Cristiano b6ee526d54 Fixed incorrect unsigned type 2015-05-15 01:04:18 -04:00
Jordan Cristiano 2e8c0a742f Fixed net_nop causing empty lines in output 2015-05-15 01:03:59 -04:00
Jordan Cristiano 063c2f515c Fixed missing space in svc_packetentities 2015-05-15 00:55:24 -04:00
Jordan Cristiano 3dd9bc7fca Fixed having less than the required number of bits for the data length 2015-05-15 00:55:07 -04:00
Jordan Cristiano dc06efc1f3 Fixed incorrect packet buffer sizes 2015-05-15 00:54:05 -04:00
Jordan Cristiano 3752aecfa4 Fixed uint8_t displaying as char 2015-05-15 00:37:14 -04:00
Jordan Cristiano ce51a094c2 Removed redundant newline 2015-05-15 00:25:44 -04:00
Jordan Cristiano cafe9ccb7c Fixed maxclients showing as a char 2015-05-15 00:23:45 -04:00
Jordan Cristiano 907a804409 Added file and clog output for ConLogWriter 2015-05-15 00:23:17 -04:00
Jordan Cristiano 8c178bf9ac Added nethandler namespace api, added conlog writer 2015-05-14 23:38:53 -04:00
Jordan Cristiano 3f9bd6e3f2 Added netmsg struct allocation 2015-05-14 23:17:38 -04:00
Jordan Cristiano e13608fcd6 Linking fixes, added game context var 2015-05-14 22:02:29 -04:00
Jordan Cristiano 90d39bc498 Moved netmsg implementations, restructure 2015-05-14 21:36:57 -04:00
Jordan Cristiano 78de8690ab Added demo writer interface, restructure 2015-05-12 20:39:56 -04:00
Jordan Cristiano 0fe0ac912a Verified SVC_ClassInfo and SVC_VoiceInit 2015-05-04 00:51:36 -04:00
Jordan Cristiano d009d019d2 Added dummy handling of consolecmd, usercmd, datatables, stringtables 2015-05-03 22:46:04 -04:00
Jordan Cristiano 271a22f148 Code cleanup 2015-05-03 22:40:41 -04:00
Jordan Cristiano 066b9fe269 Verified Net_SetConVar and Net_SignonState 2015-05-03 21:17:14 -04:00
Jordan Cristiano ad466a06f4 Modified SVC_CreateStringTable for current protocol 2015-05-03 21:10:36 -04:00
Jordan Cristiano d2a3b88526 Modified SVC_ServerInfo for current protocol 2015-05-03 20:46:56 -04:00
Jordan Cristiano 84d458de5b Fixed incorrect arg index 2015-05-03 20:28:53 -04:00
Jordan Cristiano b54f9c2290 Replaced usage of string with vector<unsigned char> 2015-05-03 20:27:12 -04:00
Jordan Cristiano b3bab786c8 Removed filename member var from demofile 2015-05-03 20:18:41 -04:00
Jordan Cristiano ad81ecc67d Removed game event file loading, as stv demos have a game event list in them 2015-05-03 20:16:13 -04:00
Jordan Cristiano 9a6c95a327 Added initial netmsg handlers, need to confirm them with current demo protocol 2015-05-03 20:13:35 -04:00
Jordan Cristiano 5fc4c59245 wip event parsing 2015-04-30 16:03:22 -04:00
Jordan Cristiano 9bb4aa46e8 Added packet parsing logic and assertions for frame and tick count 2014-10-29 01:35:43 -04:00
Jordan Cristiano 5e43ccfa06 Changes for TF2 demo compatibility 2014-10-29 01:15:40 -04:00
Jordan Cristiano 65810867d8 Non-initial commit 2014-10-29 00:20:24 -04:00