0 of 0

File information

Last updated

Original upload

Created by

Bingle

Uploaded by

jarari

Virus scan

Safe to use

Tags for this mod

66 comments

  1. jarari
    jarari
    • premium
    • 568 kudos
    Locked
    Sticky
    VR support is coming soon™. Just need some addresses defined in the library.
  2. yamachoz
    yamachoz
    • member
    • 0 kudos
    Title: Mouse Keycode Offset Bug in DKAF (Observed with Cancel Attack)
    I’ve encountered and resolved an issue with the "Dynamic Key Action Framework (DKAF)" while using it with the "Cancel Attack" mod, and I’d like to share my findings. Since DKAF serves as a foundation for various mods beyond just Cancel Attack, this might be helpful to others experiencing similar problems with different mods.
    Issue Description
    In my case, I was configuring "Cancel Attack" via DKAF’s JSON file (CancelAttack.json) and noticed that mouse button keycodes were consistently shifted by +1 from the intended values:

    • Setting "Keys": "259" (Mouse Button 3) resulted in Mouse Button 4 (keycode 260) being recognized.
    • Setting "Keys": "260" (Mouse Button 4) triggered Mouse Button 5 (keycode 261).
    • Setting "Keys": "261" (Mouse Button 5) led to no response, likely because my mouse only has two side buttons (260 and 261), and 262 (Mouse Button 6) doesn’t exist on my hardware.
    Interestingly, keyboard keys like "Keys": "49" (N key) worked as expected without any offset.
    Environment

    • Game: Skyrim Special Edition 1.5.97
    • Mods: Cancel Attack (v1.0.0.0, Nexus ID: 92353), DKAF (v1.0.0.0, Nexus ID: 87706)
    • SKSE: SKSE64 2.0.20 (compatible with Skyrim SE 1.5.97)
    • Hardware: Mouse with two side buttons (mapped to keycodes 260 and 261)
    Root Cause
    After extensive testing, I confirmed that the issue stems from DKAF’s handling of mouse button keycodes (259 and above). It appears that DKAF’s DLL (DKAF.dll) applies a +1 offset specifically to mouse inputs, while keyboard inputs remain unaffected. This isn’t a problem with "Cancel Attack" itself or my hardware but a bug in DKAF’s mouse keycode processing. Since DKAF is used as a framework for many mods, this could potentially affect other mods relying on it, though I personally observed it with Cancel Attack.
    Workaround
    To assign an action (in my case, Cancel Attack) to the desired mouse button, you can account for the offset:

    • For Mouse Button 4 (260), set "Keys": "259".
    • For Mouse Button 5 (261), set "Keys": "260".
    This workaround worked perfectly for me, aligning the action with my intended buttons when using Cancel Attack.
    Additional Note
    The default "Cancel Attack" key (R, keycode 19) remains active even after configuring DKAF, as it’s hardcoded into the mod’s ESP and not overridden by DKAF. This is normal behavior per Cancel Attack’s design and unrelated to the keycode offset issue.
    Hope this helps anyone troubleshooting similar issues with DKAF-dependent mods!
    1. epicsanster
      epicsanster
      • premium
      • 0 kudos
      MY GOD U HAVE SAVED ME ANOTHER DAY OF TRYING TO TROUBLESHOOT THAT MOD. THANK YOU
  3. mogura300
    mogura300
    • premium
    • 0 kudos
    "If your game crashes on startup, it's most likely due to the error in JSON data"
    Can anyone provide some details about this?
    1. MyopicImp
      MyopicImp
      • supporter
      • 14 kudos
      it just means that most crashes caused by this mod are likely because you have made a syntax error in the JSON file you are using
  4. Arthenin
    Arthenin
    • member
    • 8 kudos
    Thank you! :)
  5. Chuivert
    Chuivert
    • supporter
    • 8 kudos
    Can we assign a double tap on a key for the action?
  6. HeyImEight
    HeyImEight
    • member
    • 0 kudos
    im dumb as hell sorry but can someone teach me how to operate this?
    1. I would also like to learn. I have no clue what I am supposed to do with this, but it's a requirement for a mod that I want to use. 
    2. SonnyBiggs
      SonnyBiggs
      • premium
      • 1 kudos
      This is a modder's resource, if you're just installing another mod that requires this plugin you don't need to do anything other than installing this.

      If you want to know how to use this plugin you need to know coding, have programming skills, software and scripting knowledge, and know how to acces built-in modding tools for any of this to make sense.
  7. MyopicImp
    MyopicImp
    • supporter
    • 14 kudos
    Does anyone know if ActionActivate on Furniture can be implemented using DKAF? By that I mean, ActionActivate needs an Object Ref ID as a furniture target of anim type, so is it possible to have that as the action with Paired Keywords to reference the furniture?
    1. MyopicImp
      MyopicImp
      • supporter
      • 14 kudos
      Ok, so there seems to be little traffic here, so I'll just leave my issue here for when anyone sees it.
      I'm trying to initiate an action on locating an ActorNPC within close proximity to the PC. However, the Targeting algorithms for the Paired Keyword Search doesn't seem to be functioning well. Irrespective of the Search Mode 1, 2 or 3 the Actions play always on keypress, without any actor being in range or even in the same cell.
      My json is this:
      {
        "Bump": {
          "Keys": "29,17",
          "GamepadKeys": "",
          "PairedSearchMode": 3,
          "PairedSearchDist": 100,
          "PairedTargetKeywords": "Skyrim.esm|0x13795,Skyrim.esm|0x13794",
          "ActionOrIdle": "Skyrim.esm|0x3DE4D",
          "PressDuration": 0.2,
          "Priority": 100
        }
      }

      Any help would be appreciated, thanks!
    2. NickLR
      NickLR
      • member
      • 2 kudos
      Up.
  8. Nickolkiin
    Nickolkiin
    • premium
    • 0 kudos
    https://www.creationkit.com/index.php?title=Input_Script is down and it's been down for a long while now. does anyone else have the key code reference numbers? or at least for Right Mouse key Space bar and the Letter Q for me, thanks?
    1. MyopicImp
      MyopicImp
      • supporter
      • 14 kudos
      You can use this link. The Dec values for each input key.
  9. rpgfreak9999
    rpgfreak9999
    • premium
    • 2 kudos
    Sorry for being dumb but I don't understand the "ActionOrIdle" section's hex number. How do you find what's supposed to go there?
    1. MyopicImp
      MyopicImp
      • supporter
      • 14 kudos
      Those correspond to the EditorIDs of the available Action or Idle for the player character. These can be found using SSEdit on Skyrim.esm, though not all idles or actions work for players. 
  10. Berzerkernox
    Berzerkernox
    • premium
    • 6 kudos
    Does this mod allow me to use gamepad and keyboard like AutoInputSwitch? If not, could I use AutoInputSwitch with this mod installed? I'm using a modlist.
  11. Litter27
    Litter27
    • member
    • 1 kudos
    Can two buttons be assigned at the same time, that is, 57+76, an example for a gamepad? Does this mean that if not?? 42,47 from your biography
    1. lobotomyxyz
      lobotomyxyz
      • supporter
      • 1 kudos
      if you assign with comma both must be pressed and in the order you specify