View Single Post
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