.:: 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: not correct detection by bots chicken as a friend/enemy
Old
  (#11)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: not correct detection by bots chicken as a friend/enemy - 25-04-2005

@ T(+)rget - in AMX there is a native - get_user_team. What is in AMX source code for it? How does this native work in amx_mm.dll's side? How it is constructed?
  
Reply With Quote
Re: not correct detection by bots chicken as a friend/enemy
Old
  (#12)
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: not correct detection by bots chicken as a friend/enemy - 25-04-2005

AMX and Statsme uses the same method.
They both catch the "TeamInfo" message..
MessageBegin: "TeamInfo"
WriteByte: <PlayerEntityIndex>
WriteString: <TeamName>
  
Reply With Quote
Re: not correct detection by bots chicken as a friend/enemy
Old
  (#13)
T(+)rget
AMX Dev Team
 
T(+)rget's Avatar
 
Status: Offline
Posts: 28
Join Date: Dec 2004
Location: UK
Default Re: not correct detection by bots chicken as a friend/enemy - 25-04-2005

I don't get 100% how the TeamInfo capturing works in AMX (Files: CMisc.cpp all functions below // class TeamIds, emsg.cpp Client_TeamInfo function)

I know it catches the Team Name, but how it sorts out the actual team index number baffles me.

Which is why in VexdUM I capture the ScoreInfo which contains the team index number, technically ScoreInfo should run when joining, changing team etc. Apparently not, according to 1 of the other AMX devs which he tested on LAN + ZBot. It just didn't capture the bot's team index.

But anyway like I said, I'm researching into this for our part and for you guys.
  
Reply With Quote
Re: not correct detection by bots chicken as a friend/enemy
Old
  (#14)
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: not correct detection by bots chicken as a friend/enemy - 25-04-2005

FYI, in the engine-independent bot code I'm working on, I don't sort teams by indexes but by team strings. I don't use team index numbers anymore. It *is* perfectly possible to do that in the bot code and thus to rely on the TeamInfo message *only*.



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: not correct detection by bots chicken as a friend/enemy
Old
  (#15)
T(+)rget
AMX Dev Team
 
T(+)rget's Avatar
 
Status: Offline
Posts: 28
Join Date: Dec 2004
Location: UK
Default Re: not correct detection by bots chicken as a friend/enemy - 25-04-2005

Hmm, I see logic in that but isn't it easier to use integers instead of strings?
  
Reply With Quote
Re: not correct detection by bots chicken as a friend/enemy
Old
  (#16)
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: not correct detection by bots chicken as a friend/enemy - 25-04-2005

look friend, the TeamInfo message sends strings. Isn't it easier to use strings instead of integers ?



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: not correct detection by bots chicken as a friend/enemy
Old
  (#17)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: not correct detection by bots chicken as a friend/enemy - 25-04-2005

and nobody forbids you to do the string comparision once the message was sent and then store it somewhere as integer


  
Reply With Quote
Re: not correct detection by bots chicken as a friend/enemy
Old
  (#18)
[NvT]_KaszpiR_
Member
 
[NvT]_KaszpiR_'s Avatar
 
Status: Offline
Posts: 322
Join Date: Apr 2004
Default Re: not correct detection by bots chicken as a friend/enemy - 25-04-2005

well, then, why you chose to detect teammate of enemy in bots via model name comparison? probably because it was the easies and sufficient for the given time.

(i was very unpleased by reaction of bots in w3xp mod when they started to attack me )


secodn, KWo asked me if i could ask olo about the statsme and player team detection

olo:
Quote:
there are various methods of gainig the player team info:
- model name
- client setinfo
- log the event
- client message
- join team
- setting player color in tabscores (score table when hitting tab key)

statsme uses the last method because it can get only defined values
and those values depend on each mod

Last edited by [NvT]_KaszpiR_; 25-04-2005 at 22:39..
  
Reply With Quote
Re: not correct detection by bots chicken as a friend/enemy
Old
  (#19)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: not correct detection by bots chicken as a friend/enemy - 26-04-2005

For these who don't know who is OLO - he is for CS like Botman for all bots. StatsMe, Clanmod, AMX, CSGuard - and few more - they all are OLO's ideas.
  
Reply With Quote
Re: not correct detection by bots chicken as a friend/enemy
Old
  (#20)
T(+)rget
AMX Dev Team
 
T(+)rget's Avatar
 
Status: Offline
Posts: 28
Join Date: Dec 2004
Location: UK
Default Re: not correct detection by bots chicken as a friend/enemy - 26-04-2005

Quote:
Originally Posted by Pierre-Marie Baty
look friend, the TeamInfo message sends strings. Isn't it easier to use strings instead of integers ?
That is true if obviously getting from TeamInfo, but what if....
AMX or AMXX scripter decides to script a Team3 or Team4 using private data hacking? (Yes it is possible)

Scenerio using TeamInfo:
Bot on Team3 someone on Team4, bot won't shoot anyone on Team3 or 4 since the strings will be NULL or "UNASSIGNED".

But like I said I'm still researching into ScoreInfo bug, I couldn't simulate what the another AMX Dev had since I know for sure I loaded MetaMod then the BOT (ZBot) and it detected the bots team fine, still haven't tested on LAN yet!

Question:
Bots buying weapons, why don't they purchase weapons normally? Just tested with ZBot seems they have there own purchasing system, which is annoying because it means you can't restrict what BOTS can purchase.

Last edited by T(+)rget; 26-04-2005 at 12:20..
  
Reply With Quote
Reply


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

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