GithubHelp home page GithubHelp logo

dota2-thecore-config-engine's Introduction

⚠️ Warning

Since Valve removed support for advanced autoexec, this config is most likely completely unusuable. If you don't know exactly what you're doing, don't attempt to use this.

Here is an official statement of the author, explaining the situation.

In the unlikely case that anyone from Valve reads this: please re-consider your decision and just prevent multiple abilities/items per keypress. That would make awesome customization available again.

Alternatives?

Here's a list of some relevant projects:

⛔ Disclaimer: These projects MIGHT be forbidden by Valve and MAY lead to a VAC ban.

What is this?

This is a system of .cfg files that controls almost all aspects of the game.

Using this, you have full control over what Valve lets you configure: you can tweak every aspect of the game by modifying text files, and also create special functions and keybinds that are not possible to make from the in-game menu.

Easy to share, easy to customise.

How to set it up?

  1. Remove all in-game keybinds. Do this by left clicking on a bind, then click the X that appears. If you want to be safe, press F12 in-game to save a screenshot of your binds so you don't forget them if you ever wish to go back and uninstall my engine.

  2. Choose one of the keyboard layouts (found inside either the Dota2 Reborn folder). You can look in the keyboard layout visual images folder to see how the layout will be. I recommend using "super compact layout" since it's the one we've worked the most on. If you are experienced, you can take the Dota2 Core and start building your layout from scratch.

  3. Copy the contents from inside of the folder you've chosen to \Steam\SteamApps\common\dota 2 beta\game\dota\cfg\. Keep the file structure you see inside the folder as it is.
    There are two dota\cfg folders, one is in the game subfolder, one is not, make sure not to confuse them.

  4. You can modify the files however you want to match your preference, but make sure to read and understand what the files do. There are plenty of comments inside them. The main files which control the binds are the keybinds_default, keybinds_alt_pressed and keybinds_space_pressed.

  5. Once the game loads, the autoexec.cfg will be executed automatically and you'll hear a Hand of Midas sound. Alternatively, press F8 in-game to reload it or force a reload by opening up the console and typing exec autoexec.cfg.

How to uninstall?

  1. Just delete the files you pasted in the cfg folder.

  2. Set your keybinds back the way you want them

  3. Run this command in the console to enable double-tap for self-cast (if it was affected by the setup in any way)

    dota_ability_self_cast_timeout 0.5

Note: Double tap selfcast is intentionally disabled to prevent miscasts. This was done by making the tolerance so low only scripts can trigger it.

Frequently Asked Questions

Why can't I double-tap to self-cast or change wards with double-tap?

That is intended behaviour in my super compact layout, to prevent miscasts. Alt+Key should do self-cast or switch wards. Furthermore, double tap self cast is impossible if you are using quick casts.

This was done by lowering the dota_ability_self_cast_timeout tolerance from 0.5 to something low like 0.01. So low that only scripts can trigger it.

Do I have to remove ALL the in-game keybinds?

You can keep a few keybinds but they will override the .cfg files, but I cannot guarantee there will be no conflicts. Be careful.

Why do some of my commands, like Tilde pinging, not trigger?

That must be because of your non-standard keyboard. There is a maintained German keyboard layout you should try if you are German, if not you should consider changing your keyboard layout to standard English in Windows options.

For Tilde pinging, some exotic codes for that key are not recognized by the Source engine. Right now, Tilde on English keyboards is `. If you type your Tilde key and it doesn't look like that then you know why it isn't working.

It says the Alt key was remapped to Tilde. Why do I still have to press Alt+Click on items and abilities to show their status in chat?

That is an issue on Valve's part, as their dota_remap_alt_key command isn't 100% complete and mostly just moves the map ping functionality, and the in-game ALT+Key commands (which become Tilde+Key commands).

Did you have to remap the ALT key to something like the Tilde key?

Yes, because otherwise Alt+Key commands would've only worked if you configured them in-game and I would have had less control over the layout from the files. Furthermore, some functionalities, like custom functions, couldn't be bound to ALT+Key if I didn't move the ping key. It's because of the source engine.

Can I bind keys like Shift, Escape, Ctrl, Ping Key (Default: Alt), Mouse 1, Mouse 2 and Mouse 3?

No. Those are specially coded keys in the source engine that sadly aren't supported for modification.

My keyboard is different, and my Tilde key is in a different place. How do I change it?

Just go into the autoexec.cfg file and change the dota_remap_alt_key command to reflect the key that you want to be your secondary "ALT" modifier.

My in-game item/ability labels are blank, can't I put the keys there?

From the files you can't really do that, but there is a visual hack:

  • You can put ALT+QWER/DFXCMouse5 or whatever the keys are on each keybind, and you will have Alt+Q", Alt+W"... displayed in-game, even though those are actually (Tilde+Q, Tilde+W...) and no conflicts will exist. I do it like that just as a visual hack to see my key. Mine looks like this (the ALT+Key keybinds are actually Tilde+Key in my super compact layout, and they don't conflict; I just use them to have some labels on my items in-game)
Does CAPSLOCK still do what it usually does, even if it's a keybind?

YES OF COURSE, BUT IT'S A KEY IN SUCH A USEFUL POSITION THAT YOU MIGHT AS WELL USE IT. Alternatively, you may change the keybind, or even change how windows handles that pesky button atogether.
Note that if you remap CAPSLOCK in windows, you will also need to do so in your dota config.

How does it work?

The autoexec.cfg file is loaded and executed automatically by the dota2 client which acts as an engine which loads and combines other .cfg files into a flexible keyboard layout which is easy to modify.

Take a sniff through the files—there are plenty of explanatory comments in each .cfg file.

Each config file has its own role. Once you understand what they do, they're easy to tweak.

Currently this project is obsolete, since Valve doesn't allow autoexec capability as it did in the past

dota2-thecore-config-engine's People

Contributors

aetherv avatar aevyz avatar anlsh avatar don4of4 avatar e-nikolov avatar jaccarmac avatar jamiepaton avatar kaisforza avatar lupuleasa-core avatar mfarrugi avatar mirarara avatar ohad83 avatar sembrani avatar skipkayhil avatar tabby- avatar tgfish avatar wakemaster39 avatar xatulu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dota2-thecore-config-engine's Issues

Dota 2 Reborn Won't Open

I have a really old pc, but I am still able to run dota 2 just fine, but whenever i hit play on dota 2 reborn it takes me to the loading screen and then shuts down with no error message. I've tried everything people said, the lauch options thing, restart pc etc. And I don't have the 64 bit folder either, so that can't happen too. I don't think is my pc because a lot of people got this problem, I hope it's a bug, going to be fixed.

A lot of issues you might experience are due to one reason: Not removing in-game binds

  1. You haven't removed all in-game binds.

After so many people reported issues I realized most of them were due to some leftover keys in the in-game key settings menu in Dota2. Make sure to remove all of them unless you know exactly that the keys you are adding don't conflict with anything.

Pro-Tip: Everything in the in-game menu overrides what has been set in the external .cfg files.

Problem with running autoexec.cfg

When i`m trying to run dota (after i put folder with autoexec.cfg in to \Steam\SteamApps\common\dota 2 beta\dota\cfg) the console says that :

Checking AUTO DLC

AUTO DLC resuming

===========[AUTOEXEC CONFIG LOADED]=============

Loopuleasa's Super Compact Layout v4.3       
         Updated 04/11/2014                  

Updating sound cache [44015 entries]
Found 358 sound files in c:\program files (x86)\steam\steamapps\common\dota 2 beta\dota\sound\sound.cache
Updated 0 out of 358 cached files [420.335 msec]
Unknown command "dota_settings_quick_target_attack"
Unknown command "load_current_hero_nomod_binds"
Loaded default network config file. Loaded revision 17 OK
Loaded cached network config file. Data contains revision 17, not newer than current revision 17; ignoring.
Got network config from CDN. Data contains revision 17, not newer than current revision 17; ignoring.
WARNING Item schema mismatch after update!
GC told us to expect 20BA5EF3, we got 456385AF

and then nothing happends. No changes

Implementing "Smart-Casting"

As mentioned in #26, how would you like this accessed? Have it affected by a toggle so that you have either smart-cast or quickcast? or have it as a third toggle option to cycle between? I can start work on this now, and I would guess that it could be implemented by the end of the week if things work as intended.

Ping not working in Reborn

Hi,
thanks a lot for the config, I've been using it for almost a year and I am more than satisfied with it. However, when I use your config for Reborn I cannot use ping. It does not matter if I use Alt or Tilde, it still does not do the ping.

Follow does not work correctly

When you issue a unit to follow your hero. The unit will just walk to you hero then stop following it. Example: Use helm of the dominator to gain control of a jungle creep. Now try to have the jungle creep follow you.

Additional lag when using this config engine.

Dota Legacy, and I'm using v 5.0 of the compact version.

The game is dropping a lot of frames since I installed. I normally have no problem running the game at 1440p keeping 60fps, but it's noticeably slower with the keybindings installed.

How to make camera move instantly

I am currently using the middle mouse button for normal camera movement, but there is a delay between when I move the mouse and when the camera moves. How can I make it instant? I looked through the files but couldn't find any option for it.

voice activation crashes

Hi, I'm currently using a modified version of your super compact QWERTG layout (I have remapped a few buttons here and there to reflect my personal preferences)

But when trying to use the ingame voice chat it freezes the screen for a few seconds for some reason. At times it freezes until I release the button, sometimes just a few seconds. But this is very annoying as I am prone to getting ganked or attacked during that time (I think my character stops moving aswell)

Any ideas?

Remapped ALT key isn't remapped completely

Because volvo did a poor job with the dota_remap_alt_key command, some functionalities like ALT+Click on items/abilities/clock/heroes in order to post something in chat do not work.

Talking about the chat text like:
"Enemy has > Scythe of Vyse"

For those, you still need to use the old ALT, even if the key was remapped to something like Tilde.

Cannot see in-game item/spell labels or in-game menu binds?

Then that's how it should be.

The configs don't alter the in-game binds, they are separate. The binds do work, but they are not shown.

If you want a workaround to having item lables (when ALT was rebound to Tilde) you can do this:

Because the ALT key was remapped, you can put ALT+QWER/DFXCMouse5 on each keybind, and you will have "Alt+Q", "Alt+W"... displayed in-game, even though those are actually (Tilde+Q, Tilde+W...) and no conflicts will exist. I do it like that just as a visual hack to see my key.

[Main Thread] To do list for future features and fixes

Recent Ideas from Reddit:

  • add the new patrol command to the config core (Maybe add it in a place like ALT+S, and move the Auto-Attack-Toggle command from that key to ALT+3)
  • buttons for voice party and voice team
  • make a script that switches/toggles between voice types
  • make a script that switches to other units on hold, and on release goes back to hero (useful in many in-game micro situations, like a non-hero selection CTRL-Move)

Ideas:

  • Edit readme files to only feature the Reborn client
  • Caster mode (probably with the help of Pimpmuckl)
  • Update the tutorial section with Sembrani's custom hero scripts
  • Update the blank CORE layout with more up to date features, if needed
  • Add more layouts for people to choose from
  • Add AZERTY keyboard setup
  • Integrate smartcasting in the super compact layout
  • "Jungle control": a key it will check all the camps in the radiant jungle (except ancients) without switching to hero like your rune checker If i use another one key it will do all the dire camps.
  • Folder names too huge for windows to handle, should be shorter

Can't implement:

  • Find solutions between Source 1 and Source 2 click functionalities (doesn't work since valve discontinued sixense_left_click and might never be added back due to fear of hackscripts)
  • F5 enable/disable switch in-game menu (for some reason gameui_hide doesn't work because you can't trigger any scripts from menu)
  • Make Space+F2 be jump to courier, to preserve consistency (Doesn't work since the courier jump script is different than a camera jump script and for some reason adding two calls to that in the script doesn't work)

Fixed & Implemented:

  • Add a color legend for the visual layouts
  • Edit visual images with the new command switches
  • Add SPACE+F6 as rclick repeat toggle in images
  • Move scoreboard in a different place (Mirror to Reborn, Alt+H in legacy)
  • Space+Tab to be switch+Jump to next in control group, instead of scoreboard (Mirror to Reborn)
  • Chat Wheel for the say commands
  • Implement netgraph
  • Fix quick courier script here
  • Add german layout keyboard setup and
  • Implement a form of smartcasting in dota2 (Legacy)
  • Dota 2 Reborn fix for toggle for health segmentation
  • Functionality for some items/abilities to be quick cast and some not to be
  • Readme of tech/game changes of each setup
  • Printing text on console screen (legacy) (https://www.reddit.com/r/Tf2Scripts/comments/36y0n1/printing_text_on_screen_script/)
  • Cfg that implements individual key quick/normal cast (https://dl.dropboxusercontent.com/u/8382360/cfg.zip)
  • Make a toggle for right click deny with 3 states: on, off, space dependant
    • Net graph with consoletool netgraph
  • Fps display with cl_showfps 1
  • Add the new netgraph in reborn (Now set a key for it, like F11, which is the defunct dev mode)
  • Add a new directory in root (Besides Dota2 Legacy and Dota2 Reborn) called "Functions and Tutorials" for all the nifty scripts we've made, with tutorials for them on how to use them. Each custom script will be kept minimal in their own folder, with a README.md on how to use it
  • Make the remap for reborn be "CARET" instead of "`"

German layout keyboard have some incompatibilities

The ones reported were:

  • Z is reversed with Y
  • Tilde (key left of "1") is actually reversed with backspace

I suggest switching them up in the files so that it works okay with your keyboard. Find all instances of "Z" and replace them with "X" and also find all instances of "`" which is Tilde and replace it with ""

UNINSTALLING the script - One thing is left to do if you want Double Tap to self-cast to work

A couple of you reported this to me, and apparently one setting doesn't revert if you remove the config files because of volvo.

it was a setting that was modified to remove the tolerance for double tap

it's called dota_ability_self_cast_timeout 0.01

it was set in the settings_game folder to be so narrow that only scripts were working, so that it prevents miscasts on double tap

just open console and type

dota_ability_self_cast_timeout 0.5

and then you have it as default

[Legacy] F7 does not properly switch between quick cast and normal cast.

When I hit F7 to switch from the default (quick cast) to normal cast, it still quick casts everything. I've found that I can fix this by first self-casting a spell or an item, but I'd rather not have to do that every time I play.

Is there a way I can just completely disable quick cast from being a function?

Thanks for the otherwise awesome layout!

Scroll Wheel Panning

I have a horizontal scroll wheel. Can I use a combination of horizontal and vertical scroll wheels to pan the camera?

Legacy Super Compact item_0 broken

Your recent commit changed toggle_enabled_use_item_1-5 to enabled_use, except item_0.

bind "mouse5" "enabled_use_item_0" is how it should be.

Remapping ALT key is not possible on some keys

Special keys like Ctrl, Shift, Escape, Mouse 1 & 2 do not work for remapping the ALT key using dota_remap_alt_key command.

People have reported that other special keys don't work either (the ones people have on non-standard keyboards)

Selfcasting in quick succesion to Tab Control Group cycle will Alt-Tab you -- Solution

For example you wish to self-poof with all your meepos so you should do something like this:

Alt + W + Tab + W + Tab + W + Tab + W

But because you hold Alt and press Tab, your dota client alt tabs because that's a windows thing.

As a workaround, I suggest looking into custom hero modes and making one for meepo, where you make Space+W be self-cast poof. Additionaly, you need to make Space+Tab be control group cycle too, and move scoreboard somewhere else like "/"

For making a Meepo hero mode check the folder and read the instructions.

Also, found something else useful on the internet regarding some meepo scripts https://www.youtube.com/watch?v=ztUdzoJb0do not sure if it's still functional

Suggestion: Use alt+space as a modifier combo instead of as a command

I am currently using a modified version of these keybinds where instead of using Alt+Space as a command for switching quickcast I use Alt+Space as a modifier combination, so I can use Alt+Space+X commands. This opens lots of space for extra keybinds, which I find very useful.

Right now I am using Alt+Space for "configuration" keybinds that don't need to be used in a hurry. For example, Alt+Space+A toggles autoattack, Alt+Space+[QWER] toggles quickcast on each skill individually and Alt+Space+[123456] sets dota_health_per_vertical_marker to different sizes (for culling blade).

Say & copy current time to clipboard?

a while back you used to be able to display the chatwheel time on the screen.

Is there a similar solution in source2? or just copying it to the clipboard would be wonderful.

Keybinds not working

The coin sound plays so the autoexec works. but none of the keybinds are working. Anyone else having this problem? Any fixes?

Alt+F4 in Source 2 actually closes the game

In Source 1 that wasn't the case, but now the previous keybind in my setup for ALT+F4 for toggling auto-selecting summoned units is overriden by the close game command.

I need someone to figure out how to disable game close or to rebind the Auto Select Summons toggle to another key.

Remapped Ping (Tilde) stopped working

I even reinstalled dota 2 (deleted the folder even) but it stopped working and only works when the cfgs aren't being executed.
I can't ping but everything else that does not use the Tilde key (Ability warn, How much gold to item, Buyback info, etc.) works.
I use an ABNT keyboard, which means the "~" key, is actually an apostrophe (' key). I'm reporting it only now because the cfgs worked wonderfully, until now.
Tested on Reborn.

Some Abilities / Items Quick-cast, some not

Mentioned in Issue #26, Comment 3, You want some abilities and items quick casted, and some not. I assume you want this as a toggle? (i.e. press Alt+abilitykey to toggle between the two modes for each skill/item)

I am happy to start working on this, as I have quite a bit of free time at the moment.

Hero Specific Setup

You forgot to change the execif to exec in the hero setups.

I also like to add the nohero_mode to the autoexec.cfg otherwise u get an error in console complaining about load_current_hero_nomod_binds not being found until you launch that command or another hero.

Config Files Aren't Loading

I'm only trying Bot games but no key bindings are working because I don't believe any config files are loading.

I copied the entire contents of folder "C:\Users\Me\Desktop\super-compact-dota2-keybinds-master\Dota 2 Reborn Keyboard Setups\Loopuleasa's Super Compact QWERTG-DFXCV layout (ALT,SPACE mods)" into C:\Program Files (x86)\Steam\SteamApps\common\dota 2 beta\dota\cfg and now no key bindings work. What am I missing?

ALT Self-cast works for items but not spells

The alt modifier is not working for my spells. I have quick cast enabled, and alt is bound to +keyshift2.

For example, entering the following commands into console works:
+keyshift2
dota_ability_execute 1;dota_ability_execute 1

But the following keypresses do not work:
alt+w

I see in the console that alt is enabling the correct cfg file.

in fact even simply binding w to the command doesn't work:
bind w "dota_ability_execute 1;dota_ability_execute 1"

Normal-cast not working correctly in Source1

In Reborn, the config engine works beautifully and i have no problems.

That said, in Source1 for some reason the Space-bar normalcast only seems to work for items, but not abilities. I haven't changed anything within the Source1 config in ages so I don't know why it would glitch now. I've tried using the f7 toggle to reset it, as well as reloading the engine entirely but to no avail. It's not a huge issue, as I prefer playing in Reborn anyways but I thought I'd run it by you anyways. Thanks m8.

Deleting Legacy binds?

Since everyone is on reborn now (and have been for a while), I think it would be a good idea to remove the legacy layouts since there is no longer any need for them, and their presence would only confuse some people.

Mini map hero icons dont resize

When heroes on the mini map get close together their icons don't rezise. this causes lots of overlap and you cant tell much from the mini map when heroes bunch up.

Use built-in quick-attack

dota_settings_quick_target_attack 1

will set it so that pressing the attack key on the keyboard will issue an attack command wherever the cursor is.

Switching to Normal or Quick Cast Mode does not switch properly

To concisely describe the issue, you must switch modes and then SPACE+cast an ability for the switch take effect for a non-modifier cast. Example steps are below:

Starting state:

  • Pressing Q quick casts ability 1.
  • Pressing SPACE+Q normal casts ability 1.
  • (Pressing F7 switches modes).

Current behavior:

  • Press F7.
  • Pressing Q quick casts ability 1. *
  • Pressing SPACE+Q quick casts ability 1.
  • Pressing Q a second time normal casts ability 1.
  • Press F7.
  • Pressing Q normal casts ability 1. *
  • Pressing SPACE+Q normal casts ability 1.
  • Pressing Q a second time quick casts ability 1.

Expected behavior:

  • Press F7.
  • Pressing Q normal casts ability 1.
  • Pressing SPACE+Q quick casts ability 1.
  • Press F7.
  • Pressing Q quick casts ability 1.
  • Pressing SPACE+Q normal casts ability 1.

Please note the starred bullets. At these steps, you can press Q any number of times (including zero) and it will exhibit the same behavior until SPACE+Q is pressed (after which the behavior for Q changes).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.