Prey XInput Fix

IMPORTANT:

Since game version v1.09 this fix is no longer needed, because the game received an official option to enable XInput support.

If you are interested in using PS4 button prompts, you can find a corresponding option in the most recent version of the PRIC mod.


Download Sources


TL;DR

This fix resolves controller issues in Prey that were introduced with patch v1.05, by forcing the game to use XInput instead of the Steam Controller API by Valve.

Quick start guide:

  1. Open the archive and choose the button prompts you want to use by opening the corresponding folder
  2. Extract the file dinput8.dll to the release sub-folder of Prey. For example: "C:\Program Files (x86)\Steam\steamapps\common\Prey\Binaries\Danielle\x64\Release\"
  3. Start the game like you would normally, for example directly through Steam or Big Picture mode
  4. Important: If the fix does not work, make sure that you have turned off the usage of the Steam Controller API (see below)

Features

While Prey originally offered good controller support, patch v1.05 introduced various issues. Instead of choosing either XInput or the Steam Controller API based on the user settings, the game always uses the latter. This results in problems with the movement as well as certain controller settings or the controller not working at all if the user has disabled the usage of the Steam Controller API in game’s properties in Steam.

This fix re-enables XInput support and forces the game to use it, regardless of the settings.

Instructions

Supported Versions

This fix is designed for the latest, fully patched version of Prey and the Mooncrash DLC and might not work when used with older or otherwise modified executables.

  • Steam v1.08

Note that the fix currently does not work with the demo version of the game.

Install

The fix does not make any permanent changes to the game or to Windows and can easily be removed.

Important: When using a non-XInput controller such as the DS4, you will need a XInput emulator like DS4Windows for this fix to work

  1. Open the archive and choose the button prompts you want to use by opening the corresponding folder
  2. Extract the file dinput8.dll to the release sub-folder of Prey. For example: "C:\Program Files (x86)\Steam\steamapps\common\Prey\Binaries\Danielle\x64\Release\"
  3. Start the game like you would normally, for example directly through Steam or Big Picture mode
  4. Important: If the fix does not work, make sure that you have turned off the usage of the Steam Controller API (see below)

Although the fix forces the game to use XInput, it is necessary to disable the usage of the Steam Controller API in the game’s settings.

The safest way to do this is the following:

  1. In the Steam client go to the menu Steam -> Settings -> Controller -> General Controller Settings
  2. Make sure PS4/XBox Configuration Support is checked
  3. Go to Big Picture mode and find Prey in you library
  4. Click Mange Game -> Controller Options and uncheck Use Steam Configuration for Non-Steam Controllers
  5. Uncheck the setting from step 1 again, depending on whether it was checked in the first place

Uninstall

  1. Remove or rename the dinput8.dll from the folder of the game.

Known Issues

There are currently no known issues with using the fix.

Additional Information

Antivirus Software

Since this fix consists of an executable DLL file that uses “hacking techniques” such as injection and hooking, it could be classified as malicious by antivirus software. In that case, it might be necessary to add an exception rule to the scanner.

If you lack the trust in random people on the internet — and I would not blame you — feel free to use a meta online virus scanner like VirusTotal to verify the file.

Loading Other Fixes/Mods/Injectors

To increase the compatibility with other mods or injectors that are using a wrapper DLL, this fix offers two methods for remote loading of additional files. Note that there might still be compatibility issues between the different fixes, mods or injectors that have nothing to do with the loading process.

File method:

The fix will load another dinput8.dll automatically if it has the name dinput8_Remote.dll. Just rename the DLL you want to load accordingly. Using this method will lead to an error if the renamed DLL is not itself a dinput8.dll.

Folder method:

The fix will also automatically load all DLLs regardless of their names in a dinput8_Remote sub-directory. Just create a corresponding folder in the install directory of the fix. This is the only way to load multiple (conflicting) files.

Contact And Support

If you like this fix and want to support the development or show your appreciation with a donation, you can find more information on my website. There you can also find out more about other mods that I have done and means to contact me if you have a question, want to provide feedback, bug reports and suggestions.

Version History

v1.1:

  • Fixed launch issues for users that do not own the Mooncrash DLC

v1.0:

  • Upgraded the fix to game version v1.08

v0.6:

  • Added support for Mooncrash DLC

v0.5:

  • Upgraded the fix to game version v1.06

v0.4:

  • Controller movement no longer gets stuck on interactive items when using PS4 prompts

v0.3:

  • Added a separate version that shows button prompts of the PS4 instead of the XBox controller
  • Added more detailed instructions to the readme file

v0.2:

  • Added support for demo version of Prey
  • Added measures to make the fix more robust to updates of the game

v0.1:

  • Initial release
Advertisements

6 comments

    1. I just updated the fix to add support for the Mooncrash DLC. I only did very little testing at the beginning, so please let me know if something does not work as intended.

      Like

  1. Thanks for your work! I was stoked to find this and v0.6 worked flawless for me.
    Unfortunately, today’s update has broken it all over again, and the file is now preventing Prey from launching in Steam, thought I’d give a heads-up. Hoping for a v0.7 soon!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s