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 <[email protected]> wrote:
From: Patrick Baggett <[email protected]>
Subject: Re: [ioquake3] bot library used before being setup error
To: "Primary ioquake3 Discussion/Development list" <[email protected]>
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™
<[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.
-----Inline Attachment Follows-----
_______________________________________________
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.