Dota 2
395 ratings
Dota 2 in offline [Eng]
By Messiah7
  • This guide is no longer valid.[/b]

    There are times when you know that some time you will not have Internet, but you want to play dota.
    Here I will describe a more convenient way to start training with bots and without the Internet.

    This guide was written at the request of some of my friends. The essence of the problem was that even in offline mode steam, and without the Internet, Dota would not working properly - if you start the game with bots, then game immediately ends.

    Русская версия здесь
First Step
For a start, run steam in offline mode.

In fact, this step is not mandatory, without the Internet, steam will offer you go offline.
Second Step
Go to the folder ..\steamapps\common\dota 2 beta\dota\cfg
Create a file autoexec.cfg (if this file is already exists, proceed to the next step)
Third step
Parameters listed below, paste in the autoexec.cfg using a simple text editor.

con_enable "1"
//==Dota 2 in offline mode==//
alias "offline0" "sv_cheats 1;sv_lan 1;dota_start_ai_game 1;dota_bot_set_difficulty 0;map dota.bsp;"
alias "offline1" "sv_cheats 1;sv_lan 1;dota_start_ai_game 1;dota_bot_set_difficulty 1;map dota.bsp;"
alias "offline2" "sv_cheats 1;sv_lan 1;dota_start_ai_game 1;dota_bot_set_difficulty 2;map dota.bsp;"
alias "offline3" "sv_cheats 1;sv_lan 1;dota_start_ai_game 1;dota_bot_set_difficulty 3;map dota.bsp;"
alias "offline4" "sv_cheats 1;sv_lan 1;dota_start_ai_game 1;dota_bot_set_difficulty 4;map dota.bsp;"
//==Dota 2 in offline mode==//
Fourth step
Now everything is simple, run Dotа and enter in console for example "offline2" without quotes and will begin loading in a training battle with bots medium difficulty.
Difficulty bots depends on the number entered 0 - Passive, 1 - Easy, 2 - Medium, 3 - Hard, 4 - Unfair

To open the console, use the button "~" or "\"
Command con_enable "1" activates the in-game console, it can also be activated by other means.
For do this, open the library of games, then right-click on the game, select "Properties" in the "General" tab and click on "Set launch options...".
In the window that appears, enter "-console" without the quotes.

Command dota_bot_set_difficulty - sets the level difficulty
0 - Passive
1 - Easy
2 - Medium
3 - Hard
4 - Unfair

Command map - sets the map where you will play
dota.bsp - standard map
dota_autumn.bsp - autumn map
dota_diretide_12.bsp - map Halloween 2012
dota_winter.bsp - winter map
All existing maps you can see in the folder ..\steamapps\common\dota 2 beta\dota\maps
< >
qu Aug 20, 2014 @ 6:19pm 
i guess this doesn't work anymore.

when i started normal game with bots, in offline mod, after ~1 min. it gives an error about "steam connection". and ends game.

when i started game with console command (as explained abouve), after ~2 min. it completely quits dota2 without any error (game crash i think).

so i think valve doesn't want us to do anything without their watch... they just wont let offline and LAN gaming. (LAN game is possible after u log in steam. but it requiers staying connected to steam.)
ErzaScarlet Aug 13, 2014 @ 7:53pm 
i've trying this command :
alias "offline0" "sv_cheats 1;sv_lan 1;dota_start_ai_game 1;dota_bot_set_difficulty 0;map dota.bsp;"

why the bot will not moving after i've updated latest version of dota2 on 13th Aug '14?
banda_rito68 Dec 9, 2013 @ 5:26am 
is there anyway & possible that could play dota2 in lan mode w/c is no need for steam? co'z my customer at my cafe shop can't play together dota2 but need to use my registration account on steam to dota 2 otherwise it was only good for one user
Messiah7  [author] Nov 29, 2013 @ 4:58am 
Everything just, this guide is no longer actual
foolz Nov 29, 2013 @ 4:48am 
why after 30 seconds the battle is end
foolz Nov 29, 2013 @ 4:42am 
why when i play my hero will always change.cant practice my hero
D.Raven Oct 1, 2013 @ 8:56am 
can i ask how to switch team with these code?
i want to practice more in the dire team.
everytime i enter these code, they just let me in the radiant team.
cK Sep 26, 2013 @ 1:24pm 
FWIW You can just run steam in offline mode, open Dota 2 and select "Practice with Bots" as of the current version.
Lingo Sep 26, 2013 @ 11:00am 
When I get on the map it spawns in 2 of each hero and I can't move the hero I picked. Did I do something wrong or did this get patched somehow?
ho lee shet Sep 17, 2013 @ 6:50am 
How to create a CFG file? please help....