General Framework for Dota 2 AI Competitions
The purpose of this framework is to provide a platform for AI competitions in DotA 2. It handles AI setup as well as wrapping the regular DotA 2 lua API to prevent AI scripts from accessing data or performing actions, to emulate the AI playing as a human player.
Different challenges will drive development in different directions. Therefore the AI framework provides different challenges for AI to deal with. The challenges currently supported are:
Possible future challenges are:
Framework AI only has access to a limited subset of the regular dota 2 lua AI. The available functions can be found here:
To use AI from this framework in a custom game, simply copy the entire scripts/vscripts/AI/ directory, then require AIManager in your gamemode. An existing AI can then be attached to an existing unit using:
AIManager:AttachAI( 'ai_name', unit )
This will load the AI named ai_name from AI/UserAI/ai_name and attach it to unit.