Yasir,

He said you /need/ it in order to load from the VFS (that is, the pack
files), otherwise it resorts to fopen() directly from filesystem, which
likely isn't what you want. The part about "-DBOTLIB" is the command line
flag for GCC, -D means define symbol. In effect, it is like putting "#define
BOTLIB" at the top of every source code file. You'd have something on the
UNIX command line like:

$ gcc -DBOTLIB ....

In order to define "BOTLIB"  in MSVC++ 2008, you need to do:
1) Right click on the project
2) Click "Properties"
3) Expand "C/C++"
4) Click "Preprocessor"
5) Select "Preprocessor Definitions" on the left
6) Click the "..." button
7) Add a line in the upper box that reads BOTLIB=1

Hope that helps.

Patrick Baggett

On Wed, Feb 16, 2011 at 10:32 AM, Yasir I. Al-Dosary - zgzg2020™ <
[email protected]> wrote:

> Im compiling with microsoft visual studio 2008, on windows. I couldn't find
> the "-DBOTLIB" option in code, nor in the project settings.
> Could you kindly tell me where to find it, and how to disable it?
>
> Yasir
>
> --- On Wed, 2/16/11, Ben Noordhuis <[email protected]> wrote:
>
> > From: Ben Noordhuis <[email protected]>
> > Subject: Re: [ioquake3] bot library used before being setup error
> > To: "Primary ioquake3 Discussion/Development list" <
> [email protected]>
> > Date: Wednesday, February 16, 2011, 7:14 PM
> > On Wed, Feb 16, 2011 at 05:03, Yasir
> > I. Al-Dosary - zgzg2020™
> > <[email protected]>
> > wrote:
> > > I moved the botlib files from being built into
> > ioquake.exe to be built into the qagamex86.dll file. After
> > doing that the error below appeared. Is there a way to fix
> > the BOTFILESBASEFOLDER with the proper directory?
> >
> > Do you compile with -DBOTLIB? Without it, the botlib code
> > doesn't use
> > the VFS, just plain fopen().
> > _______________________________________________
> > ioquake3 mailing list
> > [email protected]
> > http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
> > By sending this message I agree to love ioquake3 and
> > libsdl.
> >
> _______________________________________________
> ioquake3 mailing list
> [email protected]
> http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
> By sending this message I agree to love ioquake3 and libsdl.
>
_______________________________________________
ioquake3 mailing list
[email protected]
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Reply via email to