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

All my CTs buy Shields first, then MAYBE buy something else.

Ts are fine, they usually get AKs and whatnot but that's normal.
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#2)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buytable SCREWED. - 02-07-2004

hehe, yep... i changed some shield compatible code. I wanted to let them buy shields... you should change the source for that.


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
  (#3)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buytable SCREWED. - 02-07-2004

The bots do not screw up buying at all, i have a nice buytable which lets CT's buy shields, but not too much. Quite fun. I will lower it a bit and provide a buytable.ini file, perhaps just package WIP #11 now... hmm


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

Why do my bots always buy shields, then?

If it isn't broken, tell me what stat in the ini files determines how often they buy shields.
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#5)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buytable SCREWED. - 03-07-2004

Here is my buytable.ini (note, it is shorter now, because the CS 1.6 bug is fixed)

Quote:
#Updated by Stefan Hendriks for Counter-Strike 1.6
################################################## #
#
# Information Regarding weapon support in CS 1.5 and CS 1.6
# A few fields have been added, these should NEVER be changed
# UNLESS you know what you are doing. If you only want to
# change the bots behaviour with buying stuff, then read
# below about the relevant items you can change.
#
################################################## #
#
# This file has been updated at 02/07/04
#
# REALBOT: COUNTER-STRIKE PRIORITY BUY TABLE
#
# [WEAPON_TYPE]
# Price=<see below>
# Priority=% importance.
#
# Price is important! This is the price they take into account before even checking
# the priority queue. Do NEVER set the price lower then the actual price in Counter-Strike
#
# Priority is also important, but do also mind that the ORDER of weapons is important aswell!
#
# The buy code automaticly understands if its a secondary/primary gun. If the code cannot
# identify a weapon (due an update of Counter-Strike), the weapon type is automaticly
# UNKOWN and not taken into account in the buy code, to prevent odd behaviour.
#
# TIPS:
# Always take ammo money into account with prices, as i did. So a gun is 3000, do + 200 to
# make sure the bot will have money left for ammo.
#
# Do not edit the C4 and the KNIFE!
# !! A maximum of 32 weapon types is allowed in this file !!
#
# Stefan

#======
#CS 1.6
#======
; Counter-Terrorist weapon; not as good as Galil
[FAMAS]
Price=2250
Priority=15
; Terrorist Weapon; pretty accurate
[GALIL]
Price=2000
Priority=30
; Counter-Terrorist shield
[SHIELD]
Price=2000
Priority=25
#============================
#End of CS 1.6 specific stuff
#============================
; GRENADE
[HEGRENADE]
Price=400
Priority=25
; Grenade type
[FLASHBANG]
Price=300
Priority=25

; AK - Super popular
[AK47]
Price=2750
Priority=45
; Colt - Super popular
[M4A1]
Price=3350
Priority=45
; MP5 - pretty good second overal weapon
[MP5]
Price=1650
Priority=33
; Steyr Aug - nice weapon
[AUG]
Price=3750
Priority=40
; The AWP - 3v1l!
[AWP]
Price=5000
Priority=20
; Sig sg552
[SG552]
Price=3750
Priority=35
; TMP - bad
[TMP]
Price=1500
Priority=24
; Mac - bad
[MAC10]
Price=1650
Priority=24
; Primary (sub machine) gun
[P90]
Price=2400
Priority=22
; shotgun.. RealBot Rampage Weapon
[M3]
Price=1950
Priority=22
[UMP45]
Price=1950
Priority=22
; Sniper rifle
[SCOUT]
Price=3000
Priority=22
; shotgun.. RealBot Rampage Weapon
; Primary weapon
[XM1014]
Price=3250
Priority=20
; Paragun
[M249]
Price=6000
Priority=25
; Sniper rifle
[SG550]
Price=4450
Priority=10
; Sniper rifle
[G3SG1]
Price=5250
Priority=10
; Elite (Double guns)
[ELITE]
Price=1100
Priority=25
; Desert Eagle
[DEAGLE]
Price=750
Priority=35
[FIVESEVEN]
Price=800
Priority=35
; SECONDARY
[P228]
Price=700
Priority=25
; Grenade type
[SMOKEGRENADE]
Price=500
Priority=0
; Knife (do not edit)
[KNIFE]
Price=32000
Priority=0
; C4 BOMB (do not edit)
[C4]
Price=32000
Priority=0
# These weapons are already owned by a bot.. depending on the team so we give them 0 priority
# to prevent any 'buying a gun we already own' issues...
# a more neat way would be to have PriorityTerror and PriorityCounter, but hence... i lack time
[USP]
Price=500
Priority=0

[GLOCK18]
Price=400
Priority=0


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

I even DELETED the entry for shield.


The bots still buy shields EVERY ROUND. EVERY SINGLE ROUND!
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#7)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Buytable SCREWED. - 03-07-2004

be more specific, how many bots buy the shields? All of them?

You should not delete the entry for shield btw. Anyway, its odd because they do not buy a dang thing here if i set the priority to 0.


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

All of them.


And I tried priority 0.


Sometimes... two or three will not buy the shield. (Out of 8 bots on the team)

But usually 7/8 or all of them buy shields.

Moreover, everybody on the T team thinks that once a shield drops it'd be the sweetest thing in the world to pick it up and use it until they die.
  
Reply With Quote
Re: Buytable SCREWED.
Old
  (#9)
evy
Guest
 
Status:
Posts: n/a
Default Re: Buytable SCREWED. - 04-07-2004

In the same vein, I suspect that some crashes with build 3051 are linked to the weapon system...

On my Linux, I have the following crash info:
Code:
0x438bdd09 in CBasePlayer::HasPlayerItem () from .../hlds_l/cstrike/dlls/cs_i386.so
So, it seems that RB could corrupt the data structure of the CS mod (like a NULL pointer instead of a valid one) so that a call to HasPlayerItem (part of the HL engine) fails. ???

Not really useful info..., I know :'(

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

Well I haven't experienced any crashes... but it is really annoying because I can't use RB anymore... the CTs suck at using the shields but they buy them every single round so there's no point in playing as CT or T. It's either too easy or your allies do absolutely nothing.
  
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