.:: 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 ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Re: Parabot Reloaded
Old
  (#11)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Parabot Reloaded - 15-12-2005

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 

Last edited by Whistler; 15-12-2005 at 14:36..
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#12)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Parabot Reloaded - 15-12-2005

What code does this refer to? Try compiling with a Microsoft compiler.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#13)
Killaruna
Moderator
 
Status: Offline
Posts: 32
Join Date: Jan 2004
Location: Heidelberg, Germany
Default Re: Parabot Reloaded - 16-12-2005

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...
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#14)
Killaruna
Moderator
 
Status: Offline
Posts: 32
Join Date: Jan 2004
Location: Heidelberg, Germany
Default Re: Parabot Reloaded - 16-12-2005

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.
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#15)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Parabot Reloaded - 17-12-2005

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)
Attached Files
File Type: zip parabot_mm.zip (325.2 KB, 26294 views)

Last edited by Whistler; 27-12-2005 at 02:49..
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#16)
USAZombie
Member
 
Status: Offline
Posts: 3
Join Date: Sep 2005
Default Re: Parabot Reloaded - 19-12-2005

Here is the 0.91 version.
Attached Files
File Type: zip parabot091.zip (265.6 KB, 39336 views)
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#17)
Tiggr
Member
 
Tiggr's Avatar
 
Status: Offline
Posts: 4
Join Date: Dec 2005
Default Re: Parabot Reloaded - 20-12-2005

It works!

Thank you very much!

Bye
Tiggr
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#18)
Tiggr
Member
 
Tiggr's Avatar
 
Status: Offline
Posts: 4
Join Date: Dec 2005
Default Re: Parabot Reloaded - 20-12-2005

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

Bye
Tiggr
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#19)
USAZombie
Member
 
Status: Offline
Posts: 3
Join Date: Sep 2005
Default Re: Parabot Reloaded - 21-12-2005

Trying to run metamod version and I get badf load.

Metamod log says the file was found but could not be opened.
  
Reply With Quote
Re: Parabot Reloaded
Old
  (#20)
Zacker
Project Leader, Lead Level Designer, Waypointer
 
Status: Offline
Posts: 337
Join Date: Mar 2004
Location: Denmark
Default Re: Parabot Reloaded - 23-12-2005

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.


Michael 'Zacker' Schmidt
Level Designer | IO Interactive
Former Game Director | Sands of War
  
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 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com