None of Dark GDK's file writing command work for me.
I've completely uninstalled and reinstalled Dark GDK, MSV C++ compiler, and DirectX. One at a time and all at once. No change.
I decided to run the following code to see exactly where the problem is.
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( ); //Program Controls Screen Refresh
dbSyncRate ( 60 );
dbDisableEscapeKey ( );
int var = 0;
int var2 = 0;
dbRandomize ( dbTimer ( ) );
dbOpenToWrite ( 1, "File.File" );
dbSleep ( 1000 );
if ( dbFileExist ( "File.File" ) )
var = 1;
if ( dbFileOpen ( 1 ) )
var2 = 1;
dbPrint ( "FileExist" );
dbPrint ( double ( var ) );
dbPrint ( "FileOpen" );
dbPrint ( double ( var2 ) );
dbPrint ( dbGetDir ( ) );
while ( LoopGDK ( ) )
{
dbSync ( );
if ( dbEscapeKey ( ) )
break;
}
return;
}
And I get the following output:
FileExist
1
FileOpen
0
This is a big problem because I can't even make save files now!
How in the world do i make a game without saving?
So any help to fix this would be greatly appreciated!!