Dying Light 2

-----
Better Keybinds by Big_Deaddy
-----
Installation:
- If this is the first pak mod you have installed, simply drop data3.pak into Dying Light 2\ph\source.
- If you want to merge this mod with other pak mods, drag the scripts folder from my data3.pak into the data3.pak already in Dying Light 2\ph\source.

If this mod doesn't work for you, try renaming data3.pak to data2.pak.
-----
Compatibility:
Tested with title update 2/22/2024 (1.15)

This mod modifies the following files:
- ...\scripts\inputs\inputs_keyboard.scr
- ...\scripts\inputs\inputs_gui.scr
- ...\scripts\player\controllers_setup.scr
- ...\gui\hud_pc\campfire_widget_pc.gui
-----
If you would like to do some tinkering yourself or override a few of the default bindings, here's some information to get you started:

How to open Dying Light .pak files:
- Any program that can open a .zip file can open a .pak file, such as WinRAR or 7-Zip.
- Alternatively, renaming data3.pak to data3.zip should let you open it without downloading anything. Just make sure you change it back to .pak so the game will recognize it.

How to edit Dying Light .scr files:
- Any text editor can edit a .scr file, such as Notepad++.
- You can also use Notepad without downloading anything, but it may be difficult to read.

How to override a default keybinding:
1) Extract this mod's data3.pak\scripts\inputs\inputs_keyboard.scr and open it.
2) Locate the keybinding you would like to change.
3) In the Preset("") section, change the EKey__/EMouse__ variable to the key you wish to use (the list of possible EKey__/EMouse__ options can be found in data0.pak\scripts\inputs\inputenums.def).
3a) If you change an Ekey__ variable to EMouse__ or vice versa, make sure to update the EInputDevice_ variable to match.
4) In the LayoutKeybinding() section, remove or comment (add a '//' to the beginning) the matching Action() lines changed in the previous step.
5) Save and overwrite the file in data3.pak.
-----
Other notes:
- The inputs_gui.scr file is no longer used for keyboard mapping with this mod. All associated lines have been migrated to inputs_keyboard.scr.
- If your game doesn't receive any input from mouse or keyboard, there is an error somewhere in your edited file.
- I've added some comments (marked with !!) with some of my findings and the lines that have been changed.
- If you run into any problems, feel free to post a comment on this mod's Nexus page or join my Discord server.
- This game's controls really weren't made with flexibility in mind, so tinker at your own risk.
-----

Article information

Added on

Edited on

Written by

BigDeaddy