VOGONS


First post, by ghotik2002

User metadata
Rank Newbie
Rank
Newbie

There must be a silly reason for my problem: I download dgVoodoo2 bundle, extract ddraw.dll, copy that over the game folder and run the game.
Very often (but not always) I get from the game logs a DirectDrawcreate(0, ..) error with DDERR_GENERIC error code, in practice while doing the DirectDraw most simple and robust operation.
I also tried to extract dgvoodooCpl.exe and create a dgVoodoo.conf file, but the result is the same.
Please, help!

Reply 2 of 9, by ghotik2002

User metadata
Rank Newbie
Rank
Newbie

Log? I suppose there is a way to get a text logfile, but I never saw one. I'll read the doc better....
I noticed one thing: the minimum requirements talk about dx10, I doubt it's supported on my old pc, maybe this is the reason.

Reply 3 of 9, by ghotik2002

User metadata
Rank Newbie
Rank
Newbie

Well, it took a while but I learnt ... here's the log

[7496] [dgVoodoo] INFO: Reading config from file D:\Games\MoHo\dgVoodoo.conf.
[7496] [dgVoodoo] INFO: INI file based version of config file is successfully read.
[7496] [dgVoodoo] INFO: DDraw is successfully loaded: D:\Games\MoHo\DDRAW.DLL
[7496] [dgVoodoo] INFO: Reading config from file D:\Games\MoHo\dgVoodoo.conf.
[7496] [dgVoodoo] INFO: INI file based version of config file is successfully read.
[7496] [dgVoodoo] ERROR: DDBase (0112C550): Cannot initialize the DDI object.
[7496] [dgVoodoo] ERROR: DirectDraw (0113B4F8) Initialization failed: Cannot init device DDI.
[7496] [dgVoodoo] ERROR: DirectDrawCreate/DirectDrawCreateEx: creating DirectDraw object has failed.
[7496] Couldn't create DDraw
[7496] Launching start game box.
[7496] Direct3DCreate9 (SDKVersion = 1F)
[7496] [dgVoodoo] INFO: Reading config from file D:\Games\MoHo\dgVoodoo.conf.
[7496] [dgVoodoo] INFO: INI file based version of config file is successfully read.
[7496] [dgVoodoo] INFO: Reading config from file D:\Games\MoHo\dgVoodoo.conf.
[7496] [dgVoodoo] INFO: INI file based version of config file is successfully read.
[7496] [dgVoodoo] INFO: Direct3D9 (01130140) DirectDraw has been loaded: D:\Games\MoHo\DDRAW.DLL
[7496] [dgVoodoo] ERROR: DDBase (0307AF90): Cannot initialize the DDI object.
[7496] [dgVoodoo] ERROR: DDBase (0307AF90): Cannot initialize the DDI object.
[7496] [dgVoodoo] ERROR: Direct3D9 (01130140) Initialization failed: No any output device is found. Invalid adapter or an adapter with unplugged/invalid display output is specified in the config?
[7496] [dgVoodoo] INFO: Reading config from file D:\Games\MoHo\dgVoodoo.conf.
[7496] [dgVoodoo] INFO: INI file based version of config file is successfully read.
[7496] [dgVoodoo] INFO: Reading config from file D:\Games\MoHo\dgVoodoo.conf.
[7496] [dgVoodoo] INFO: INI file based version of config file is successfully read.
[7496] [dgVoodoo] INFO: Reading config from file D:\Games\MoHo\dgVoodoo.conf.
[7496] [dgVoodoo] INFO: INI file based version of config file is successfully read.
[7496] Start Dialog: Cancelled or error.
[4780] DXGI WARNING: IDXGIFactory::CreateSwapChain/IDXGISwapChain::ResizeBuffers: The buffer width inferred from the output window is zero. Taking 8 as a reasonable default instead [ MISCELLANEOUS WARNING #1: ]
[4780] DXGI WARNING: IDXGIFactory::CreateSwapChain/IDXGISwapChain::ResizeBuffers: The buffer height inferred from the output window is zero. Taking 8 as a reasonable default instead [ MISCELLANEOUS WARNING #2: ]

The computer is an old portable with Win7-64, I don't expect miracles, but what wonders me is the failure in a basic DirectDrawCreate(0) call, the first and simplest of all operations. To be noted that the games are working ok without dgVoodoo2 wrappers. I'm just testing the effects of combining dgVoodoo2 with DxWnd to fix compatibility issues.

Reply 4 of 9, by Bakhtosh

User metadata
Rank Newbie
Rank
Newbie

dgvoodoo 2 is a wrapper that translates commands for old DirectX versions (DirectDraw/Direct3D) to Direct3D 11 commands and needs a GPU that at least supports hardware rendering at GPU feature level 10.0 to do that. See here: http://dege.freeweb.hu/

It doesn't matter if your GPU/GPU driver supports the original commands. They has to support the translated commands.
So the question is: What GPU is your system using. From the log my guess is that it doesn't support hardware rendering at GPU feature level 10.0

Can you post the video card name & model?
What happens if you set dgvoodoo to use Microsoft WARP (software rendering)?

Reply 5 of 9, by Dege

User metadata
Rank l33t
Rank
l33t

Yes, Gho, your GPU probably does not support DX 10.0.
But also there is a known issue with ATI Radeon 3000 which supports DX 10.0 but creating some hw buffers fails with its driver, for some reason.

Reply 6 of 9, by ghotik2002

User metadata
Rank Newbie
Rank
Newbie

Gorgeous!
Setting the OutputAPI field in dgVoodoo.conf to the "d3d11warp" value fixed the problem for me!
My video card is a "Mobile Intel(R) 4 Series Express Chipset Family" (as reported in Device Manager), a cheap integrated video card inside my old portable, so it is reasonable that there could be no hardware support for sophisticated GPU functionalities.
So, setting software rendering works, though it is awfully slow.
But who cares? My goal was to have the possibility to run dgVoodo in combination with DxWnd and find out where it works and where it doesn't. Then, once the problems are fixed, moving to a better platform with hardware GPU support will provide the good performances that anyone wants. In effect, on my other newer computer things are going to be much better.
Thank you very much for the support. As a side effect, I now learnt how to configure and debug the dgVoodoo tool, so hopefully I will bother you less frequently now.
😊

Reply 7 of 9, by Bill_Boquet

User metadata
Rank Newbie
Rank
Newbie

This is my first post and as my issue seems quite similar to the one reported here (Mobile Intel graphic card), I take the opportunity to continue the discussion.

dgVoodoo works fine with PC Scrabble 99 (french version), a very old game developed for Windows 95/98 with a Windows XP patch. This is a static game only using DirectDraw, initially with DirectX 6.1. For the purpose of this post, the game itself is not of importance as the problem faced on only one machine seems HW related.

This machine is a 15 years old HP Compaq 6720s, running Windows 10 Pro 64-bit.
https://support.hp.com/us-en/document/c01129747
Chipset : Mobile Intel GM965. Graphics : Intel GMA X3100, up to 384-MB shared system memory
Graphic card : Mobile Intel(R) 965 Express Chipset Family (Microsoft Corporation - WDDM 1.1). Driver : 8.15.10.2697 from October 1, 2012.

The game runs fine with dgVoodoo 2.78 on 3 other machines with Windows 10 Pro 64-bit. It also starts fine on the HP Compaq 6720s without dgVoodoo (but have problems afterwards) and with another (basic) wrapper. With dgVoodoo 2.78 (and also earlier versions down to 2.60) on this machine, the game stops immediately with a popup error message : PC-Scrabble: Initialisation DirectDraw - Erreur 80004005 DirectDrawCreate.

DebugView++ logfile :
[dgVoodoo] INFO: Reading config from file C:\Program Files (x86)\PC Scrabble 99\dgVoodoo.conf.
[dgVoodoo] INFO: INI file based version of config file is successfully read.
[dgVoodoo] INFO: DDraw is successfully loaded: C:\Program Files (x86)\PC Scrabble 99\DDRAW.dll
[dgVoodoo] INFO: Reading config from file C:\Program Files (x86)\PC Scrabble 99\dgVoodoo.conf.
[dgVoodoo] INFO: INI file based version of config file is successfully read.
[dgVoodoo] ERROR: DDBase (004BC300): Cannot initialize the DDI object.
[dgVoodoo] ERROR: DirectDraw (004CA2B8) Initialization failed: Cannot init device DDI.
[dgVoodoo] ERROR: DirectDrawCreate/DirectDrawCreateEx: creating DirectDraw object has failed.
<process started at 22:25:47.035 has terminated with exit code 0>

Setting the OutputAPI field in dgVoodoo.conf to the "d3d11warp" fixes the startup issue, but the game behaves afterwards like without wrapper and crashes.

Thanks in advance for feedback on this issue. It is not critical for me as the HP Compaq 6720s is only used for test purposes. Nevertheless, very strange that dgVoodoo fails only on this machine.

Reply 8 of 9, by Dege

User metadata
Rank l33t
Rank
l33t

Thanks for the log! Something fails with initializing D3D11 or with creating some of the related D3D11 resources. Intel GMA X3100 supports DX 10.0, so it should not be a problem.

What if you explicitly select D3D11 with FL 10.0 as the output API in the config?

Anyway, unfortunately dgVoodoo cannot report a more detailed report about the problem. If very interested, you may install the Windows SDK, and then having the DirectX Control Panel, you can enable the debug layers on top of D3D11 which gives detailed report about the internal state of D3D11 and the errors occuring.

Reply 9 of 9, by Bill_Boquet

User metadata
Rank Newbie
Rank
Newbie

Thanks Dege for your feedback and for the tips. In fact, I also tried all the other options of the OutputAPI field, but with similar behaviour : it fixes the startup issue, but the game behaves afterwards like without wrapper and crashes.

I will try to test with the Windows SDK during this WE and report afterwards.