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.

Author
Message
Ninja_Je5us
9
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 24th Nov 2010 18:26
Hi,

Ive been working on a game for a while using Visual C++ and the DarkGDK and have recently purchase the package containing DarkAI, physics and such.

However I would like to know how I can use Dark AI on my project?

I dont mean commands and stuff, I would just like to know how to get the program to recognise the Dark AI commands.

Regards.
CocaCola
9
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 24th Nov 2010 20:17
#include "DarkAI.h"
and
#pragma comment ( lib, "DarkAI.lib" )

at the top of your program.

Always program as if the person maintaining your program is a psychopath that knows where you live
HowDo
16
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 25th Nov 2010 14:25
@CocaCola

is what you show above a quick way of getting the compiler to see that you have theses includes and libs, instead of getting VS to know you have them.

Dark Physics makes any hot drink go cold.
Cas
8
Years of Service
User Offline
Joined: 12th Nov 2010
Location:
Posted: 25th Nov 2010 17:39
I'd also like to know how to do this. I tried the way COla said but I get an error saying; "Error 1 fatal error C1083: Cannot open include file: 'DarkAI.h': No such file or directory c:\users\john\desktop\game\terrain\main.cpp 6"

Any ideas as to why this is happening?

Cheers.

Login to post a reply

Server time is: 2019-09-15 15:10:20
Your offset time is: 2019-09-15 15:10:20