Failed to create D3D9 Device!

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 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.