Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Help please!

Author
Message
MosheB
16
Years of Service
User Offline
Joined: 6th May 2008
Location:
Posted: 6th May 2008 11:31
I tried to run a simple dark GDK tutorial program:

#include "DarkGDK.h"

void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbCreateAnimatedSprite ( 1, "animatedsprite.png", 4, 4, 1 );
dbSprite ( 1, 0, 0, 1 );
while ( LoopGDK ( ) )
{
dbPlaySprite ( 1, 1, 16, 200 );
dbSync ( );
}
return;
}

and I get these Runtime errors:
"Failed to get device caps"
"Failed to find valid stencil buffer"
"Unable to create device"
"unable to setup 3D device"

why do i get those errors, and how can i resolve them?

thanks,

Moshe

Moshe
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 6th May 2008 15:38
I don't really know, but it sound slike your graphics card is very old, and doesn't support this. Or maybe you don't have correct DirectX?
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 6th May 2008 20:50 Edited at: 6th May 2008 20:50
I blame the video card...otherwise it wouldn't even try, I think.

Do you know how to run dxdiag.exe? (Its dirt simple, START/RUN...type in dxdiag, press ok) When the progress bar at the bottom left stops, you can see the DirectX version on the first tab, and the Display tab will tell you about your graphics card.
FERSIS
18
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 8th May 2008 19:15
You need DirectX 9c from August of 2007 (at least).
Cheers
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 9th May 2008 01:32 Edited at: 9th May 2008 01:35
Quote: "You need DirectX 9c from August of 2007 (at least)."


No... not at least... You need the Aug2007 DXSDK at least AND at most... You need that SDK for DGDK to run properly... Others may work but each SDK is different...

And I don't think the problem is a missing DXSDK because then wouldn't the compiler be complaining about a whole bunch of link errors? Whereas if you're graphic card fails it is more likely to say such stuff...

NOTE: If my rambling makes no sense please tell me to shut up...

~~It's not who you are underneath, but what you do that defines you.~~
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 9th May 2008 04:30
...Makes sense to me, Core2uu. They are runtime errors, and not compile/link errors.

There are only a few errors that make those functions fail.
The first failure is from GetDeviceCaps. Here are the possible errors:
D3DERR_INVALIDCALL
D3DERR_INVALIDDEVICE
D3DERR_OUTOFVIDEOMEMORY
D3DERR_NOTAVAILABLE : Occurs when the desktop is locked.

The other errors relate to the data that the first function failed to get.

Does this happen the first time you run GDK applications? If no, then is is likely that an application that you are running is not freeing the resources properly.

Are you running any other games, or graphics applications at the same time?

It might be possible that your graphics card is not installed correctly, or that it is otherwise configured incorrectly, has an issue with its drivers, or is just broken, or has insufficient resources (memory).

Login to post a reply

Server time is: 2024-09-29 19:28:01
Your offset time is: 2024-09-29 19:28:01