Failed to create D3D9 Device!

Failed to create D3D9 Device! - Photo of Woman Writing on Tablet Computer While Using Laptop

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:

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 to steamapps\common\HatinTime. From here navigate to HatinTimeGame\Config and open HatinTimeSystemSettings.ini

    Edit game config.
    steamapps\common\HatinTime\HatinTimeGame\Config\HatinTimeSystemSettings.ini

    From here there are two reported fixes:

    • Edit ResX and ResY 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!"

Failed to create D3D9 Device! - Photo Of Person Using Laptop For Graphic Designs
Failed to create D3D9 Device! - Crop young businesswoman using laptop while drinking tea at home
Failed to create D3D9 Device! - From above of crop black male journalist in formal wear writing article while sitting at table with red laptop and cup of takeaway coffee



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