Showing posts with label AI map. Show all posts
Showing posts with label AI map. Show all posts

Tuesday, July 22, 2008

Dota all stars 6.48 AI + map

Version: 6.48b.1.52
Category: Unofficial Maps

Description:
More like an update to 1.4 and a beta for 1.6. Not much change here.
6.48b AI+ 1.52 Changelog:

*Handicap reduced from 120/150/200 to 115/140/180
*combined -tm with -test
*fixed problem with "-c"," c" not working w/ Scourge
*fixed ai heroes in -rv choosing two heroes
*fixed randoming problem with -dm
*fixed -pe and -pa with -random, removed -par and -per
*fixed denying towers that cannot be denied
*added notification and more effects when using -aid
*added swaphero capability with the bots
*added new mode "-dynaexp" or "-de", bots gain bonus exp rates when killed,
and loses bonus exp when the bots killed a hero

*fixed some problems with the defend routine
*human teamwork script is merged with ai teamwork script
*fixed bug about checking blink location targets
*bots uses shortcuts when retreating
*after using attack commands to bots, they will not automatically try to
defend or do neutral creeping for a while
*bots normally use flasks, but you can change it by inputting "-ctango" within
the first minute
*ai will prioritize defending over healing in the fountain
*bots cancels some casting animations

*fixed halting with Doppleganger
*fixed bugs concerning windwalk like abilities
*fixed Epicenter usage bug
*fixed Fiend's Grip and Dismember misusage
*balanced Thundergod's Wrath usage
*fixed aggressiveness with Primal Split, Storm panda uses windwalk when weak
*fixed Rain of Chaos usage, Shadow Word is used for healing more frequenly
*fixed some problems with mana shield
*fixed some problems with sprout
*uses Song of the Siren to save allies
*New Ignus Fatuus AI
*fixed blade fury usage when omnislashing
*more correct use of Echo Slam
*fixed wierd bot Assassinate cancels
*fixed multiple use of Earthbind
*Spectre can use Reality
*Alchemist can use Concoction
*revamped Techies behavior
*numerous item build and skill build changes

Known Issues:
*gank command (-ct) may not work 100% correct and it's not included inthe dialogue
*AI heroes are still not balanced (Pudge,Naix suck; Viper and friends still strong)
*fatal errors may still be present


download link

Thursday, July 17, 2008

How to create a AI Map in DOTA

Steps involve in DOTA AI making

I just want to share some of the information I manage to gather regarding AI making for DOTA.

First, the requirements to start making an AI for DOTA:

1. A knowledge of JASS programming.
2. A map deprotector OR Dota AI script Injector (DAII)

Optional:
Jasscraft (JASS editor)

Right now, there are two common ways to make AI for DOTA:


1. Using DAII or "Dota AI Injector" (the easier way)

DAII is a tool to inject JASS AI script into the DOTA map. It comes with a basic AI template. It is up to the user to modify.

Useful ingame functions for debugging DAII
While in game, type -debug. If you want the AI to control your character, type -afk.
There is also a cheat function built in DAII, -rich which give 100000 golds to all players.

I found further Info by Aeyah regarding DAII :- http://www.gg-game.com/forum/viewthread.php?tid=28504

The pro and con of using DAII:

PRO:
This program is easy to use. Good for everyone who want to start learning DOTA AI.
Just run the program and inject the AI script to the DOTA map.
To modify the script, just open the Function.txt (inside the DAII folder) with some sort of Editor.

CON:
-In some instances, too much modification to the script (Functions.txt) will corrupt the the DOTA map when injected. I think that it sometimes overwrite the original DOTA script inside the Map. Remember, we are talking about injecting a script to the protected map.
-Also, DAII is too dependent on the whim of the DOTA programmer (In this case ICEFROG). If he somehow decide to change the variables in the next version DOTA, the DAII will stop functioning. (unless a new AI script template is made for it)

Note: Looks like Dota-Allstars 6.52 is the one he meant. IceFrog recoded the items code and hence the DAII stop functioning. A new AI script template must be made to make it work again.

2. The hard way.

The steps involves deprotecting/decompiling the DOTA or DOTA AI map, then extract and edit the "war3map.j" and recompiling it.

A good way to start (assuming you have deprotect the Map) is to compare the two script of the same version. The original DOTA script vs the script containing AI.
For example, if you compare the original script 6.43b to 6.43b_AIplus script, the differences should be the AI code. From there, you could begin to analyze and modify these code as needed.

FYI, the Original 6.43b dota has around 24 thousand lines of code, while the 6.43b_AIplus version has around 37 thousand lines of code. Therefore, there are around 13 thousand lines of AI code added by RGB/Lazyfiend. (Good job Lazyfiend!)

So, unless you have a lot of time and good knowledge of JASS scripting, it will be hard.

The tools are available on the net, so please DON'T ask me. This is another reason why non-sanction map are not allowed here, since it is easy to deprotect a map and insert some cheat/hack into it.

Cheers.

Note: This is the hard way and yet the best way. As you can see, the AI made by RGB/Lazyfiend involves about 13 thousand lines of codes. So, give respect for those AI makers :)