The Bureau: XCOM Declassified

The Bureau: XCOM Declassified

Not enough ratings
Script Fix for the PhysX Crash Bug
By metamec
The Bureau: XCOM Declassified crashes on Nvidia systems when PhysX is enabled due to a bad DLL file. Fix it with a couple of lines of Powershell.
   
Award
Favorite
Favorited
Unfavorite
Introduction
Since its release many years ago, this game has been crashing for Nvidia GPU users due to a problematic DLL file called PhysXCore.dll. You will know if you are affected by this problem because disaster strikes after just a minute or two of gameplay when you encounter this biplane:



Nvidia installs multiple versions of this DLL file in separate subfolders for backward compatibility. However, as the display driver evolved, these subfolder names became unpredictable, repeatedly breaking existing guides. This script resolves the issue by finding the correct DLL (even if the subfolder name changes again) and replacing the faulty one.
Prerequisites
Before proceeding, please ensure the following:

Tip: If you wish to vet the script, please scroll down to the 'Review the Script'
section before running it on your system.
Quick Fix: Copy-Paste Solution
1. Launch Powershell by pressing ⊞ Win + R, type 'powershell' (without quotes), and press Enter.



A Powershell window should now open.



2. Download the Script by copying the following line of code with Ctrl+C, then pasting it into the PowerShell window using Ctrl+V.

Invoke-WebRequest -Uri https://raw.githubusercontent.com/metamec/bureau-fix/master/bureau-fix.ps1 -OutFile ./bureau-fix.ps1

3. Run the Script by copying the following line of code with Ctrl+C, then pasting it into the PowerShell window using Ctrl+V.

./bureau-fix.ps1

All being well, you should now see a message at the bottom of the powershell window indicating that a working version of PhysXCore.dll was successfully copied:



Script executed. No more game crashes. Time to save the world, Agent! 🕵️‍♂️
Review the Script
For peace of mind, consider reviewing the script before executing it, or have a tech-savvy friend give it a once-over. You can open it in Notepad after running the Invoke-WebRequest command above:

notepad ./bureau-fix.ps1

Alternatively, it can be found at Github[github.com].
Tweaking the Script
The script attempts to detect The Bureau's installation folder automatically, but if you purchased the game from a platform other than Steam this will not work. To resolve this problem, you will need to manually locate the game's installation folder and update the $Global:InstallPath variable accordingly.



Mission accomplished! Now go enjoy the game before the aliens change their mind about letting you win. 👽

2 Comments
metamec  [author] 14 Jul @ 5:46am 
Great to hear! I hope you're enjoying it. 👍
Zubumafu 13 Jul @ 1:00pm 
thank you. This worked for me :D