.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Parabot Reloaded (http://forums.bots-united.com/showthread.php?t=4625)

Whistler 15-12-2005 13:31

Re: Parabot Reloaded
 
I'm having errors in the checkvec.h file...
PHP Code:

g++.exe -c bot/bot.cpp -o bot/bot.-I"utils"  -I"/hl/hlsdk/multiplayer/common"  -I"/hl/hlsdk/multiplayer/dlls"  -I"/hl/hlsdk/multiplayer/engine"  -I"/hl/hlsdk/multiplayer/pm_shared"  -I"/hl/metamod-1.17/metamod" -w

In file included from bot
/pb_mapgraph.h:9,
                 
from bot/parabot.h:5,
                 
from bot/bot.cpp:10:
utils/checkvec.h:19errorexpected `)' before "n"

utils/checkvec.h:23: error: expected 
`)' before "i"

utils/checkvec.h:27: error: ISO C++ forbids declaration of `reference' 
with no type
utils
/checkvec.h:27errorexpected `;' before "operator"
utils/checkvec.h:34: error: expected 
`;' before "const_reference"
utils/checkvec.h:34: error: ISO C++ forbids declaration of `const_reference' 
with no type
utils
/checkvec.h:34errorexpected `;' before "operator"
utils/checkvec.h:40: error: expected 
`;' before '}' token

mingw32-make.exe: *** [bot/bot.o] Error 1

Execution terminated 


Pierre-Marie Baty 15-12-2005 21:29

Re: Parabot Reloaded
 
What code does this refer to? Try compiling with a Microsoft compiler.

Killaruna 15-12-2005 23:30

Re: Parabot Reloaded
 
If all project settings are correct (you probably have to change the include directories etc.) the code compiles under MSVC 6.0 and with very minor changes under (the free) MSVC 8.0. I never tried using GCC or any other compilers for that matter, but if you are not using GCC4 it should not be too hard to adjust the code.

Regarding the fixed offsets on CBaseEntities pointers, that is indeed mod-specific and probably invalid for current HL-versions. However, I only used this techinque in cases I did not know any other way to obtain the information. You can probably skip it for mods you don't want to support and maybe there are other methods that I don't know about for the rest...

Killaruna 15-12-2005 23:39

Re: Parabot Reloaded
 
Whistler: Some compilers don't pass typedefs on to subclasses if templates are involved, that seems to be the cause for your problems with checkvec. Try "typename vector<T>::size_type" instead of "size_type" and similar for the other errors.

Whistler 17-12-2005 03:57

Re: Parabot Reloaded
 
1 Attachment(s)
well I just changed to an older gcc version and installed STLPort (which is a better implemention of STL than both GNU libstdc++ and Microsoft one, and is also free software) and it now works :)

so here's a quick port to Metamod

edit: I removed the 0.8 version. 0.91 version is below (thanks to USAZombie) :)

USAZombie 19-12-2005 19:29

Re: Parabot Reloaded
 
1 Attachment(s)
Here is the 0.91 version.

Tiggr 20-12-2005 15:58

Re: Parabot Reloaded
 
It works!

Thank you very much!

Bye
Tiggr

Tiggr 20-12-2005 17:16

Re: Parabot Reloaded
 
And there is a minor problem, using MM, HL-Server crashes on map change! :-(

Bye
Tiggr

USAZombie 21-12-2005 09:29

Re: Parabot Reloaded
 
Trying to run metamod version and I get badf load.

Metamod log says the file was found but could not be opened.

Zacker 23-12-2005 21:33

Re: Parabot Reloaded
 
Wow great news! Parabot was a truely amazing bot which I really had a LOT of fun with. Until I got Parabot I did not really play HLDM or DMC, but with this great bot the game did not matter - it was simply pure fun.

It is incredible to see this go opensource. I hope that some of you other skilled bot coders will take this up and continue the Parabot spirit.


All times are GMT +2. The time now is 10:28.

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