Dying Light 2: Reloaded Edition

Dying Light 2: Reloaded Edition

View Stats:
Ouroboros Feb 4, 2022 @ 2:18pm
4
4
3
3
2
6
Found where keybind options are located
Like the title says, I found where the keybind file is located for people that want to mess with it instead of waiting however long for a patch.

Go to: C:\Program Files (x86)\Steam\steamapps\common\Dying Light 2\ph\source

Open data0.pak (back this up just in case) with WinRAR, 7-Zip, or whatever other program you have.

Continue to: \scripts\inputs\

And finally open inputs_keyboard.scr with Notepad or your preferred text reader.


Using this, I've managed to unbind capslock and actually rebind the turn around key to something else. And reading through the different keybinds, people that want to rebind mouse 1 and mouse 2 should be able to. However, the game currently doesn't recognize mouse 4 and 5 as real buttons, so those still need to be bound through an external program.

Make sure if you're rebinding keyboard actions to mouse buttons or vice versa to note that keyboard actions require EInputDevice_Keyboard while mouse actions require EInputDevice_Mouse in the line of code.

Edit: For those that want to rebind jump to something else, there are MANY actions attached to EKey__SPACE_. I assume the game is currently bugged where rebinding jump only replaced one or two lines with the new button. You should be able to use a new key for jump by just replace every instance of EKey__SPACE_ to your preferred button and the new button should act like it's suppose to.
Last edited by Ouroboros; Feb 4, 2022 @ 7:28pm
Originally posted by Soüp:
Originally posted by Sledge Hammer!:
Originally posted by Soüp:
All the key names can be found in the file inputenums.def in the same folder.

So even with this method, I'm having trouble binding actions to the mouse, because the keys that are set in the controls menu in game override what's set in this file. I've been digging through the game files and can't figure out where the user control config is stored, or where the default controls are stored (because it's not taking them from this config file.) I'm trying to get mouse 4 and 5 working as well but this issue is getting in the way.

After you edited the file, did you restart the game and go back to the rebind setup menu and chose to revert to default values? When I did, it showed my edited keys as the new defaults.

BTW, it was nabbed who pointed me to this -

Originally posted by nabbed:
But you probably will have to load defaults after editing to update the actual game keybinds with these modified defaults.
I actually did that before and it loaded the original defaults. Now I did it again and...it worked? Well thanks for suggesting I try it again.

Anyway I got the side mouse buttons working, it was actually rather simple. Open up inputenums.def in the same folder in the data archive. Way down at the bottom you'll see:
export int EMouse__BUTTON_1 = 0x0000 + 0xF000; export int EMouse__BUTTON_2 = 0x0001 + 0xF000; export int EMouse__BUTTON_3 = 0x0002 + 0xF000;
So just add two more lines below that:
export int EMouse__BUTTON_4 = 0x0003 + 0xF000; export int EMouse__BUTTON_5 = 0x0004 + 0xF000;
Then you can use those buttons in the controls config file (button 4 is back, 5 is forward on the side buttons.)
< >
Showing 1-15 of 119 comments
Sledge Hammer! Feb 4, 2022 @ 2:20pm 
You're doing God's work, sir! Thank you.
Uncle BuLLee Feb 4, 2022 @ 2:32pm 
Originally posted by >< V ><:
I'm so used to hitting caps lock for sprint, now I can finally remove that stupid turn around. Thank you!
but there is no sprint in this game just one speed?
Keelan Feb 4, 2022 @ 2:32pm 
huh? you can do this in game menu. i changed caps lock to inventory at the start.
Ouroboros Feb 4, 2022 @ 2:35pm 
Originally posted by Keelan:
huh? you can do this in game menu. i changed caps lock to inventory at the start.
It might not affect opening inventory since it's putting you in a menu, but for anything else you still turn 180 degrees when pressing the button.
BurKaZoiD Feb 4, 2022 @ 2:38pm 
So do you have to compress this again once you are done?

Also, while extracting 7-Zip gave me several data errors.
Last edited by BurKaZoiD; Feb 4, 2022 @ 2:41pm
ΜΣ†ΛĿ Feb 4, 2022 @ 2:45pm 
Originally posted by BuLLee:
Originally posted by >< V ><:
I'm so used to hitting caps lock for sprint, now I can finally remove that stupid turn around. Thank you!
but there is no sprint in this game just one speed?
there is when you unlock some parkour abilities shift becomes sprint and is also hard coded
Ouroboros Feb 4, 2022 @ 2:45pm 
Originally posted by BurKaZoiD:
So do you have to compress this again once you are done?

Also, while extracting 7-Zip gave me several data errors.
I would just drag out the specific file to your desktop or where ever to edit. Then save it and drag it back into your zip program. It should automatically overwrite and recompress after asking you for permission.
BurKaZoiD Feb 4, 2022 @ 2:48pm 
Originally posted by Ouroboros:
Originally posted by BurKaZoiD:
So do you have to compress this again once you are done?

Also, while extracting 7-Zip gave me several data errors.
I would just drag out the specific file to your desktop or where ever to edit. Then save it and drag it back into your zip program. It should automatically overwrite and recompress after asking you for permission.

Ahh, that's a good idea. You win today good sir!
Ouroboros Feb 4, 2022 @ 2:52pm 
Originally posted by >< V ><:
Originally posted by ΜΣ†ΛĿ:
there is when you unlock some parkour abilities shift becomes sprint and is also hard coded

Another reason why Ouroboros is doing "God's work." Hopefully, I can rebind that to caps lock.

:cozybethesda:
You should. I definitely remembering seeing LSHIFT in there.
nabbed Feb 4, 2022 @ 3:02pm 
omg
nabbed Feb 4, 2022 @ 3:21pm 
Question: where does the game store a configuration file of actual rebound keys?

I assume that the game doesn't change inputs_keyboard.scr and repack it into data0.pak
Is that right?

So the procedure would be to modify this file and then load defaults?
Is this correct?
Ouroboros Feb 4, 2022 @ 3:23pm 
Originally posted by nabbed:
Question: where does the game store a configuration file of actual rebound keys?

I assume that the game doesn't change inputs_keyboard.scr and repack it into data0.pak
Is that right?

So the procedure would be to modify this file and then load defaults?
Is this correct?
Editing the file changes the actual keybinds. You don't have to load default.
nabbed Feb 4, 2022 @ 3:33pm 
Originally posted by Ouroboros:
Originally posted by nabbed:
Question: where does the game store a configuration file of actual rebound keys?

I assume that the game doesn't change inputs_keyboard.scr and repack it into data0.pak
Is that right?

So the procedure would be to modify this file and then load defaults?
Is this correct?
Editing the file changes the actual keybinds. You don't have to load default.

I looked at the file w/o editing it. My changed keybinds are not in it.
Do you see what I am saying?
GaviJa Feb 4, 2022 @ 3:36pm 
Can someone pin this?
PocketYoda Feb 4, 2022 @ 3:38pm 
Pretty disgusting state of affairs that we have to do this..
< >
Showing 1-15 of 119 comments
Per page: 1530 50

Date Posted: Feb 4, 2022 @ 2:18pm
Posts: 119