• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

kaimallea/demoinfogo-linux: Linux, OSX port of Valve's demoinfogo tool

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

kaimallea/demoinfogo-linux

开源软件地址(OpenSource Url):

https://github.com/kaimallea/demoinfogo-linux

开源编程语言(OpenSource Language):

C++ 91.9%

开源软件介绍(OpenSource Introduction):

Build Status

CS:GO Demos and Network Messages

Demos and network messages in CS:GO use Google's Protocol Buffers (protobuf). Protobuf is a message/object serialization language that generates code to serialize the objects efficiently. For information about protobuf, see https://developers.google.com/protocol-buffers/docs/overview

demoinfogo is a tool that parses CS:GO demo files (ending in .dem) and dumps out every message in the demo. Using this tool, third parties can parse the demo for various game events to generate information and statistics.

The repo contains the source code required to build this tool on linux. The source includes the proto files containing network message definitions.

Building demoinfogo

Prequisites:

  • On Debian/Ubuntu, install the essential build tools: sudo apt-get install build-essential
  • Additionally, if your Debian/Ubuntu OS is 64-bit, you'll also need g++ multilib: sudo apt-get install g++-multilib
  • On OSX, install the Command Line Tools: xcode-select install

In order to build demoinfogo, follow these steps:

  1. Run make get_protobuf to download protobuf 2.5.0 and extract it to the root of this repo.
  2. Run make protobuf to configure and compile it.
  3. Run make to compile and create demoinfogo

Both protobuf and demoinfogo are cross-compiled for 32-bit; otherwise it will not work.

Working with Network Messages

Building demoinfogo generates C++ classes from the network protobuf files. Follow these steps to generate these files for use in your application without building demoinfogo:

  1. Follow the instructions above for downloading and compiling protobuf 2.5.0 from source.
  2. Run make generated_proto. The generated C++ files are created in subdirectory named src/generated_proto.

You can now use the generated classes in your C++ code to send user messages. Here is an example of how to send the HintText message

CSingleUserRecipientFilter filter( this );
filter.MakeReliable();
CCSUsrMsg_HintText msg;
msg.set_text( "ExampleHint" );
SendUserMessage( filter, CS_UM_HintText, msg );



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
fengguang/lkp-tests: Linux Kernel Performance tests发布时间:2022-08-15
下一篇:
vopi181/lnxpcs: Linux Pics发布时间:2022-08-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap