.:: 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
Buying Needs Overhaul
Old
  (#1)
V or 'Tex
Member
 
Status: Offline
Posts: 121
Join Date: Feb 2004
Default Buying Needs Overhaul - 21-06-2004

The CTs and Ts are making stupid, horrible spending choices. I've seen them buy an M3 (shotgun, not M4A1) when they had an AWP, I've seen a T drop an AK for an MP3. It's rediculous that they buy a weapon which they use really well for one round, then buy a cheaper one next round as though they -have- to spend money on something.

There needs to be better detection on weapons and more emphasis on them keeping weapons they have until they save up for a better one/their 'favorite' in preferences. I find it rediculous when my team is winning and all my CTs have M4s or FAMAS, and next round they all get MP5s and die because the losing terrorists finally saved up enough to get AKs! Which they of course dump next round!
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#2)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: Buying Needs Overhaul - 21-06-2004

Also... (as a thought, since we all know this needs to be redone...)

Have them detect weapons on the ground and pick them up if they're better than what the bot is carrying.


We should also add into the reload code a "search_for_nearby_weapon()" so that when the primary is out of all ammo, and there's one on the ground, the bot picks it up.
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#3)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buying Needs Overhaul - 21-06-2004

lol yeah, the buy code is very random. But, its free for change, i never really have that much interest in it as i find myself being killed eventually by a bot ... with shotgun

Any changes to the source are welcome, i am busy with some other feature, but when i am done with that i will take a look at the buy code.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#4)
[BBB]sluggo
Member
 
[BBB]sluggo's Avatar
 
Status: Offline
Posts: 153
Join Date: Jan 2004
Location: Stockholm, Sweden
Default Re: Buying Needs Overhaul - 21-06-2004

Hi, i have tweaked my buytable.ini file to make them buy the weapons i like them to buy.
It's not the best way to do it but it's working 8D
Maybe you can take some ideas from it and tweak it to your liking!

I'll attach it so you can have a look and try it yourselves.
(Remove the .txt extension....)
Attached Files
File Type: txt buytable.ini.txt (6.9 KB, 191 views)
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#5)
V or 'Tex
Member
 
Status: Offline
Posts: 121
Join Date: Feb 2004
Default Re: Buying Needs Overhaul - 22-06-2004

Sluggo, it will not fix the problem I am mentioning. It will just make it so that they only buy a few weapons.

The problem I am talking about is their prioritization of weapons. I have even seen a single bot on startup buy one weapon, then buy another, then buy the original weapon. It makes no sense to me why it does this, why it is so stupid. But I have a feeling it is because the bots do not prioritize or properly detect their weapon at the beginning of each round.
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#6)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buying Needs Overhaul - 22-06-2004

lol, coming to think of it, you sure want to overhaul big parts in RB. Anyway, the bots buy every round another one, based uppon randomness. So i can remove some 'stupidness' by just lowering or removing the 'random' value to buy a weapon or not.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#7)
davek
Member
 
davek's Avatar
 
Status: Offline
Posts: 58
Join Date: Dec 2003
Location: san diego, ca
Default Re: Buying Needs Overhaul - 22-06-2004

but then wont we get more bots running around with pistols? thats rather annoying in itself.

a simple fix would be to just detect a primary weapon in hand and not buy one. at least i think that would be simple.

a more complex fix would be to detect what weapon the bot has in hand, and then see if it can afford a better one. that woudl require ranking all the weapons, and checking moneys, and getting more specific info.
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#8)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: Buying Needs Overhaul - 23-06-2004

Ranking + money is already collected in buytable.ini and botname.ini....


This can be done pretty easily.

Last edited by dstruct2k; 23-06-2004 at 01:09..
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#9)
davek
Member
 
davek's Avatar
 
Status: Offline
Posts: 58
Join Date: Dec 2003
Location: san diego, ca
Default Re: Buying Needs Overhaul - 23-06-2004

but isnt ranking only very loosely done in the buytable.ini? i mean, isnt there a lot of randomness in there? hm. actually, that should be fine... but i just dont want bots to think that a mp5 is better than an m4a1 one round, and then switch back the next round because of the randomness.
  
Reply With Quote
Re: Buying Needs Overhaul
Old
  (#10)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buying Needs Overhaul - 23-06-2004

No, the buytable is actually quite 'ranked'.

Ie, the order of the weapons in the file is already 1 priority que

Second, you can say how much 'preference' there should be for a weapon (2nd priority que)

And third you have the requirements (money) to buy it.

So the buy code is not that much messed up. Its just that bots tend to buy every round a new weapon... for fun... that latest thing should be changed into some more logical, ie like you say, they can buy a better weapon. Etc.

EDIT:
I have taken a look at the code and i found something very suprisingly to me:
- they ALWAYS want to buy a NEW primary weapon every round
- they will NOT buy a new primary weapon when theyhave not enough money
- even when they have their favorite weapon, they will still try to find a 'better' one.

I was suprised by the amount of mistakes i made there, prolly been late at nite coding there. I have fixed the above three. And it was simple to fix too even. Now they do consider a new primary weapon EVERY ROUND. But they will NOT buy one if they already have their favorite (which you can determine in the bot personality)...

I will test it a bit more and see if i can improve more. But the buytable.ini file should do the rest.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me

Last edited by stefanhendriks; 23-06-2004 at 09:11..
  
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