paralin / Dota2

[Deprecated] A plugin for SteamKit that interfaces with the DOTA 2 game coordinator and game servers.
https://github.com/paralin/go-dota2
115 stars 32 forks source link

Creating a lobby with custom bot logic #24

Open cqiaoben opened 7 years ago

cqiaoben commented 7 years ago

If it is possible, how can it be done? Would it work if I put my custom bot script in dota2 bot directory and create a local lobby with this project? Is there anyway to spectate this lobby in the dota2 client?

Currently dota2 custom bot scripting is done by placing the custom bot script in the dota2 bot directory. I want to understand how this project would interact with this script.

paralin commented 7 years ago

I haven't investigated this, but it's probably related to;

https://github.com/paralin/Dota2/blob/master/Resources/Protobufs/dota/dota_gcmessages_client_match_management.proto#L129

I would attach a NetHook to Steam and watch the packets going between your game and the server when you make a lobby with custom bot logic.

paralin commented 7 years ago

And to answer your questions in order:

  1. Probably possible
  2. No
  3. All this project does is emulate what the official client does. So yes.