.:: 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: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#41)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 11-07-2004

The height check is hard, because sometimes you'll be WANTING the bots to jump (building to building in as_olirig) and other times you WON'T (cs_assault, as you mentioned)

As for the percentage of going different routes, that's difficult, because we don't keep track of which route was followed last round.
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#42)
evy
Guest
 
Status:
Posts: n/a
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 11-07-2004

Quote:
Originally Posted by dstruct2k
The height check is hard, because sometimes you'll be WANTING the bots to jump (building to building in as_olirig) and other times you WON'T (cs_assault, as you mentioned)

As for the percentage of going different routes, that's difficult, because we don't keep track of which route was followed last round.
Regarding the jumping, I understood that the original post was about bot learning a downward jump (which is cool) but once it is learned that also try to jump upward (which is probably impossible).

Regarding the issue of always following the same route, this could be done by having multiple goals and/or adding a new cost for nodes (like for danger) which would increase every time a node is visited.

-eric
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#43)
davek
Member
 
davek's Avatar
 
Status: Offline
Posts: 58
Join Date: Dec 2003
Location: san diego, ca
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 11-07-2004

Quote:
Originally Posted by evy
Regarding the jumping, I understood that the original post was about bot learning a downward jump (which is cool) but once it is learned that also try to jump upward (which is probably impossible).
that was my understanding as well. i have seen it happen in de_aztec as well when i jump off into the water, they try to go back up the paths. what i have done is try to remove all the connections to the bottom nodes, but that prevents them from taking the path both ways, and when i jump off again, the nodes get reconnected.
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#44)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 11-07-2004

yes, its pretty tough to make the function work properly here. The key is cNodeMachine::add() , but it still does not work 100% properly. Though all ingredients are there to make it work...


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#45)
davek
Member
 
davek's Avatar
 
Status: Offline
Posts: 58
Join Date: Dec 2003
Location: san diego, ca
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 12-07-2004

if the bots run into a "trouble connection" and end up removing it, do they remove it for just one way? or both?
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#46)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 12-07-2004

one way only.

What i figured is that when you turn off bot shooting, add a some bots. and let them play the map for some time (30 minutes, or more), they will 'learn' that the paths are wrong (troubled connections).

Do note, do not add too many bots! When you do this, and 2 bots collide, the code will not let the bot 'learn' because it will think it is stuck by another player/bot. The best way would be to run 2 bots each side, or even 1 per side. (takes some time though).


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#47)
Naric
Guest
 
Status:
Posts: n/a
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 12-07-2004

Games not creating all the time!

Sry about this being so long
This is on my 1.5 server.
It also happens on my 1.6 server(see bottom)
I installed this new WIP and now not all the cams will create. This is in one of my other pots (http://forums.bots-united.com/showthread.php?t=2262) but here it is again.

this is without the adminmod debug
L 07/12/2004 - 11:22:08: Log file started (file "C:\Sierra\Counter-Strike\cstrike\logs\L0712001.log") (game "cstrike") (version "46/1.0.0.5/2056")
L 07/12/2004 - 11:22:08: Server cvar "mp_tkpunish" = "0"
L 07/12/2004 - 11:22:08: [STATSME] Configuration for StatsMe 2.8.3 loaded.
L 07/12/2004 - 11:22:08: Server cvar "admin_ignore_immunity" = "1"
L 07/12/2004 - 11:22:08: Server cvar "allow_client_exec" = "1"
L 07/12/2004 - 11:22:08: Server cvar "default_access" = "1"
L 07/12/2004 - 11:22:08: [STATSME] Configuration for StatsMe 2.8.3 loaded.
L 07/12/2004 - 11:22:08: [STATSME] Loading statsme rank (file "C:\Sierra\Counter-Strike\cstrike\addons\statsme\statsme.log") (game "C:\Sierra\Counter-Strike\cstrike") (version "15")
L 07/12/2004 - 11:22:08: [STATSME] Loaded 8 records
L 07/12/2004 - 11:22:08: "MikeJ<1><BOT><>" entered the game
L 07/12/2004 - 11:22:08: "[HAS]Bloodbringer<2><4294967295><>" connected, address "loopback"
L 07/12/2004 - 11:22:08: [ADMIN] Loading users from file 'addons\adminmod\config\users.ini'
L 07/12/2004 - 11:22:08: [ADMIN] Loaded 2 users
L 07/12/2004 - 11:22:08: [ADMIN] Loading vault records from file 'addons\adminmod\config\vault.ini'
L 07/12/2004 - 11:22:08: [ADMIN] WARNING: File 'addons\adminmod\config\vault.ini' seems to be empty (length 0).
L 07/12/2004 - 11:22:08: [ADMIN] Loaded 0 vault records
L 07/12/2004 - 11:22:08: [ADMIN] Loading plugins from file 'addons\adminmod\config\plugin.ini'
L 07/12/2004 - 11:22:08: Counter-Strike Plugin: No saved weapon restrictions found.
L 07/12/2004 - 11:22:08: [ADMIN] Loaded 10 plugins
L 07/12/2004 - 11:22:08: [ADMIN] Plugins loaded successfully.
L 07/12/2004 - 11:22:08: Server cvar "public_slots_free" = "6.000000"
L 07/12/2004 - 11:22:08: [STATSME] "MikeJ<1><BOT><UNASSIGNED>" triggered "latency" (ping "0")
L 07/12/2004 - 11:22:08: [STATSME] "MikeJ<1><BOT><UNASSIGNED>" triggered "time" (time "0:00")
L 07/12/2004 - 11:22:08: [STATSME] Saving statsme rank (file "C:\Sierra\Counter-Strike\cstrike\addons\statsme\statsme.log") (game "C:\Sierra\Counter-Strike\cstrike") (version "15")
L 07/12/2004 - 11:22:08: [STATSME] Saved 0 records
L 07/12/2004 - 11:22:08: [META] ini: Begin re-reading plugins list: c:/sierra/counter-strike/cstrike/addons/metamod/plugins.ini
L 07/12/2004 - 11:22:08: [META] ini: Read plugin config for: Adminmod
L 07/12/2004 - 11:22:08: [META] ini: Read plugin config for: STATSME
L 07/12/2004 - 11:22:08: [META] ini: Read plugin config for: Hook Mod
L 07/12/2004 - 11:22:08: [META] ini: Read plugin config for: ChickenMod
L 07/12/2004 - 11:22:08: [META] ini: Read plugin config for: RealBot
L 07/12/2004 - 11:22:08: [META] ini: Finished reading plugins list: c:/sierra/counter-strike/cstrike/addons/metamod/plugins.ini; Found 5 plugins
L 07/12/2004 - 11:22:08: [META] dll: Updating plugins...
L 07/12/2004 - 11:22:08: [META] dll: Finished updating 5 plugins; kept 5, loaded 0, unloaded 0, reloaded 0, delayed 0
L 07/12/2004 - 11:22:08: Server cvar "public_slots_free" = "8.000000"
L 07/12/2004 - 11:22:08: "MikeJ<-1><><>" disconnected
L 07/12/2004 - 11:22:08: World triggered "Round_Draw" (CT "0") (T "0")
L 07/12/2004 - 11:22:08: World triggered "Round_End"
L 07/12/2004 - 11:22:08: Server shutdown
L 07/12/2004 - 11:22:08: Log file closed



and with

L 07/12/2004 - 11:31:45: Log file started (file "C:\Sierra\Counter-Strike\cstrike\logs\L0712006.log") (game "cstrike") (version "46/1.0.0.5/2056")
L 07/12/2004 - 11:31:45: Server cvar "mp_tkpunish" = "0"
L 07/12/2004 - 11:31:45: [STATSME] Configuration for StatsMe 2.8.3 loaded.
L 07/12/2004 - 11:31:45: "[HAS]Bloodbringer<2><4294967295><>" connected, address "loopback"
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): AM_ClientUserInfoChanged: [HAS]Bloodbringer slot: 1

L 07/12/2004 - 11:31:45: [STATSME] Loading statsme rank (file "C:\Sierra\Counter-Strike\cstrike\addons\statsme\statsme.log") (game "C:\Sierra\Counter-Strike\cstrike") (version "15")
L 07/12/2004 - 11:31:45: [STATSME] Loaded 9 records
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): AM_ClientConnect: '[HAS]Bloodbringer' from loopback slot:1
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): LoadFile::ips_file cvar not set. No IPs loaded.

L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): LoadFile::models_file cvar not set. No models loaded.
L 07/12/2004 - 11:31:45: [ADMIN] Loading users from file 'addons\adminmod\config\users.ini'
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): User loaded: Index: 1, Name '[HAS]Bloodbringer', Password '********', Access '76798'
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): User loaded: Index: 2, Name '[HAS]Aries', Password '********', Access '76798'
L 07/12/2004 - 11:31:45: [ADMIN] Loaded 2 users
L 07/12/2004 - 11:31:45: [ADMIN] Loading vault records from file 'addons\adminmod\config\vault.ini'
L 07/12/2004 - 11:31:45: [ADMIN] WARNING: File 'addons\adminmod\config\vault.ini' seems to be empty (length 0).
L 07/12/2004 - 11:31:45: [ADMIN] Loaded 0 vault records
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): LoadFile::words_file cvar not set. No words loaded.

L 07/12/2004 - 11:31:45: [ADMIN] LoadPlugins: Game dir is 'C:\Sierra\Counter-Strike\cstrike'
L 07/12/2004 - 11:31:45: [ADMIN] Loading plugins from file 'addons\adminmod\config\plugin.ini'
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_anti flood.amx'

L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_base .amx'
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): fileexists looking for file C:\Sierra\Counter-Strike\cstrike\cs_assault.cfg
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_chat .amx'

L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_chea t.amx'
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_CS.a mx'
L 07/12/2004 - 11:31:45: Counter-Strike Plugin: No saved weapon restrictions found.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_hlds ld_mapvote.amx'

L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Timer for function AllowMapVote, wait 298, repeat 1 added as index 0.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Timer for function StartMapVote, wait 2398, repeat 1 added as index 1.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_mess age.amx'

L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Timer for function say_stuff, wait 300, repeat 99999 added as index 2.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_retr ibution.amx'

L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\addons\adminmod\scripts\plugin_fun. amx'
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Found plugin 'C:\Sierra\Counter-Strike\cstrike\dlls\plugin_chicken.amx'
L 07/12/2004 - 11:31:45: [ADMIN] Loaded 10 plugins
L 07/12/2004 - 11:31:45: [ADMIN] Plugins loaded successfully.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): AddUserAuth: Reconnect for index 1.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): SetUserPassword: No password set for user '[HAS]Bloodbringer'.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG: VerifyUserAuth: User '[HAS]Bloodbringer' did not match correct password for any entry.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): VerifyUserAuth: Access granted: 1
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): 0 players / 8 free spots / 8 max spots.
L 07/12/2004 - 11:31:45: [ADMIN] DEBUG(1): Timer for function say_hello, wait 45, repeat 0 added as index 3.
L 07/12/2004 - 11:31:45: Server cvar "public_slots_free" = "7.000000"
L 07/12/2004 - 11:31:45: [STATSME] Saving statsme rank (file "C:\Sierra\Counter-Strike\cstrike\addons\statsme\statsme.log") (game "C:\Sierra\Counter-Strike\cstrike") (version "15")
L 07/12/2004 - 11:31:45: [STATSME] Saved 0 records
L 07/12/2004 - 11:31:45: [META] ini: Begin re-reading plugins list: c:/sierra/counter-strike/cstrike/addons/metamod/plugins.ini
L 07/12/2004 - 11:31:45: [META] ini: Read plugin config for: Adminmod
L 07/12/2004 - 11:31:45: [META] ini: Read plugin config for: STATSME
L 07/12/2004 - 11:31:45: [META] ini: Read plugin config for: Hook Mod
L 07/12/2004 - 11:31:45: [META] ini: Read plugin config for: ChickenMod
L 07/12/2004 - 11:31:45: [META] ini: Read plugin config for: RealBot
L 07/12/2004 - 11:31:45: [META] ini: Finished reading plugins list: c:/sierra/counter-strike/cstrike/addons/metamod/plugins.ini; Found 5 plugins
L 07/12/2004 - 11:31:45: [META] dll: Updating plugins...
L 07/12/2004 - 11:31:45: [META] dll: Finished updating 5 plugins; kept 5, loaded 0, unloaded 0, reloaded 0, delayed 0
L 07/12/2004 - 11:31:45: Server shutdown
L 07/12/2004 - 11:31:45: Log file closed

I have noticed that this is an intermintent problem, but does usually occur at least one game has been created. The same thing happens to my 1.6 steam server, but that is every 3rd game created.
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#48)
Naric
Guest
 
Status:
Posts: n/a
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 12-07-2004

More screenshots of stuck bots problem

(http://forums.bots-united.com/showth...7&page=4&pp=10 - second from bottom)

This seems to happen in the area in the picture with everyone. Any way to fix it?

i couldnt upload the pics....

Last edited by Naric; 12-07-2004 at 22:08..
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things
Old
  (#49)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things - 20-07-2004

i have some optimizations for the buycode...
Code:
  --- realbot/bot_buycode.cpp 2004-07-08 05:04:57.000000000 -0400
  +++ realbot.tmp/bot_buycode.cpp 2004-07-20 10:23:26.000000000 -0400
  @@ -166,7 +166,7 @@
  		  if (FUNC_BotHasWeapon (pBot, pBot->ipFavoPriWeapon) == false)
  		  {
 			 if (GoodWeaponForTeam (pBot->ipFavoPriWeapon, pBot->iTeam))
 -				 if (PriceWeapon (pBot->ipFavoPriWeapon) < money)
 +				 if (wapen_tabel[wapen_tabel[(pBot->ipFavoPriWeapon)].iIdIndex].price < money)
  				  {
 					 // Buy favorite weapon
 					 buy_weapon = pBot->ipFavoPriWeapon;
  @@ -229,7 +229,8 @@
  		  pBot->buy_primary = false;
  
  		  // depending on amount of money we have left buy a secondary weapon
  -		 int iMoneyLeft = money - PriceWeapon (buy_weapon);
  +		 int iMoneyLeft = money -
  +wapen_tabel[wapen_tabel[(buy_weapon)].iIdIndex].price;
  
  		  // TODO: this should be dependant on something else... not only money
  		  if (iMoneyLeft > 500)
  @@ -248,7 +249,8 @@
  		  if (FUNC_BotHasWeapon (pBot, pBot->ipFavoSecWeapon) == false)
 			 if (GoodWeaponForTeam (pBot->ipFavoPriWeapon, pBot->iTeam))
  			  {
 -				 if (PriceWeapon (pBot->ipFavoSecWeapon) < money)
  +				 if
  +(wapen_tabel[wapen_tabel[(pBot->ipFavoSecWeapon)].iIdIndex].price < money)
  				  {
 					 // Buy favorite weapon
 					 buy_weapon = pBot->ipFavoSecWeapon;
  @@ -330,7 +332,7 @@
     else if (pBot->buy_grenade)
  	 {
  	   // Buy grenade
  -	  if (money > wapen_tabel[ListIdWeapon (CS_WEAPON_HEGRENADE)].price)
  +	  if (money > wapen_tabel[wapen_tabel[(CS_WEAPON_HEGRENADE)].iIdIndex].price)
  		  buy_weapon = CS_WEAPON_HEGRENADE;
  
  	   pBot->buy_grenade = false;
  @@ -338,7 +340,7 @@
     else if (pBot->buy_flashbang > 0)
  	 {
  	   // Buy flashbang
  -	  if (money > wapen_tabel[ListIdWeapon (CS_WEAPON_FLASHBANG)].price)
  +	  if (money > wapen_tabel[wapen_tabel[ (CS_WEAPON_FLASHBANG)].iIdIndex].price)
  	  {
  
  		  buy_weapon = CS_WEAPON_FLASHBANG;
  --- realbot/IniParser.cpp   2004-07-02 12:43:34.000000000 -0400
  +++ realbot.tmp/IniParser.cpp   2004-07-20 11:02:00.000000000 -0400
  @@ -1120,6 +1120,7 @@
  	 {
  	   wapen_tabel[cl].iId = -1;
  	   wapen_tabel[cl].price = -1;
  +	  wapen_tabel[cl].iIdIndex = -1;
  	   wapen_tabel[cl].priority = -1;
  	 }
  
  @@ -1163,6 +1164,7 @@
  			  }
  
  			  wapen_tabel[weapon_id].iId = section;
 +			 wapen_tabel[wapen_tabel[weapon_id].iId].iIdIndex = weapon_id;
  
  			  // SECURE WEAPON ID
  			  // 02/07/04 - Stefan - Should be removed now...
  --- realbot/bot.h   2004-07-03 12:36:51.000000000 -0400
  +++ realbot.tmp/bot.h   2004-07-20 10:18:10.000000000 -0400
  @@ -36,6 +36,7 @@
     int iId;			 // the weapon ID value
     int price;		   // Price of weapon
     int priority;			// Priority to buy this weapon
  +  int iIdIndex;
   } weapon_price_table;
  
   // BOT SPECIFIC / AUDIOABLE / VISUAL PROPERTIES
provides table lookup for weapon_id -> wapen_tabel
instead of a for loop

Last edited by Josh_Borke; 20-07-2004 at 18:18..
  
Reply With Quote
Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things....
Old
  (#50)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Unofficial RealBot WIP #10 at the filebase, grab it, and lets collect bugs/things.... - 20-07-2004

Euh, double price checking everywhere!?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
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