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 / Problem compiling code

Author
Message
Unreal Engineer
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 16th Feb 2008 01:36
I get no compile errors for this code yet when I run the program I get nothing but a black screen. Can anyone spot something I might have missed? Thanks all.

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 17th Feb 2008 14:46
Lose the dbCLS - Instead - TRY dbSetCursor(0,0)

CLS will wipe out EVERYTHING - 3d objects etc.

Mistrel
Retired Moderator
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 17th Feb 2008 22:19
That dbCLS() code doesn't run until much later. He says that he gets nothing but a blank screen at runtime.

http://3dfolio.com
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 17th Feb 2008 22:55
Unreal Engineer
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 18th Feb 2008 00:41
I tried that command just to be sure, I get the same result. Any other suggestions?

I admit I'm a complete n00b at programming but this is something I really want to catch on to so that I can help a friend out with a big project of his.
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 20th Feb 2008 23:02
I get the same problem too, it runs fine when I debug but does nothing when I compile.
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 21st Feb 2008 01:21
When you start a new project for example "Dark GDK - 2D Game5" and then compile it, it only shows a blank black screen. What's up with that, am I missing a step or something?
Lee xiao
16
Years of Service
User Offline
Joined: 13th Mar 2008
Location:
Posted: 14th Mar 2008 04:04
I got it.Runuing following code I got a green screen.
My code :
#include "DarkGDK.h"
#include "string.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbPrint("test");
dbCLS(255*255);//set the color and using the color to clear the screen
while ( LoopGDK ( ) )
{
dbSync ( );
}
return;
}
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th Mar 2008 05:16
try


...and try these cute code tages next time

MayoZebraHat 1979
16
Years of Service
User Offline
Joined: 21st Dec 2007
Location:
Posted: 4th Apr 2008 07:33
I can't even get animation functions to work in DGDK. However they work fine in DarkBASIC pro. Maybe there is something you need to make it work right?
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 4th Apr 2008 14:18
@Mayo - MOST THINGS work fine in DarkGDK and I've had quite a bit of luck with it. Perhaps you should start a new thread with your animation woes and some source code and the like - perhaps media for the troublesome model - so someone can help you.

Jason

Login to post a reply

Server time is: 2024-11-20 07:31:21
Your offset time is: 2024-11-20 07:31:21