GithubHelp home page GithubHelp logo

dota2comm's Introduction

Dota2Comm

This is some code I wrote to allow for communication between the Dota2 Bot Lua Api/Sandbox, and just about every outside program you could imagine.

Modules

  • dota2MemComm: A backend reading and writing into Dota's memory.
  • dota2FileComm: A backend for getting data into the Lua VM using lua files. No way out.
  • interactiveConsole: A usecase demonstration which allows the execution of any Lua code from a bot's context

Backends

X MemoryComm FileComm
Speed quite fast rather slow (3-4ms for reading)
To Lua 1023byte per message (adjustable) infinite
From Lua infinite not possible. Prints to Dota2 console.
Platform currently implemented for windows all
Language all (which can handle dlls; python module included) all (currently implemented in python)
shady a little :D definitely not.

Contact

If you

  • find any bugs
  • want to know something
  • have a suggestion
  • Anything else

just let me know. Open an issue, write a pm, or whatever you want.

Contributors

Huge thanks to lenLRX for adding support for multiple bots and fixing a lot of stuff.

dota2comm's People

Contributors

keithenneu avatar lenlrx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

lenlrx llchen223

dota2comm's Issues

a mistake?

dota2comm/dota2MemComm/dota2comm.cpp line 167
there is an "and" in the code

Use case

I recently saw your project. It's some great stuff. But I don't know where to use this :) I mean I know what your project is. It can "control" bots in real time from outside the dota client. And I'm so confused :) I want to use this interesting project but can find use cases :) Its strange. Can you write some use cases ?

not working on python3 64 bits?

I am testing interactiveConsole on win10 64bit python3.5.2-64bit and on Dota2-64bits.

I compiled the code on vs2015 and x64 config, and it fails
then i compiled with win32 config and it works

Support for OSX

Any plans on porting this to OSX? Or has this been tested on it? This is a really solid project btw. Cheers!

Real player and node client

Sorry but I have one more question. I can find answers by myself but it will take lot of time.

  1. Can this "project" control/communicate with real player in normal match ? or only bots in local lobby.
  2. There is few projects like this https://github.com/Arcana/node-dota2. That can "emulate" dota client. (work with GC messages). Can your project (with some rewriting maybe) somehow work with emulated client in Node environment or it needed full normal client ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.