Dota 2
Ranked Matchmaking AI
L Ace ♣ May 7, 2021 @ 11:07am
Captains mode
In captains mode the bots always don't ban in the 22 ban and waste all their reserve time.
< >
Showing 1-4 of 4 comments
Divine.Devil May 11, 2021 @ 7:08pm 
Hi this is what I did for fixing this.
  • Figure out the location of the script file in your computer.
  • In my case I had it under the following path
    D:\Steam\steamapps\workshop\content\570\855965029\hero_selection.lua
  • Open the file hero_selection.lua with your text editor (Notepad/Sublime/Atom)
  • Search for the line which starts with function CaptainModeLogic() .
  • You can do the search for this with CTRL+F on Windows.
  • Replace the following line within that function with this

    elseif GetHeroPickState() >= HEROPICK_STATE_CM_BAN1 and GetHeroPickState() <= 18 and GetCMPhaseTimeRemaining() <= NeededTime then
    BansHero();
    NeededTime = 0
    to

    elseif GetHeroPickState() >= HEROPICK_STATE_CM_BAN1 and GetHeroPickState() <= 20 and GetCMPhaseTimeRemaining() <= NeededTime then
    BansHero();
    NeededTime = 0
  • Save your changes

That's it you are done!
Now the bots should ban hero on Captain Mode! Enjoy!
Last edited by Divine.Devil; May 11, 2021 @ 7:16pm
L Ace ♣ May 11, 2021 @ 7:44pm 
Originally posted by Divine.Devil:
Hi this is what I did for fixing this.
  • Figure out the location of the script file in your computer.
  • In my case I had it under the following path
    D:\Steam\steamapps\workshop\content\570\855965029\hero_selection.lua
  • Open the file hero_selection.lua with your text editor (Notepad/Sublime/Atom)
  • Search for the line which starts with function CaptainModeLogic() .
  • You can do the search for this with CTRL+F on Windows.
  • Replace the following line within that function with this

    elseif GetHeroPickState() >= HEROPICK_STATE_CM_BAN1 and GetHeroPickState() <= 18 and GetCMPhaseTimeRemaining() <= NeededTime then
    BansHero();
    NeededTime = 0
    to

    elseif GetHeroPickState() >= HEROPICK_STATE_CM_BAN1 and GetHeroPickState() <= 20 and GetCMPhaseTimeRemaining() <= NeededTime then
    BansHero();
    NeededTime = 0
  • Save your changes

That's it you are done!
Now the bots should ban hero on Captain Mode! Enjoy!
Thank you so damn much, for real. you might have just given a player his TI win xD have a nice day brother (the ti winner is me btw :D)
Divine.Devil May 11, 2021 @ 7:53pm 
I am glad it worked for you :-) Have fun!
Earth Spirit Sep 29, 2021 @ 10:32pm 
I tested it and it worked perfectly for ban pick phase. Because the topic doesn't have code tag (i don't know how to use code tag in steam either. I'm more familiar with markdown syntax) so the sorter version of the change is go to line 1406 and change value "18" to "20" for GetHeroPickState() comparison
< >
Showing 1-4 of 4 comments
Per page: 1530 50