Failed to create D3D9 Device!
I was playing A Hat in Time, and suddenly the game crashed. When trying to load the game up again I get the following message:
Failed to create the D3D9 Device! This can happen if the desktop is locked. Exiting...
I have ran dxdiag
which says everything is hunky-dory.
Best Answer
You can try the standard fixes:
- Reboot your computer.
- Verify Integrity of Game Files.
- Update your drivers.
People have reported the following fix the issues.
- Setting Game Launch Options to
-dx9
. Browse Local Files.
Right click A Hat in Time; press Properties...; select Local Files tab; select Browse Local Files...
This will open an explorer window tosteamapps\common\HatinTime
. From here navigate toHatinTimeGame\Config
and openHatinTimeSystemSettings.ini
Edit game config.
steamapps\common\HatinTime\HatinTimeGame\Config\HatinTimeSystemSettings.ini
From here there are two reported fixes:
Edit
ResX
andResY
to smaller values.ResX=1600 ResY=900
Set
Fullscreen
to false.Fullscreen=False
For me setting fullscreen to false worked.
The game set my vertical monitor as the default, and then positioned the game on a different monitor.
Pictures about "Failed to create D3D9 Device!"
How do I fix failed to create D3D9?
D3D errors typically occur if you are running the game at settings which your machine does not adequately support or if you are running outdated video drivers. Other potential causes include outdated Windows installs or larger video card issues.Failed to create d3d9 device Fix
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: ANTONI SHKRABA, ANTONI SHKRABA, Vlada Karpovich, Ketut Subiyanto