Skip to content

The Example Bot

Tobias Mahlmann edited this page Sep 26, 2016 · 5 revisions

When I originally published the framework, I anticipated people using the Dota2 addon and writing their own solutions. However, the most frequent question I get is: "How do I run the example bot?". Even though I mostly work in machine learning, I'm used to using web technologies such as the Apache Tomcat. But I obviously underestimated the struggle other people had with running the version 0.0.1

I therefore changed the webservice to a much simpler, integrated, solution; eliminating the use of 3rd party programs. However, if you are an avid programmer, who knows web technologies, you do not need this. If you would like to run the example, you need to be familiar with Java programming and building an application using maven. This document also assumes that you have the Dota2 addon installed and running. Refer to the Readme for that.

The easiest way to get started using the Java code:

  • Load the code of the Example Bot project into eclipse (or your favourite IDE that supports maven builds)
  • The pom.xml is preconfigured to compile against the classes of the the Java framework
  • The main application class is se.lu.lucs.dota2.service.Dota2AIService pass its main method the fully-qualified class name of the class implementing the Bot interface (must be in the CLASSPATH) as the first command line argument. In the Example, it's de.lighti.dota2.bot.Lina
  • Run Dota2

Clone this wiki locally