So, you decided to create a .aas file for bots for your new map you
made with GtkRadiant on Linux, and instead of joy you got pain with a
'BSP process monitoring' popup, and looking at the log output in the
terminal window you started GtkRadiant from you found a line like
'sh: /home/oamap/gtkradiant/GtkRadiant/install/bspc: not found'
What happened?
bspc isn't part of radiant, and in fact comes with the Q3 engine
source code along with an earlier version of the map compiler, q3map.
Some versions of radiant came with a pre-compiled bspc program, but
1.6 doesn't.
So, what to do? Build it ourselves, of course.
The code for bspc isn't in the ioquake3 source (OA is based on ioquake3)
either, so we must go to the original source.
The Q3 source code is available from any number of locations you can
find with your favorite search engine. Download the code (I assume you
got the .zip file), and let's build bspc!
mkdir id
cd id
unzip <somewhere>/quake3-1.32b-source.zip
cd quake3-1.32b/code/bspc
Correct what gcc considers to be a syntax error in l_bsp_hl.c at line
250 using your text editor of choice.
Make a backup first!
cp l_bsp_hl.c l_bsp_hl.c.orig
Be a man!
vi l_bsp_hl.c
Line 250 looks like this:
checksum = (checksum << 4) ^ *((char *)buffer)++;
But should look like this:
checksum = (checksum << 4) ^ *((char *)buffer++);
The difference is that 'buffer)++' has changed to 'buffer++)'. Basically,
the ')' was moved from the left of to the right of '++'.
Change line 250 as explained above, save and exit the editor.
Compile.
make
Copy the resultant bspc executable to a location where GtkRadiant will
look for it. If you followed my earlier post about building GtkRadiant
1.6, you would run
cp bspc /home/oamap/gtkradiant/GtkRadiant/install
where oamap is understood to be your login name. Otherwise, put it in
the directory mentioned in the 'not found' message you got beforehand.
When you attempt to use bspc you'll still get the pop-up in GtkRadiant
with title 'BSP process monitoring' and text beginning 'The connection
timed out'. Just close it and consider it a nuisance. We may come up
with a solution later.
Look for something like
BSPC run time is 4 seconds
Closed log bspc.log
system() returned
in the terminal window for an indication of completion. You can also
look at the file bspc.log, which will be in the directory you were in
when you started GtkRadiant, for more details on how the AAS compile went.