DARK SOULS™ II

DARK SOULS™ II

132 ratings
Dark Souls 2 FPS default controls/input lag FIX
By Reepz
Got so irritated by the delay on mouse inputs and ♥♥♥♥ controls that i remade it all in AHK.

To run this script you need to have AHK installed, which you can download for free at: http://ahkscript.org/download/ahk-install.exe
   
Award
Favorite
Favorited
Unfavorite
What this does
This script fixes all of the problems you have with the keyboard and mouse setup.

Here is a list of what all (important) controls do using this script:

  • WASD - movement
  • mouse - look around and aim
  • leftclick - mainhand attack (RIGHT weapon slot!)
  • rightclick - offhand (shield and so on, LEFT weapon slot!)
  • alt + leftclick - mainhand strong attack
  • alt + rightclick - offhand strong attack (or parry as shield)
  • CTRL leftclick - swap mainhand weapon
  • CTRL Rightclick - swap offhand weapon
  • Shift - sprint/roll
  • Space - jump (only during spriting)
  • F - interact or accept
  • C (or Z like default) - toggle walking on/off
  • E - use item
  • middle mouse click - lock on target
  • R - change locked on target
  • scroll down - change item
  • scroll up - change magic
  • 1 - guardbreak
  • 2 - jump attack
  • Q - toggle interact or switch to 2handed


Please note that this script is entirely secure from the VAC bans. This is a script that does not alter the game in any way unlike graphic mods and things like that. All it does is remap your REAL keyboard to the new keys, i limited it to only be active if dark souls 2 is the main window.

This script can be exported to work without AHK as a normal EXE file but the reason for me not doing that is because im super paranoid that it would be even a slight chance of someone being banned for that. So i do not recommend downloading any programs that is linked here or anywhere else that is a EXE file since it is not made by me and thus i cannot say for sure it dooesnt include virus or would put you at risk for VAC ban.

If you have any problems whatsoever with this script or getting it to work then please let me know, its easiest for me to reply at the thread over here:
http://gtm.steamproxy.vip/app/236430/discussions/0/558754260419885570/
Changelog
2014-04-28 00:12:
I forgot to add change main/offhand weapon so:

  • CTRL leftclick - swap mainhand weapon
  • CTRL Rightclick - swap offhand weapon

2014-04-28 07:40:
I noticed that the walk by pressing CTRL was causing a conflict with changing weapon, so i removed it... walking toggle is now only Z or C.

2014-04-28 09:32:
more issues with ctrl, changed the code handling that... game really hates pc users....
Step by step
If you have AHK since before you can skip to step 4. or 5. if you have scripts since before that you wish to keep.

1. Download and install AHK.

2. Launch program (it will likely ask you about a test script, if so then press yes and skip to step 4).

3. Bottom right corner amongst the icons near the clock (might be hidden) there is a new one for AHK. rightclick it and choose edit.

4. CTRL A to highlight all content of default script, erase everything.

5. Copy and paste the script in the section below into your now empty AHK window. (very likely notepad)

6. Save this script (if it ask for location to save it dont matter where, anywhere you want)

7. Now just restart AHK or reload the script by rightclicking the icon at the bottom right (again).


Once its reloaded and program is turned on the script will be active as long as its specifically "Dark Souls II" you are playing.

To exit out of the program hold SHIFT and press ESCAPE, i have added this to shut down AHK. Use this if you ever mess something up.
The actual script. COPY EVERYTHING!
;;;;;;;;;;;;;COPY EVERYTHING FROM HERE TO END;;;;;;;;;;;;;;;;;;;;;
#SingleInstance, force

+Escape::ExitApp ;Shift and Escap to kill program!

#NoEnv
#IfWinActive, DARK SOULS II
~LButton::H
~RButton::U
LAlt & ~LButton::Send {G down} {G up}
LAlt & ~RButton::Send {Y down} {Y up}
LCTrl & LButton::send {RIGHT down} {RIGHT up}
LCtrl & RButton::send {LEFT down} {LEFT up}
f::ENTER
r::L
SPACE::F
SHIFT::SPACE
c::Z
q::N
return

1::
send {w up}{a up}{s up}{d up}{sleep 10}
Send {W down}
Sleep 10
Send {H down}
Sleep 10
Send {W up}
Send {H up}
return

2::
send {w up}{a up}{s up}{d up}{sleep 10}
Send {W down}
Sleep 10
Send {G down}
Sleep 10
Send {W up}
Send {G up}
return
;;;;;;;;;;;;;COPY EVERYTHING FROM HERE TO START;;;;;;;;;;;;;;;;;;
Known issues and FIXES
  • 1. Left or Rightclicks does sometimes not register (or never) or attacks when you dont want it to
    In the keybindings options ingame on mouse, on all 4 attack bindings set them to NOTHING like in attached image!


  • 2. Some things isnt working
    It is very important that you have not changed the ingame controls past default and to fix above problem. This script just emulate pressing those default controls so if they are changed it will hit whatever is bound instead. If you have changed your controls from default then rightclick and choose default. Change the attack mouse buttons to NOTHING after that!


  • 3. Im still dying
    You didnt praise the sun hard enough.


  • 4. Im scared of being VAC banned for using additional programs
    well... so am i, which is why i dont make this script into a selfrunning exe file that dont need AHK. AHK is not a third party hack of any kind, its just a program that reads code into macro's. Im sure many of you got a program that comes with your keyboard mouse to rebind keys and maybe make macros. Its the same thing exactly, so unless they plan on banning people with macro keyboard/mouses then they will not ban you for changing keymapping on keyboard/mouse using this script.

    This script does not alter code or change the game in any way. All it does is emulate what key you are pressing. The script is simple, all i did was replace left click with the default attack button on keyboard.


  • 5. Script doesnt work (AHK is blocked)
    I got feedback that for some that there has been a problem with steam blocking AHK. If you have this problem then find where you saved the script and rightclick and run it as administrator. I do not know why steam (and steam only) blocks AHK but this fixed the issue. Please let me know if you have/had this problem!


  • 6. I get error when i try to run script (see image)
    If you get this error then those that had fixed it by changing the system input to english. I dont know exactly who has this problem but me with a swe keyboard does not, but 2 others have reported it as a problem 1 being russian.


  • 7. Script aint working properly even if i tried all above (Czech keyboard)
    The following problem was experienced and solved by bohnice05:

    "I did everything exactly as it is in guide, but my 1 and 2 buttons don't work for guardbreak and jumpattack. When I press these buttons, nothing happens at all. Also when I use alt+ right mouse button for shield powerattack, it change stance from running to walk instead...."

    Solution:
    "my Z and Y buttons are switched... in Czech keyboard. So I remap strong offhand attack as absolutly different button = for example P for me... and it is working now. + I deleted C::Z from script and bind walking while pushing to C and swtiching runnning / walking stances as Z. And I also find out how to fix jumpattack and guardbreak ... my buttons 1 and 2 are as numbers only if you pres shift, and default they are + and ě ... :D so I set + and ě in script and its working. Whole problem was about Czech keyboard."

  • 8. (NEW) Having problems with installing AHK, i cant get it to run like guide states
    Some people has had problems because of the updated version of AHK adding some help page that sucks. Here is their official way of getting started. So if you have any problems whatsoever with getting the icon of AHK to appear (or you get the help page) use this:

    •1. Right-Click on your desktop.
    •2. Find "New" in the menu.
    •3. Click "AutoHotkey Script" inside the "New" menu.
    •4. Give the script a new name. Note: It must end with a .ahk extension. Ex. MyScript.ahk
    •5. Find the newly created file on your desktop and Right-Click it.
    •6. Click "Edit Script".
    •7. A window should have popped up, probably Notepad. If so, SUCCESS!

    This is where you resume my guide. paste script, save, reload and so on.

    Thanks Sluurth Man for finding this problem.
111 Comments
Lamblekin 28 Nov, 2021 @ 9:35pm 
Great script but I'm having an issue where I can't strong attack with my right handed weapon. Instead it changes between one and two-handed weapon. I switched it to default settings and make the attacks LShift instead of LCTrl. I even removed the bind for two-handed in the script but the problem persists. Any help would be appreciated (Original DS2 btw)
Hamlet 24 Sep, 2021 @ 6:01am 
sorry for necroposting, but does this work on SotFS?
EbonyDubois 21 Apr, 2020 @ 1:43pm 
Dude. Thank you so much for this. I changed some things, personally like these things a little better: SPACE remains the same, SHIFT & left lick or right click are heavy attacks / parry. "E" is Enter (interact) and "E" (use item) is "R". These controls are actually very similar to Dark Souls 3. Here's the script, YOU HAVE TO PASTE IT FROM "#NoEnv" UNTIL "return"

#NoEnv
#IfWinActive, DARK SOULS II
~LButton::H
~RButton::U
LShift & ~LButton::Send {G down} {G up}
LShift & ~RButton::Send {Y down} {Y up}
LCtrl & LButton::send {RIGHT down} {RIGHT up}
LCtrl & RButton::send {LEFT down} {LEFT up}
e::ENTER
r::E
c::Z
q::N
return
volatile_salad 16 Dec, 2017 @ 6:27pm 
That's why I came back to this autohotkey! To play DS2 :P
volatile_salad 16 Dec, 2017 @ 6:27pm 
It's really not :P. Shitty poise system, more linear, equip load oversimplifications, broken DS1 infusions, shitty magic- like really shitty magic esp in PvP(have to wear 3 rings for ok dmg), shit PvP system with invaders being super penalized, horrid stamina which encourages roll spam with no consequences.
Reepz  [author] 4 Feb, 2017 @ 12:00pm 
Play ds3 instead, its better :)
maximoose 5 Nov, 2016 @ 8:49am 
It's 2016 and somebody still plays this game?
God_of_madness4 4 Nov, 2016 @ 9:01pm 
ok so dumb question but how do i actualy go about binding the mouse buttons to nothing? cos it wont let me escape the choosing a key bit without pressing one that then becomes the new binding?
Reepz  [author] 29 Apr, 2016 @ 1:12pm 
As most of you have noticed, Dark Souls 3 doesnt need a script as far as ive seen. You can change controls in that so its acceptable. So thats the reason i havent made one.
Grawhide 10 Apr, 2016 @ 10:59am 
Yep, forgot to confirm the change :steamfacepalm:. All is good now, thanks!