[ioquake3] bot library used before being setup error
Yasir I. Al-Dosary - zgzg2020™
yasiraldosary at yahoo.com
Thu Feb 17 01:32:52 PST 2011
Thank you for the answers,
I removed the precompiler BOTLIB definition from my project. And, I placed a breakpoint at fopen(). And, it breaks there, so I assume my build is not using VFS files.
However, the Game still shows the same error message. It tried to fopen() the "weapon.c" file, but can't find it.
What can I do to help fix this?
Yasir
--- On Thu, 2/17/11, Patrick Baggett <baggett.patrick at gmail.com> wrote:
From: Patrick Baggett <baggett.patrick at gmail.com>
Subject: Re: [ioquake3] bot library used before being setup error
To: "Primary ioquake3 Discussion/Development list" <ioquake3 at lists.ioquake.org>
Date: Thursday, February 17, 2011, 1:48 AM
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 project2) Click "Properties"
3) Expand "C/C++"
4) Click "Preprocessor"5) Select "Preprocessor Definitions" on the left6) Click the "..." button7) 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™ <yasiraldosary at yahoo.com> 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 <info at bnoordhuis.nl> wrote:
> From: Ben Noordhuis <info at bnoordhuis.nl>
> Subject: Re: [ioquake3] bot library used before being setup error
> To: "Primary ioquake3 Discussion/Development list" <ioquake3 at lists.ioquake.org>
> Date: Wednesday, February 16, 2011, 7:14 PM
> On Wed, Feb 16, 2011 at 05:03, Yasir
> I. Al-Dosary - zgzg2020™
> <yasiraldosary at yahoo.com>
> 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
> ioquake3 at lists.ioquake.org
> http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
> By sending this message I agree to love ioquake3 and
> libsdl.
>
_______________________________________________
ioquake3 mailing list
ioquake3 at lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.
-----Inline Attachment Follows-----
_______________________________________________
ioquake3 mailing list
ioquake3 at lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ioquake.org/pipermail/ioquake3-ioquake.org/attachments/20110217/93e396ab/attachment.htm>
More information about the ioquake3
mailing list