.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RealBot > The RealBot 'Source'
The RealBot 'Source' Discuss things about the source code. You can here point out bugs, share ideas and code. Assign to become an 'official team member' and so on!

Reply
 
Thread Tools
BSP and RBN utilities
Old
  (#1)
evy
Guest
 
Status:
Posts: n/a
Default BSP and RBN utilities - 18-07-2004

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.

-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/
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#2)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: BSP and RBN utilities - 18-07-2004

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
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#3)
evy
Guest
 
Status:
Posts: n/a
Default Re: BSP and RBN utilities - 19-07-2004

Josh,

Just updated CVS for bspfile.cpp...

Can you try again ?

Sorry for the issue :'(

-eric

PS: no need to use the latest Makefile, it is mainly a personal change.
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#4)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: BSP and RBN utilities - 19-07-2004

found the reason it segfaults:
Code:
Program received signal SIGSEGV, Segmentation fault.
 0x0804c466 in FreeEntities() () at bspfile.cpp:852
 852			  free(pEpair->key);
HTH
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#5)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: BSP and RBN utilities - 19-07-2004

nj evy works great, keep up the good work
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#6)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: BSP and RBN utilities - 20-07-2004

Not compiling on Win32 still...
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#7)
evy
Guest
 
Status:
Posts: n/a
Default Re: BSP and RBN utilities - 20-07-2004

Quote:
Originally Posted by dstruct2k
Not compiling on Win32 still...
:'( :'(

What are the symptoms ?

-eric
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#8)
evy
Guest
 
Status:
Posts: n/a
Default Re: BSP and RBN utilities - 20-07-2004

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
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#9)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: BSP and RBN utilities - 20-07-2004

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
  
Reply With Quote
Re: BSP and RBN utilities
Old
  (#10)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: BSP and RBN utilities - 21-07-2004

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().
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com