.:: 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
Re: Buytable SCREWED.
Old
  (#11)
V or 'Tex
Member
 
Status: Offline
Posts: 121
Join Date: Feb 2004
Default Re: Buytable SCREWED. - 05-07-2004

Can we please get a fix? The CTs buy shields every round if they have the money.

They even buy WEAPONS, but then they buy SHIELDS right after they buy weapons. What's the point of buying an AWP if you are gonna drop it for a shield in a millisecond!?
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#12)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: Buytable SCREWED. - 06-07-2004

edit the source code

you can disable them from buying completely in bot_buycode.cpp by return false for CS_SHIELD or whatever the definition is.
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#13)
evy
Guest
 
Status:
Posts: n/a
Default Re: Buytable SCREWED. - 06-07-2004

Frankly, but looking at the code, there is no specific code for the shield.

So, my guess is that if you do not want a bot to buy a shield (considered as a primary weapon):
- specify a favorite weapon in the bot personality file, they should never drop their favorite weapon
- specify a very low priority (actually it is a probability as %) for the shield in buytable.ini
- move the shield down in the list in buytable.ini, first weapons have more probability to be selected than later ones (even with a lower priority)

NB: there may well be code missing to understand that a bot is carrying a shield. This could well be another problem.

Hope it helps

-eric
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#14)
V or 'Tex
Member
 
Status: Offline
Posts: 121
Join Date: Feb 2004
Default Re: Buytable SCREWED. - 08-07-2004

Evy, Stefan, I have TRIED all that. Yes, favorite weapons ARE SPECIFIED.

I have 0 priority for shield

I TRIED DELETING THE SHIELD ENTRY


The bots buy IN THIS ORDER:

Chance of getting weapon
If they have leftover money, THEY GET A SHIELD


EVERY TIME. Heck, maybe it's a probability that they get the shield, but I'll be damned that EVERY GAME I play, all but one or two CTs fail to buy a shield.


They aren't MISUNDERSTANDING when they have a shield, they buy the shield when they dont have one. Almost every time!
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#15)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buytable SCREWED. - 08-07-2004

source updated, i found a bug somewhere where the shield was not 'found' (or detected). It was used in the buy code, so it could influence this behaviour. Try the latest dll and see if it works for you now..


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#16)
V or 'Tex
Member
 
Status: Offline
Posts: 121
Join Date: Feb 2004
Default Re: Buytable SCREWED. - 09-07-2004

Thank you! Thank you!

I will try the new DLL immediately.


However, I think your new shield code improperly ranks the shield too highly, as they are still bought at 0 priority quite often.

The bots tend to buy a prim. weapon, then they buy shield. So it isnt that they arent detecting shield, but they think prim. weapon is different from shield and they buy it, I think. Like it isnt recognizing that both are technically primary weapons, and that you cant buy a FAMAS + shield.
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#17)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buytable SCREWED. - 09-07-2004

the code ranks no shields at all. the buytable ranks..


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#18)
V or 'Tex
Member
 
Status: Offline
Posts: 121
Join Date: Feb 2004
Default Re: Buytable SCREWED. - 09-07-2004

They are still buying shields, almost every round all but 2 buy shields.

It is now like 50/50... much better but they still buy shields all too often.
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#19)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buytable SCREWED. - 11-07-2004

hmm, this is really odd! Well , i think its back to the drawing board then. Ow, i wonder if there are any other meta plugins running at ur server? Ie, when i run statsme, it somehow messes up sometimes. So *perhaps* other mods/plugins influence this behaviour... (just a random shot though).


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#20)
V or 'Tex
Member
 
Status: Offline
Posts: 121
Join Date: Feb 2004
Default Re: Buytable SCREWED. - 11-07-2004

I only have StatsMe and RealBot, with MetaMod 1.17.1.


It's a local server.


And uh... here's what they do every round, I think the problem is in detecting what type of 'weapon' the shield is.

Round start
[Bot will about 80% of the time buy a new primary weapon, even if it is a downgrade... like AK47 to MP5 or SG552 to pump-shotty]
[If bot is CT, the bot will usually buy a shield at this point]


I don't think it's statsme because AFAIK it wouldn't have any reason to interface with metamod in the same way RealBot does...
  
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