.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   The RealBot 'Source' (http://forums.bots-united.com/forumdisplay.php?f=52)
-   -   BSP and RBN utilities (http://forums.bots-united.com/showthread.php?t=2322)

evy 18-07-2004 21:06

BSP and RBN utilities
 
I just commited version 0.9.2 of the Bsp2Rbn packages:
Quote:

- added version number, currently 0.9.2
- added Windows version of basename & dirname functions
- added two other utilities DrawNodes & DumpNodes
- updated README file
- fixed compilation warnings (thanks dstruct2k)
Else, no changes in functionality. Still working on them.

As usual, comments are welcome.:D

-eric

NOTE: this is only available in CVS. I put a link to a Mandrake Linux compiled executable on http://www.students.hec.be/~evyncke/cs/realbot/

Josh_Borke 18-07-2004 23:59

Re: BSP and RBN utilities
 
just tried to compile it after doing a CVS checkout and fixing my paths--
Code:

multiplayer/engine" -I"../../HLSDK/multiplayer/pm_shared" -c bspfile.cpp -o bspfile.o
 bspfile.cpp: In function `int FindEntityByClassname(int, const char*)':
 bspfile.cpp:763: `stricmp' undeclared (first use this function)
 bspfile.cpp:763: (Each undeclared identifier is reported only once for each
    function it appears in.)
 make: *** [bspfile.o] Error 1

HTH

evy 19-07-2004 07:59

Re: BSP and RBN utilities
 
Josh,

Just updated CVS for bspfile.cpp... :D

Can you try again ?

Sorry for the issue :'(

-eric

PS: no need to use the latest Makefile, it is mainly a personal change.

Josh_Borke 19-07-2004 14:59

Re: BSP and RBN utilities
 
found the reason it segfaults:
Code:

Program received signal SIGSEGV, Segmentation fault.
 0x0804c466 in FreeEntities() () at bspfile.cpp:852
 852                          free(pEpair->key);

HTH

Josh_Borke 19-07-2004 22:04

Re: BSP and RBN utilities
 
nj evy :) works great, keep up the good work :)

dstruct2k 20-07-2004 02:07

Re: BSP and RBN utilities
 
Not compiling on Win32 still... :)

evy 20-07-2004 07:51

Re: BSP and RBN utilities
 
Quote:

Originally Posted by dstruct2k
Not compiling on Win32 still... :)

:'( :'(

What are the symptoms ?

-eric

evy 20-07-2004 14:38

Re: BSP and RBN utilities
 
Committed yet another version in CVS (nothing changed in the algorithm). This version has been tested on Windows with MinGW (a free C++ compiler).

Quote:

- bumped version to 0.9.3
- it compiles eventually on Windows with mingw...
Windows and Mandrake Linux compiled versions are in:
http://www.students.hec.be/~evyncke/cs/realbot/

Hope this helps

-eric

Josh_Borke 20-07-2004 15:53

Re: BSP and RBN utilities
 
Quote:

\bots\hlsdk\multiplayer source\dlls\vector.h(22) : error C2061: syntax error : identifier 'Vector2D'
\bots\hlsdk\multiplayer source\dlls\vector.h(22) : error C2059: syntax error : ';'
\bots\hlsdk\multiplayer source\dlls\vector.h(23) : error C2449: found '{' at file scope (missing function header?)
\bots\hlsdk\multiplayer source\dlls\vector.h(51) : error C2059: syntax error : '}'
\bots\hlsdk\multiplayer source\dlls\vector.h(54) : error C2061: syntax error : identifier 'Vector2D'
\bots\hlsdk\multiplayer source\dlls\vector.h(54) : error C2059: syntax error : ';'
\bots\hlsdk\multiplayer source\dlls\vector.h(54) : error C2143: syntax error : missing '{' before '*'
\bots\hlsdk\multiplayer source\dlls\vector.h(54) : error C2059: syntax error : 'type'
\bots\hlsdk\multiplayer source\dlls\vector.h(59) : error C2061: syntax error : identifier 'Vector'
\bots\hlsdk\multiplayer source\dlls\vector.h(59) : error C2059: syntax error : ';'
\bots\hlsdk\multiplayer source\dlls\vector.h(60) : error C2449: found '{' at file scope (missing function header?)
\bots\hlsdk\multiplayer source\dlls\vector.h(105) : error C2059: syntax error : '}'
\bots\hlsdk\multiplayer source\dlls\vector.h(107) : error C2054: expected '(' to follow 'inline'
\bots\hlsdk\multiplayer source\dlls\vector.h(107) : error C2143: syntax error : missing ')' before '&'
etc etc etc

a total of 204 errors before it quit

using Visual C++ :)

HTH

Whistler 21-07-2004 02:50

Re: BSP and RBN utilities
 
a small change to the bsp2rbn to make it put the generated files to current directory, which is supposed to (and not data\cstrike\exp folder):

// Need to implement the basename & dirname functions under Windows...
#ifndef __linux__
char * basename(char * s)
{
char * fs ;

if ((s == NULL) || (*s == 0)) return "." ;
if (strcmp(s,"\\") == 0) return s ;
fs = strrchr(s,'\\') ;
if (fs == NULL) fs = strrchr(s,'/') ;
if (fs == NULL) return s ;
return fs + 1 ;
}

char * dirname(char * s)
{
char * fs ;

if ((s == NULL) || (*s == 0)) return "." ;
if (strcmp(s,"\\") == 0) return s ;
fs = strrchr(s,'\\') ;
if (fs == NULL) fs = strrchr(s,'/') ;
if (fs == NULL) return "." ;
* fs = 0 ;
return s ;
}
#endif

Note: the nodemachine.cpp uses "/" as separater when it calls UTIL_BuildFileNameRB().


All times are GMT +2. The time now is 14:38.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.