13

I wanted to enable the console, so I Googled how to do it and found that I could do it by putting -console in the launch options of the game. I did that, but now the console opens every time I start Dota 2. Is there a way to have it open if I push `, but not whenever I start the game up?

Ullallulloo
  • 18,884
  • 36
  • 119
  • 172

2 Answers2

11

Yes, you can do that.

Go to …\Steam\SteamApps\common\dota 2 beta\dota\cfg\ and create a new file called autoexec.cfg next to config.cfg, so it won't get overwritten. Open it and add a line that says con_enable "1". That will enable the console even without adding -console to the launch settings.

Alternatively, you could add hideconsole to the configuration file to hide the console after it pops up, but I recommend the first method.

Ullallulloo
  • 18,884
  • 36
  • 119
  • 172
  • 4
    This is a bad solution because the config gets overwritten on dota startup. the safer solution is to put that code into a autoexec.cfg so it is written into config on every startup. – Wandang Jan 29 '14 at 11:38
  • http://gaming.stackexchange.com/questions/152890/why-is-an-autoexec-cfg-used-in-steam-games/152891#152891 – Wandang Jan 29 '14 at 12:25
  • 3
    @Wandang: Fixed. – Ullallulloo Jan 29 '14 at 22:11
  • 1
    I have just added -console -hideconsole in launch options and it enables the console but it is closed when game starts.. win win without having to dig into the folders ))) – Dmitry Matveev May 30 '15 at 07:25
4

Put +con_enable 1 into your launch options. The + makes it untouchable for the autoexec. It's the most elegant solution for your problem.

megaflup
  • 41
  • 2