Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: autoexec.cfg commands explained

  1. #1
    Basic Member
    Join Date
    Jan 2012
    Posts
    180

    autoexec.cfg commands explained

    I read a few tutorials online, that mention only few console commands. Some are self explainatory, but others require some testing, so I thought why not write it down. Ill update it as I figure out what they do. (It wouldnt be a bad idea to sticky this.

    First of all, you should right click on dota2 in steam - properties - launch, add "-console". This enables ingame console which can be used for configuring all sorts of useful stuff, watching/downloading replays and what not.


    Then you have to create a "autoexec.cfg" text file located in C:\Program Files\Steam\steamapps\common\dota 2 beta\dota\cfg\ (or whatever your install dir is)

    Note that everytime you start a new dota match you will either have to write "exec autoexec" in your console, or bind a key to do it for you.



    ===========AUDIO/VIDEO==========
    fps_max 60
    mat_vsync "1" //note that " " are not really required
    mat_triplebuffered "0" // 0 is off, 1 is on, the usual

    ===========BINDINGS==============

    bind "`" "toggleconsole"

    You can bind more then 1 command for a single key. You just have to divide them with ";". Heres a few useful examples


    bind "a" "dota_player_units_auto_attack 0;mc_attack" //disables autoattack and attacks when you press a
    bind "s" "dota_player_units_auto_attack 1;dota_stop" //enables autoattack and makes your character stop moving
    bind "h" "dota_player_units_auto_attack 0;dota_hold" //disables autoattack and makes your char stop moving.

    bind "C" "+dota_camera_follow; +dota_camera_follow" //pressing C will make the camera jump to your character and following him untill you start moving your mouse.

    bind "KP_1" "dota_range_display 200" //numlock 1 key will make a circle with a radius of 200 units.
    bind "rightarrow" "say_team miss bottom" //you can also put say gg or something so everybody can read it

    bind "q" "dota_ability_execute 0" //goes from 0 to 5
    bind "1" "dota_ability_autocast 0" // Toogles autocast for stuff like drows frost arrow, default is alt + q/e/...
    echo "testing" //this writes "testing" in your console: Other people dont see it.

    Here are some advanced commands:

    this toogles 1000 range with the "v" key.

    alias "range_toggle" "range_on" //this is what happenes when you 1st time press the v key
    alias "range_on" "dota_range_display 1000; alias range_toggle range_off" // shows range and transforms the range_toggle command into range_off command. So, when you press v next time, range_off will be executed
    alias "range_off" "dota_range_display 0; alias range_toggle range_on" // hides range and transforms the range_toggle command into range_on command. So, when you press v next time, range_on will be executed, and the circle repeats itself.

    bind "v" "range_toggle"





    ===========GAMEPLAY CHANGES================

    dota_disable_range_finder 0 // 0 shows a tiny line so you know the range without the radius.
    dota_minimap_misclick_time "2" // you have to hold your cursor over your minimap for 2 seconds before it will accept orders. This is useful for noobies, when they run away they accidentally click on the minimap and their hero changes direction, usually going the opposite way.
    dota_force_right_click_attack "1" - right click deny, no need for a + left mouse. Not sure if works on ally heroes.
    dota_player_units_auto_attack 0 - disable autoattack
    net_graph 1 //1-5 shows simple-complex ping and many other things, 0 hides
    dota_minimap_hero_size "600" //changes the hero icon size on the minimap. Default is 600.
    dota_ability_quick_cast "1" // doubletaping skills cause self casting
    dota_camera_speed "3600" // Scrolling speed DotA is about 6500, default 3000)
    dota_sf_game_end_delay "10.0" //seconds, you can decrease number this to skip the ancient exploding animation and leave earlier.

    dota_friendly_color_r 1.0 // changes minimap color for towers and enemies (friendly/enemy/neutral and r/g/b commands also exist)
    dota_hud_healthbars 3 // ? nothing?



    ===OTHER===========

    dota_match_details <matchID> // shows you details of the match with the selected ID.
    record name.dem //starts recording the match youre watching/playing. Should be used like this "record replays/name.dem" . Useful if their replay system isnt working.
    stop //stops the recording and saves it into dota2 folder (unless specified to save in replays)

    some very interesting aliases can be found here :

    http://pastebin.com/kxd5aqxK
    Last edited by Viperus; 01-24-2012 at 02:38 AM.

  2. #2
    Basic Member VenomBHz's Avatar
    Join Date
    Dec 2011
    Posts
    974
    Autoexec, as the name says, is auto executed everytime you run Dota 2. There is no need to exec it.

    Another tip for you guys if you don't like the console popping up everytime you run the game, just add "con_enable 1" to your autoexec.cfg, and remove -console from launch properties.

    You will be able to open console pressing ~. It just doesn't pop automatically every time.

  3. #3
    Basic Member
    Join Date
    Jan 2012
    Posts
    180
    Well mine doesnt autoexec every time. And from what I've heared, it doesnt work for anybody.

  4. #4
    Basic Member Evol's Avatar
    Join Date
    Sep 2011
    Posts
    629
    for some commands (don't know about others) you don't need to "exec autoexec" because it's enough when they are executed automatically on game launch.

  5. #5
    Basic Member
    Join Date
    Nov 2011
    Posts
    18
    simple question. after the 2+ years of HoN i have grown quite accustomed to the courier and my hero being toggleable on my tilde key. how would i go about modifying my .cfg to make this a possibility?

    thanks for all the help.

    pbp

  6. #6
    Basic Member
    Join Date
    Nov 2011
    Posts
    114
    Quote Originally Posted by pedobearpig View Post
    simple question. after the 2+ years of HoN i have grown quite accustomed to the courier and my hero being toggleable on my tilde key. how would i go about modifying my .cfg to make this a possibility?

    thanks for all the help.

    pbp
    Code:
    // HoN style hero/courier button
    alias "swapHero" "+dota_camera_follow; alias swapFocus swapCourier"
    alias "swapCourier" "dota_select_courier; alias swapFocus swapHero"
    alias "swapFocus" "swapHero"
    bind "`" "swapFocus"
    Place that code in your autoexec.cfg, and make sure your console key is bound to something other than the tilde key. Here are some more examples of simple scripts. Here is my smartcasting script which is a lot more complex.

  7. #7
    Basic Member
    Join Date
    Nov 2011
    Posts
    18
    wow thank you so much for the help. you rock!

  8. #8
    Basic Member knurlhelm's Avatar
    Join Date
    Aug 2012
    Posts
    1,679
    By the way there is a 'Courier Key' option, just saying :P

  9. #9

    Help with cfg

    I'm trying to make a script to change my name in game to a colored one. (I know...)

    in my autoexec I've got the line

    bind n "exec coloredname.cfg"


    and in coloredname.cfg

    setinfo name "my()name()here()"

    if () is the color symbol
    the script runs and changes my name to my and drops the special characters.

    Can the .cfg's not handle the color characters?

    Is there a way to make this work?

  10. #10
    Basic Member
    Join Date
    Nov 2011
    Posts
    171
    Edit: nvm found it , was too simple in the end.
    Last edited by Nedrapter; 01-23-2013 at 01:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •