Quote: "I'm sorry, like I said I'm new and I'm not entirely sure what you mean by that"
Thats what these forums are for.
If you go into your project directory, create a new folder called whatever you like. Now, in Visual Studio go into your project properties then here is a combo box at the top make sure this is set to All Configurations then on the left select Configuration Properties then under this select General. Now on the right there will be a property call Output Directory, just click this and browse to your new folder that you created, now when you build the project either in Debug or Release it will be created in that folder.
Now all you need to do is copy which ever model you want to load into that directory.
Good practice is to check that the file exists before trying to load it. I have added this to your code below.
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbPrint ("Please wait... Loading");
dbSync( );
dbSync( );
if( !dbFileExist( "Colonel-X.x" ) )
{
// model doesn't exist so we cannot load it
}
dbLoadObject ( "Colonel-X.x", 1 );
dbPositionCamera ( 0, 50, -80);
dbLoopObject ( 1 );
dbSetObjectSpeed ( 1, 40 );
while ( LoopGDK ( ) )
{
dbSync ( );
}
return;
}
The Sun is trying to kill me!