/demoinfo-csgo-python

Prototyping with CSGO demo parsing in python

Primary LanguagePython

demoinfo-csgo-python

demoinfocsgo is a python library that is able to parse CSGO GOTV and POV demos.

It currently currently has the following features:

TODO:

  • Parsing usermessages
  • Parsing stringtables

Examples

Example usage:

demo = DemoDump() #Create demodump instance
demo.open("gotv.dem") #open a demo file

#register on events
demo.register_on_netmsg(net_SetConVar, on_list_received) #net_SetConVar = net message id, 2nd param is callback
demo.register_on_gameevent("player_connect", player_connected) #player_connect = game event name (see data/game_events.txt), 2nd param is callback

demo.dump() #start analyzing the demo

For full examples check the examples folder.

Tooling

This project also includes some extra tools, such as the packet analyzer. This tool was made using the demoinfocsgo library: Picture The source can be found in in the packetinspector directory.