Author Topic: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)  (Read 2270 times)

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Issue: When starting the game in D3D9 in full-screen mode using the settings as shown below, it gives a black screen.

AGS Editor: Build 3.4.0.16, March 2017
General settings:
Color depth: 16-bit (hi-colour)
Resolution: 320 x 200

acsetup.cfg:
Code: Adventure Game Studio
  1. [sound]
  2. digiid=-1
  3. midiid=-1
  4. digiwin=-1
  5. midiwin=-1
  6. digiindx=0
  7. midiindx=0
  8. digiwinindx=0
  9. midiwinindx=0
  10. [misc]
  11. log=1
  12. game_width=320
  13. game_height=200
  14. gamecolordepth=16
  15. titletext=SRAM 2 - CINOMEH'S REVENGE (beta) Setup
  16. [graphics]
  17. defaultdriver=D3D9
  18. driver=D3D9
  19.  

Full AGS log: HERE

AGS.log errors:
Code: Adventure Game Studio
  1. Starting game
  2. D3DGraphicsDriver: D3D Device Lost
  3. D3DGraphicsDriver: D3D Device Lost
  4. D3DGraphicsDriver: D3D Device Not Reset
  5. D3DGraphicsDriver: InitializeD3DState()
  6. D3DGraphicsDriver: D3D Device Lost
  7. ...
  8. D3DGraphicsDriver: D3D Device Lost
  9. D3DGraphicsDriver: D3D Device Not Reset
  10. D3DGraphicsDriver: InitializeD3DState()
  11. WARNING: Not all of the Direct3D resources have been disposed; ID3D ref count: 1
  12. ***** ENGINE HAS SHUTDOWN
  13.  

I'm not sure if I posted this in the correct part of the forums. If posted in the wrong spot: sorry.

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Something weird is going on.
Can you try 3.4.1 Beta and see if that will work? It makes D3D run in 32-bit mode even if game is 16-bit.

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Using AGS Build 3.4.1 Beta3 gives the exact same issue...

ags.log here

btw,
* my GeForge GT 430 driver version is v381.65, which is up to date.
* DirectX is v12
« Last Edit: 17 May 2017, 20:28 by arj0n »

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
I forgot to ask what Windows version do you have. In the past I saw reports of D3D not working on Windows 10 properly.

Can you try using OpenGL in recently released 3.4.1 beta 4? That may be an alternative for D3D on newer systems (unless someone adds compatible renderer for DirectX 11 and higher).

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
I'm using Win10.
Tested this issue on more pc's. Only my own pc seems to have this issue. Maybe this happens because I use an old-ish graphic card?
Will try the OpenGL in the beta and let you know the results.

Thank you.

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Can you try using OpenGL in recently released 3.4.1 beta 4? That may be an alternative for D3D on newer systems (unless someone adds compatible renderer for DirectX 11 and higher).
OpenGL works perfect on my system :)

Radiant

  • AGS Baker
  • Mittens Knight
  • Return once more to the Two Kingdoms!
    • I can help with publishing
    •  
    • I can help with story design
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
      Radiant worked on a game that won an AGS Award!
Looks like some people are reporting the same issue with Heroine's Quest. They can resolve the issue by switching to DirectDraw 5, but it strikes me as odd that the older version works better than the newer.

Yeah, it seems Microsoft did something to D3D9 with an update and this is the result.
Perhaps the AGS implementation is not 100% spec compliant, but we aren't the only ones experiencing weirdness with D3D9 + fullscreen.

I have a 970 GTX on Windows 10, and I can't see a damn thing fullscreen, no matter what build I try. But I know it worked months ago.

EDIT: try setting vsync mode to on, it might work then

- Alan
« Last Edit: 03 Jul 2017, 18:51 by Alan v.Drake »

Radiant

  • AGS Baker
  • Mittens Knight
  • Return once more to the Two Kingdoms!
    • I can help with publishing
    •  
    • I can help with story design
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
      Radiant worked on a game that won an AGS Award!
I thought vsync was on by default?

I'm pretty sure it is off by default, as originally it wasn't supported when using Direct3D.

Dave Gilbert

  • Mittens Vassal
  • AGS Baker
  • Hi. Our names are FRIGGING ADORABLE.
    • Lifetime Achievement Award Winner
    •  
    • Dave Gilbert worked on a game that was nominated for an AGS Award!
      Dave Gilbert worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #10 on: 12 Jul 2017, 14:59 »
Bit late to this thread, but I can also confirm this is happening to a lot of users. Direct3D results in a black screen. Switching to DirectDraw fixes the problem. The common cause seems to be Windows 10, although it runs fine on my Windows 10 laptop.

Weirdly enough, this is the exact OPPOSITE of the problem many users experienced around 2011 with Windows 7. Running in DirectDraw would result in a black screen, but Direct3D fixed it. This problem was so prevelant that I advocated removing DirectDraw from AGS entirely. I'm happy that nobody listened to me. :-D

Radiant

  • AGS Baker
  • Mittens Knight
  • Return once more to the Two Kingdoms!
    • I can help with publishing
    •  
    • I can help with story design
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
      Radiant worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #11 on: 12 Jul 2017, 15:21 »
I wonder how hard it would be to add a DirectX 12 driver to AGS? DX5 is twenty years old and was shipped with Windows 98, DX9 is thirteen years and shipped with XP; it should be no surprise that compatibility for either of these is not a high priority for Microsoft.

Dave Gilbert

  • Mittens Vassal
  • AGS Baker
  • Hi. Our names are FRIGGING ADORABLE.
    • Lifetime Achievement Award Winner
    •  
    • Dave Gilbert worked on a game that was nominated for an AGS Award!
      Dave Gilbert worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #12 on: 12 Jul 2017, 15:31 »
What's weird is that the unsupported & antiquated DirectDraw works fine, but the (relatively) more modern Direct3D does not? It's confusing for sure!

Dualnames

  • AGS Baker
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on a game that was nominated for an AGS Award!
      Dualnames worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #13 on: 17 Sep 2017, 01:12 »
http://steamcommunity.com/app/439310/discussions/0/2592234299576775467/?tscn=1505603169

So have we found a solution to this besides just switching to DirectDraw?
No more military army stuff. I'm alive and back.

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #14 on: 17 Sep 2017, 01:56 »
So have we found a solution to this besides just switching to DirectDraw?

You can also switch to OpenGL.

Can you try using OpenGL in recently released 3.4.1 beta 4? That may be an alternative for D3D on newer systems (unless someone adds compatible renderer for DirectX 11 and higher).
OpenGL works perfect on my system :)

Dualnames

  • AGS Baker
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on a game that was nominated for an AGS Award!
      Dualnames worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #15 on: 17 Sep 2017, 05:26 »
My issue is that this specific person wants D3D bad.
No more military army stuff. I'm alive and back.

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #16 on: 17 Sep 2017, 12:59 »
Best way is to add new DirectX support then (11 or 12).

Dualnames

  • AGS Baker
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on a game that was nominated for an AGS Award!
      Dualnames worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #17 on: 18 Sep 2017, 21:51 »
So newest ags has that?
No more military army stuff. I'm alive and back.

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Error: D3DGraphicsDriver: D3D Device Lost (AGS v3.4.0.16)
« Reply #18 on: 18 Sep 2017, 22:28 »
So newest ags has that?
No. I mean, this probably would be best solution to add one.

By the way, don't other d3d9 games not working on Windows 10, or its just AGS?
« Last Edit: 19 Sep 2017, 00:06 by Crimson Wizard »