Dota 2
PhalanxBot (7.38c)
 This topic has been pinned, so it's probably important
baby_punter72  [developer] Oct 13, 2022 @ 12:40pm
How to manually install PhalanxBot
Due to a bug currently with recently updated and uploaded bot scripts, the bot can not be selected in the custom game settings without reverting back to default bots after closing out of the settings window. While I have reported this issue to Valve, the only current way to bypass this issue is to install the script manually and use the "Local Dev Script" option in the custom game lobby.

1. Subscribe to the bot.
2. Navigate to \Steam\steamapps\workshop\content\570\2873408973
3. Copy the contents of this folder.
4. Navigate to \Steam\steamapps\common\dota 2 beta\game\dota\scripts\vscripts
5. Create a folder called "bots" if you do not already have one (back this folder up if you already have another bot in here!).
6. Paste all the contents you've copied into this folder.

You will need to repeat this in order to receive the latest updates I push out to this bot.

You've now correctly installed this bot script. In order to play with it, you must select "Local Dev Script" when you are choosing the bot script for teams. Don't forget to select "Local Host" as your server location or else this script will not load!
Last edited by baby_punter72; Nov 5, 2022 @ 2:33pm
< >
Showing 1-15 of 61 comments
Giant Banana Oct 18, 2022 @ 5:18am 
If the option for “Local Dev Script” is not appearing are there extra steps that need to be taken to make this available?
baby_punter72  [developer] Oct 18, 2022 @ 2:53pm 
Originally posted by Giant Banana:
If the option for “Local Dev Script” is not appearing are there extra steps that need to be taken to make this available?
Thanks for checking out my bot! My guess is the game isn't detecting a 'bots' folder in the directory listed on the guide. Make sure it's spelled correctly and that there aren't any capital letters. You may also need to restart the client after making changes to this directory.
role 4/5 idc Oct 19, 2022 @ 4:09am 
Hi,

I have a basic knowledge of Lua and started a few weeks ago. I have questions about the creation of your popular Dota 2 Bot script.

1. I was trying to experiment with your code, I'm trying to achieve that whenever a game will start the AI will buy and use the smoke to go to the bounty runes. What file should I start with?
2. In relation to question #1, do you have the program structure of your code? Like main function (pre-game, after hero selection) > Mid Game > Post Game
3. Lastly, do you have any tips and tricks that you can share with me for creating a Bot script?
baby_punter72  [developer] Oct 19, 2022 @ 4:42am 
Originally posted by normal game enjoyer:
Hi,

I have a basic knowledge of Lua and started a few weeks ago. I have questions about the creation of your popular Dota 2 Bot script.

1. I was trying to experiment with your code, I'm trying to achieve that whenever a game will start the AI will buy and use the smoke to go to the bounty runes. What file should I start with?
2. In relation to question #1, do you have the program structure of your code? Like main function (pre-game, after hero selection) > Mid Game > Post Game
3. Lastly, do you have any tips and tricks that you can share with me for creating a Bot script?
1. That would require editing item_purchase_generic and would also require you to write functionality for smoke in ItemUsageUtility as I currently don't have one (though in the potentially near future I did plan on making bots do smoke plays).

2. Not exactly sure what you mean here, bots use a desire system in Dota 2 which tell them what to do at any given time and don't necessarily follow a phase-based system.

3. I'd recommend looking at the Valve Software wiki for Dota 2 bot scripting. It's a little outdated but still an incredibly useful reference as well as other recently updated bot scripts such as Beginner AI or Ranked Matchmaking AI (these guys probably have cleaner code than mine to be honest lol).
Last edited by baby_punter72; Oct 19, 2022 @ 4:43am
role 4/5 idc Oct 19, 2022 @ 5:34am 
Originally posted by Manslaughter:
Originally posted by normal game enjoyer:
Hi,

I have a basic knowledge of Lua and started a few weeks ago. I have questions about the creation of your popular Dota 2 Bot script.

1. I was trying to experiment with your code, I'm trying to achieve that whenever a game will start the AI will buy and use the smoke to go to the bounty runes. What file should I start with?
2. In relation to question #1, do you have the program structure of your code? Like main function (pre-game, after hero selection) > Mid Game > Post Game
3. Lastly, do you have any tips and tricks that you can share with me for creating a Bot script?
1. That would require editing item_purchase_generic and would also require you to write functionality for smoke in ItemUsageUtility as I currently don't have one (though in the potentially near future I did plan on making bots do smoke plays).

2. Not exactly sure what you mean here, bots use a desire system in Dota 2 which tell them what to do at any given time and don't necessarily follow a phase-based system.

3. I'd recommend looking at the Valve Software wiki for Dota 2 bot scripting. It's a little outdated but still an incredibly useful reference as well as other recently updated bot scripts such as Beginner AI or Ranked Matchmaking AI (these guys probably have cleaner code than mine to be honest lol).


Thanks to that. Just one more thing, with regard to question #3. When adding a feature / additional logic in the code (e.g. Adding logic that the bots will start killing Roshan when TA has a desolator during the Mid-game etc...) how do you test it? Do you just rerun the whole game (Create lobby > set bot as "Local Dev Script") or is there something that you do to jump on that scenario? :D
Last edited by role 4/5 idc; Oct 19, 2022 @ 5:37am
baby_punter72  [developer] Oct 19, 2022 @ 5:53am 
Originally posted by normal game enjoyer:
Originally posted by Manslaughter:
1. That would require editing item_purchase_generic and would also require you to write functionality for smoke in ItemUsageUtility as I currently don't have one (though in the potentially near future I did plan on making bots do smoke plays).

2. Not exactly sure what you mean here, bots use a desire system in Dota 2 which tell them what to do at any given time and don't necessarily follow a phase-based system.

3. I'd recommend looking at the Valve Software wiki for Dota 2 bot scripting. It's a little outdated but still an incredibly useful reference as well as other recently updated bot scripts such as Beginner AI or Ranked Matchmaking AI (these guys probably have cleaner code than mine to be honest lol).


Thanks to that. Just one more thing, with regard to question #3. When adding a feature / additional logic in the code (e.g. Adding logic that the bots will start killing Roshan when TA has a desolator during the Mid-game etc...) how do you test it? Do you just rerun the whole game (Create lobby > set bot as "Local Dev Script") or is there something that you do to jump on that scenario? :D
There is a command to reload the bot script during a match, however that comes with side effects so it’s much more convenient to just start a new match. When I’m able to launch Dota again I’ll try to find the command for it just in case.
schyn Nov 1, 2022 @ 2:49am 
How to get to \Steam\steamapps\workshop\content\570\2873408973??
baby_punter72  [developer] Nov 1, 2022 @ 6:22am 
Originally posted by schyn:
How to get to \Steam\steamapps\workshop\content\570\2873408973??
For most people it’s under Program Files in your main drive
76561198311181469 Nov 1, 2022 @ 11:23pm 
I cant seem to find this path '\Steam\steamapps\workshop\content\570\2873408973

What I have is 'C:\Program Files (x86)\Steam\steamapps\workshop\content\241100' instead with a bunch of folders none of which are 2873408973.
baby_punter72  [developer] Nov 1, 2022 @ 11:33pm 
Originally posted by Dirteh:
I cant seem to find this path '\Steam\steamapps\workshop\content\570\2873408973

What I have is 'C:\Program Files (x86)\Steam\steamapps\workshop\content\241100' instead with a bunch of folders none of which are 2873408973.
570 is the Dota 2 workshop content folder. If you have multiple drives, make sure to check if you may have installed Dota 2 to an alternative drive.
众尧 Nov 4, 2022 @ 10:05pm 
Hey, I am using Mac to play dota2...could you plz tell me where to navigate to the folders? Thanks
众尧 Nov 4, 2022 @ 10:14pm 
Originally posted by 众尧:
Hey, I am using Mac to play dota2...could you plz tell me where to navigate to the folders? Thanks

I just found a way, thanks!
sticKie Nov 5, 2022 @ 7:45am 
so i cant find this folder name "2873408973". did i do something wrong?
baby_punter72  [developer] Nov 5, 2022 @ 10:52am 
Originally posted by Key_Eyy:
so i cant find this folder name "2873408973". did i do something wrong?
Did you subscribe to the bot first?
Zir`Aêl Nov 16, 2022 @ 4:47am 
Hello. I'm playing on an M1 Mac and everytime I load this through the steps mentioned above, the game crashes like 30 seconds in. Is there a difference to loading this bot through "Play with Bots" instead of through the lobby?
< >
Showing 1-15 of 61 comments
Per page: 1530 50