.:: 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: How to integrate bot in to the game dll ?
Old
  (#11)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: How to integrate bot in to the game dll ? - 10-07-2005

Yes I know how. As you see in the source that I post. But the problem is that only the first bot select correct team and class. After I type again addbot the others bots just stay spectators.
  
Reply With Quote
Re: How to integrate bot in to the game dll ?
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: How to integrate bot in to the game dll ? - 11-07-2005

Store not_started in the bot's variables, not in global scope.



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: How to integrate bot in to the game dll ?
Old
  (#13)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: How to integrate bot in to the game dll ? - 11-07-2005

Yes I'm declared not_started in to the bot's variables (class CBot in bot.h). Maybe you think that this variable is global because there is not CBot:: before not_started. Well the function that I'm using the variable not_started is :
void CBot::BotThink( void ). So if you have other ideas I will be glad to hear it.
  
Reply With Quote
Re: How to integrate bot in to the game dll ?
Old
  (#14)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: How to integrate bot in to the game dll ? - 12-07-2005

actually another reason one might think it's global is the inconsistent naming.. some of the variable's names use hungarian notation while others don't.
  
Reply With Quote
Re: How to integrate bot in to the game dll ?
Old
  (#15)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: How to integrate bot in to the game dll ? - 12-07-2005

Quote:
Originally Posted by sPlOrYgOn
actually another reason one might think it's global is the inconsistent naming.. some of the variable's names use hungarian notation while others don't.
I don't understand nothing from that you say. ?????????
  
Reply With Quote
Re: How to integrate bot in to the game dll ?
Old
  (#16)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: How to integrate bot in to the game dll ? - 13-07-2005

Ok guys this problem is now fixed. The bots now join on a team and select class correct. But sinse I'm very new in to the work directly with the game data in to the game dll source, I want to ask what function must I use to get the teams IDs because now the bots are shooting their teammates.
  
Reply With Quote
Re: How to integrate bot in to the game dll ?
Old
  (#17)
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: How to integrate bot in to the game dll ? - 13-07-2005

look directly at the bot's CBasePlayer class, most if not all games store the team ID somewhere there.



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: How to integrate bot in to the game dll ?
Old
  (#18)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: How to integrate bot in to the game dll ? - 14-07-2005

"hungarian notation" is a way of naming variables invented by a Hungarian developer in Microsoft, it's attaching some letters to identify a variable's type, such as: iInteger, flFloat, szString, m_iIntMember, g_iGlobal, etc. Such variable names are widely used in Half-Life SDK source code.

also from this line of code you have posted:
pPlayer->m_iTeam = 1;// Join Team 1

the m_iTeam seems to be the team of the player.

Last edited by Whistler; 14-07-2005 at 07:07..
  
Reply With Quote
Re: How to integrate bot in to the game dll ?
Old
  (#19)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: How to integrate bot in to the game dll ? - 14-07-2005

Yep after you give the team of the player you can directly spawn it without any problmes.
  
Reply With Quote
Re: How to integrate bot in to the game dll ?
Old
  (#20)
Zacker
Project Leader, Lead Level Designer, Waypointer
 
Status: Offline
Posts: 337
Join Date: Mar 2004
Location: Denmark
Default Re: How to integrate bot in to the game dll ? - 18-07-2005

Ey BU guys, we got a problem. The Storm is having problems with implenting the HPB bot template 4 into the source code. In order to get it to work, he has to use the old and crappy bot 10, which sucks.

Does any of you know how to get the newest HPB bot code integrated into the SoW source?


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