Steam – Dota 2 config file in steam gets reset all the time!

dota-2steam

I've just started playing dota 2 for a week now and have played LoL for a year. I've researched some stuff about binding and editing the config file. I've found what I wanted to do, however, every time I exit dota 2, the config file gets reset, and the things I've added won't work after reopening dota2.

I really don't want to type approx 10 lines of code in the console everytime I've to restart dota 2.

The core problem is that some things in the config file gets removed, some gets readjusted to the original and some do not work even if they stay there.

Config file path:
E:*MyFolder*\Steam\SteamApps\common\dota 2 beta\dota\cfg

Here are some example:

These codes get removed every time:

alias "leftclick" "+sixense_left_click; -sixense_left_click"

alias "atkGround" "mc_attack; leftclick"

These codes are there, but never work. Worked only the first time:

bind "MOUSE4" "atkGround"

bind "F1" "dota_camera_setpos -2273.898682 1232.745483 982.072876"

bind "F2" "dota_camera_setpos 3035.773438 -2972.680176 966.072937"

This one gets readjusted to 600 every time!

dota_minimap_hero_size 900

Is there a way to make these permanent?!

Thanks in advance!

-Iraqi_Warrior

Best Answer

I got the answer on reddit. Reddit

I basically have to create an autoexec.cfg file in the same folder and paste my code there instead.