{"id":20247422,"url":"https://github.com/moddota/dota2aiframework","last_synced_at":"2025-04-10T21:32:09.429Z","repository":{"id":89682239,"uuid":"43559516","full_name":"ModDota/Dota2AIFramework","owner":"ModDota","description":"General Framework for Dota 2 AI Competitions","archived":false,"fork":false,"pushed_at":"2016-11-11T14:55:22.000Z","size":427,"stargazers_count":72,"open_issues_count":0,"forks_count":12,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-24T18:52:35.299Z","etag":null,"topics":["ai-competitions","ai-framework","custom-game","dota-2"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ModDota.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-02T15:09:11.000Z","updated_at":"2024-06-15T12:57:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"14fbfa35-1258-497c-963d-18dda74df294","html_url":"https://github.com/ModDota/Dota2AIFramework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModDota%2FDota2AIFramework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModDota%2FDota2AIFramework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModDota%2FDota2AIFramework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModDota%2FDota2AIFramework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ModDota","download_url":"https://codeload.github.com/ModDota/Dota2AIFramework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248301440,"owners_count":21080893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-competitions","ai-framework","custom-game","dota-2"],"created_at":"2024-11-14T09:37:21.053Z","updated_at":"2025-04-10T21:32:09.420Z","avatar_url":"https://github.com/ModDota.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotA 2 AI Competition Framework\nThe 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.\n\n[Preview Video](https://www.youtube.com/watch?v=lKfmYQgBC8o)\n\n### Goals of the framework:\n+ Encourage the development of Lua AI for dota custom games.\n+ Provide a starting point for developers that want AI in their games.\n+ Eventually having decent AI for bot matches.\n\n## Challenges\nDifferent challenges will drive development in different directions. Therefore the AI framework provides different challenges for AI to deal with. The challenges currently supported are:\n* 1v1 Mid - Two AI face off 1v1 mid on identical heroes on the default dota map. The first AI to kill a tower or get two kills on the other AI wins.\n\nPossible future challenges are:\n* Farm optimization challenge\n* Three versus three mid and jungle.\n* 1v1v1v1\n* Last hit challenge\n\n## Documentation\nFramework AI only has access to a limited subset of the regular dota 2 lua AI. The available functions can be found here:\n* [Global functions](https://github.com/ModDota/Dota2AIFramework/wiki/Global-AI-API)\n* [Unit functions](https://github.com/ModDota/Dota2AIFramework/wiki/Unit-AI-API)\n* [Ability functions](https://github.com/ModDota/Dota2AIFramework/wiki/Ability-AI-AI)\n* AIEvents\n* AIPlayerResource\n\n## Using framework AI in a custom game\nTo 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:\n```lua\nAIManager:AttachAI( 'ai_name', unit )\n```\nThis will load the AI named ai_name from AI/UserAI/ai_name and attach it to unit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoddota%2Fdota2aiframework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoddota%2Fdota2aiframework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoddota%2Fdota2aiframework/lists"}