akiver / boiler-writter

MIT License
30 stars 3 forks source link

How can I parse a .info file? #6

Closed herzog0 closed 1 year ago

herzog0 commented 2 years ago

Hello again. Just a note on my last question (#5): I got a more recent share code and everything worked just fine :) I can now retrieve two files from boiler-writter, one of them being a xxxx.info file.
Do you have any idea on which tools I could use to parse it? The demo file I know how to parse already, but I couldn't find anything for the info file.

Thanks!

akiver commented 2 years ago

Hi,

.info files contain a CDataGCCStrike15_v2_MatchInfo protobuf message. You have to parse it to extract the data using the protobuf lib (the language is up to you).

  1. Compile the CSGO .proto files to generate protobuf classes using the compiler protoc
  2. Parse the .info file using the previously generated classes to extract the CDataGCCStrike15_v2_MatchInfo message, here is a C# example