Dota 2
Sirius AI 1.6.4 国际版
Seröga Jan 2, 2021 @ 10:27am
Quick and dirty fix for Captains Mode
Hey everyone,

first of all, I enjoy Sirius AI and use it to play All Pick with my friend in a local lobby.
But the Captains Mode wasn't working since I've found the Sirius (bots do not use picked heroes and change them to other, also bot assigned as captain won't pick etc.). A comment in discussions suggested that CM was working earlier but stopped with some updates.

I don't know whether the developers are aware and whether they're working to fix it properly, but there's a fix that can be used before a proper update is made.

Sirius AI is based on A Beginner AI (also broken CM at the moment) that is based on Bot Experiment by FuriousPuppy (CM works at the moment), so I've used the Bot Experiment code to fix Sirius (can potentially fix Beginner too).

1. Find the following file in your Steam directory:
\steamapps\workshop\content\570\1801131815\hero_selection.lua

2. Copy it and save under another name for cases if something goes wrong.

3. Open the original file with any text editor (e.g. Windows Notepad).

4. Use search to find

function Think()

Or just go to line 1038 if you're using Notepad++ or something similar

5. Replace the code of the function Think - lines 1038-1065, before the text
function AllPickLogic()
with the following:

function Think() if GetGameMode() == GAMEMODE_AP then if GetGameState() == GAME_STATE_HERO_SELECTION then InstallChatCallback( function ( tChat ) X.SetChatHeroBan( tChat.string ) end ) end AllPickLogic(); elseif GetGameMode() == GAMEMODE_CM then otherGameMod.CaptainModeLogic(); otherGameMod.AddToList(); else print("GAME MODE NOT SUPPORTED") end end

This should work for Captains Mode and All Pick. Other game modes won't be supported because of the copied code, but at least you'll be able to play against all bots team in CM.

Glad if I could help and hope that devs will fix it soon!
Last edited by Seröga; Jan 2, 2021 @ 1:25pm
< >
Showing 1-9 of 9 comments
Magdev Feb 21, 2021 @ 6:21pm 
Thanks Seroga! Just did this and it worked!
Earth Spirit Mar 13, 2021 @ 1:24pm 
It doesn't work anymore. The friendly bots auto pcik heroes.
Seröga Mar 13, 2021 @ 1:47pm 
Originally posted by Earth Spiriz:
It doesn't work anymore. The friendly bots auto pcik heroes.
Still work for me in the Captains Mode, just checked it. They don't pick immediately after human players as they used to (because after the latest update they're trying to pick banned or already selected heroes for some reasons), but after the timer runs out, all remaining picked heroes are assigned to bots at random. No other random was noticed yet.
Earth Spirit Mar 13, 2021 @ 2:05pm 
Well not sure i'm getting you right but for my game right now, all 4 bots in the same team picks randomly and enemy team doesn't pick at all. Everything is random and it is like Bot is doing pararell pick and doesn't care about human banning phase.
I've checked the scripts + console output and i saw problem at line 11. The code
local otherGameMod = require(GetScriptDirectory() .. "/AuxiliaryScript/OtherGameMod")
It showed script not found error for me. I don't know is it lua's syntax error or system path error because i'm on Linux and uppercase rule is different on windows. I have to fix it to
local otherGameMod = require(GetScriptDirectory() .. "/AuxiliaryScript/otherGameMod")
Last edited by Earth Spirit; Mar 13, 2021 @ 2:08pm
Earth Spirit Mar 13, 2021 @ 2:07pm 
And from the debug msg i am having this problem
LoadScript: /hero_selection.lua, scope name HeroSelectionScriptScope LoadScript: /hero_selection.lua not found! LoadScript: /team_desires.lua, scope name TeamDesiresScriptScope LoadScript: /team_desires.lua not found! About to load botcpp from /botcpp_radiant.so Could not open botcpp: /botcpp_radiant.so: cannot open shared object file: No such file or directory OnBotScriptDetails Team 3, bError NO, pResult 1, count 1 Initscripting Team 3: Dire bot scripting using script path LoadScript: /hero_selection.lua, scope name HeroSelectionScriptScope LoadScript: /hero_selection.lua not found! LoadScript: /team_desires.lua, scope name TeamDesiresScriptScope LoadScript: /team_desires.lua not found!
Seröga Mar 13, 2021 @ 11:58pm 
Originally posted by Earth Spiriz:
script not found error

Really seems to be a specific error (dunno whether Linux or something else caused it), but if it worked correctly before then it's weird - Sirius wasn't updated since January, so most likely missing files are not caused by it
Earth Spirit Mar 15, 2021 @ 1:51am 
Well i tried the FuriousPuppy and it doesn't work as well. Possibly it works on windows and it doesn't work for Linux. I can confirm FuriousPuppy's CM mode worked before when CM mode of Sirius AI didn't work. Now both just doesn't work, sadly!
DryRubberChicken Jul 7, 2021 @ 1:44pm 
there are so many of us that seem to want a good ai, why don't we play casually amongst each other, and colab on either AI updates or trying to press valve.
Koala Killah Jul 14, 2021 @ 5:32pm 
Originally posted by Earth Spiriz:
And from the debug msg i am having this problem
LoadScript: /hero_selection.lua, scope name HeroSelectionScriptScope LoadScript: /hero_selection.lua not found! LoadScript: /team_desires.lua, scope name TeamDesiresScriptScope LoadScript: /team_desires.lua not found! About to load botcpp from /botcpp_radiant.so Could not open botcpp: /botcpp_radiant.so: cannot open shared object file: No such file or directory OnBotScriptDetails Team 3, bError NO, pResult 1, count 1 Initscripting Team 3: Dire bot scripting using script path LoadScript: /hero_selection.lua, scope name HeroSelectionScriptScope LoadScript: /hero_selection.lua not found! LoadScript: /team_desires.lua, scope name TeamDesiresScriptScope LoadScript: /team_desires.lua not found!

I'm facing this issue as well. With working scripts like BOX EXPERIMENT, the output on the console should be
Initscripting Team 3: <workshop ID> Dire bot scripting using script path <path to workshop folder with ID as folder name>
but somehow the path cannot be found thus Dota loads the basic bots.
Last edited by Koala Killah; Jul 14, 2021 @ 5:33pm
< >
Showing 1-9 of 9 comments
Per page: 1530 50