![]() |
![]() ![]() |
![]() |
Benie |
![]() ![]()
Post
#1
|
Member ![]() ![]() Group: Members Posts: 13 Joined: 28-August 09 Member No.: 1,677 ![]() |
Ok, playing TF2, I auto-add 15 bots though a cfg file. The last bot auto-added moves. The other bots stay in place.
This doesn't happen when the bots are manually added, and they walk around/kill just fine. But why is this happening? It happens on all maps, and I got the thing correctly installed. I have the Steam version. RCBot2 0.51. I got the rcbot2 folder installed in it's correct location; Steam\steamapps\my Steam account name\rcbot2. It seems like the waypoints are working, but not fully. ![]() |
Cheeseh |
![]()
Post
#2
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
Ok, playing TF2, I auto-add 15 bots though a cfg file. The last bot auto-added moves. The other bots stay in place. This doesn't happen when the bots are manually added, and they walk around/kill just fine. But why is this happening? It happens on all maps, and I got the thing correctly installed. I have the Steam version. RCBot2 0.51. I got the rcbot2 folder installed in it's correct location; Steam\steamapps\my Steam account name\rcbot2. It seems like the waypoints are working, but not fully. ![]() Check that the bots names you give them do not have spaces in them, this may cause problems. The bots work by controlling the next bot that joins with the name that you give them, however if it cannot find the correct name it might decide not to control it. Also if you are using min_bots/ max_bots you do not need to add bots manually, and this might cause problems |
Benie |
![]()
Post
#3
|
Member ![]() ![]() Group: Members Posts: 13 Joined: 28-August 09 Member No.: 1,677 ![]() |
Check that the bots names you give them do not have spaces in them, this may cause problems. The bots work by controlling the next bot that joins with the name that you give them, however if it cannot find the correct name it might decide not to control it. Also if you are using min_bots/ max_bots you do not need to add bots manually, and this might cause problems The bot names do not have spaces in them. I basically got them setup as "Bot1" through "Bot15", and Bot15 is the only one that moves. As for min_bots/max_bots, I'm not using that either. All I have is the following in autoexec.cfg. I want a private server of 15 bots + me. // Server Stuff sv_lan 1 sv_password *hidden* sv_hostname Benie's Bot Server (not sure if this still works. It did in TFC with the HPB_bot) sv_region -1 sv_contact null@/dev/null // Cheat Me! sv_cheats 1 // Put bots in server rcbot addbot 2 0 Bot1 rcbot addbot 3 0 Bot2 rcbot addbot 2 0 Bot3 rcbot addbot 3 0 Bot4 rcbot addbot 2 0 Bot5 rcbot addbot 3 0 Bot6 rcbot addbot 2 0 Bot7 rcbot addbot 3 0 Bot8 rcbot addbot 2 0 Bot9 rcbot addbot 3 0 Bot10 rcbot addbot 2 0 Bot11 rcbot addbot 3 0 Bot12 rcbot addbot 2 0 Bot13 rcbot addbot 3 0 Bot14 rcbot addbot 2 0 Bot15 I played around by just doing "rcbot addbot", putting bots 1 through 7 on RED and bots 8 through 15 on BLU, and setting the classes from 1 to 9 instead of random pick. Nothing works. The only bot that moves is Bot15, as it's the last bot added. Also, wait commands do not work. All the bots get added at once. Apparently it doesn't like this. It doesn't matter if I got +plugin_load ../bin/HPB_Bot2 set in TF2's Steam Launch Options or not. |
MadMik3 |
![]()
Post
#4
|
Member ![]() ![]() Group: Members Posts: 29 Joined: 20-November 07 Member No.: 1,257 ![]() |
I have the same issue. If I add bots manually everything is good, if I put it in a cfg file, only one of them moves.
I tried rcbot min_bots command, if this works I'm okay if bots are random but it's not recognized I did rcbot min_bots 1 rcbot max_bots 11 neither were recognized. Like Benie, I'm not running dedicated server. |
Cheeseh |
![]()
Post
#5
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
The bot names do not have spaces in them. I basically got them setup as "Bot1" through "Bot15", and Bot15 is the only one that moves. As for min_bots/max_bots, I'm not using that either. All I have is the following in autoexec.cfg. I want a private server of 15 bots + me. // Server Stuff sv_lan 1 sv_password *hidden* sv_hostname Benie's Bot Server (not sure if this still works. It did in TFC with the HPB_bot) sv_region -1 sv_contact null@/dev/null // Cheat Me! sv_cheats 1 // Put bots in server rcbot addbot 2 0 Bot1 rcbot addbot 3 0 Bot2 rcbot addbot 2 0 Bot3 rcbot addbot 3 0 Bot4 rcbot addbot 2 0 Bot5 rcbot addbot 3 0 Bot6 rcbot addbot 2 0 Bot7 rcbot addbot 3 0 Bot8 rcbot addbot 2 0 Bot9 rcbot addbot 3 0 Bot10 rcbot addbot 2 0 Bot11 rcbot addbot 3 0 Bot12 rcbot addbot 2 0 Bot13 rcbot addbot 3 0 Bot14 rcbot addbot 2 0 Bot15 I played around by just doing "rcbot addbot", putting bots 1 through 7 on RED and bots 8 through 15 on BLU, and setting the classes from 1 to 9 instead of random pick. Nothing works. The only bot that moves is Bot15, as it's the last bot added. Also, wait commands do not work. All the bots get added at once. Apparently it doesn't like this. It doesn't matter if I got +plugin_load ../bin/HPB_Bot2 set in TF2's Steam Launch Options or not. The rcbot addbot command works like this: rcbot addbot <CLASS> <TEAM> <NAME> it looks like you are using rcbot addbot <TEAM> <?> <NAME> this will definitely confuse things, give the bots a proper class number and put them in the correct order and try again ps: What are your wait commands looking like ?? One wait should be one frame i.e. about 1/60th of a sec if running at 60 FPS. therefore you need 60 wait commands to wait one second! |
Benie |
![]()
Post
#6
|
Member ![]() ![]() Group: Members Posts: 13 Joined: 28-August 09 Member No.: 1,677 ![]() |
As I stated, I tried just having "rcbot addbot" only, and that didn't work.
Also I should state that I chose 0 for them to be a random class. As for the wait commands, my friend told me to add ten waits between each bot add. Didn't work. But to be honest, I shouldn't even have to add a wait command, as the readme never stated this. But it also never stated how to automatically add bots using a .cfg file. |
Cheeseh |
![]()
Post
#7
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
As I stated, I tried just having "rcbot addbot" only, and that didn't work. Also I should state that I chose 0 for them to be a random class. As for the wait commands, my friend told me to add ten waits between each bot add. Didn't work. But to be honest, I shouldn't even have to add a wait command, as the readme never stated this. But it also never stated how to automatically add bots using a .cfg file. But what I dont understand , you have rcbot addbot 2 0 This is choosing class 2, team 0 if you need random class on team 2 it should be rcbot addbot 0 2 but TBH i don't think they support random class anyway if that doesnt work, make sure the bot folder is installed to the correct folder and that there are waypoints loaded on the map, check "rcbot waypoint load" to see if anything appears. I'm sorry i can't be of anymore help because its probably something simple like this. At least try different bot names, give them unique names which aren't similar to each and every other bot. |
DainBramage77 |
![]()
Post
#8
|
Newbie ![]() Group: Members Posts: 6 Joined: 26-August 09 Member No.: 1,668 ![]() |
I've tried this same thing before, and I've figured out why the bots won't move when "auto-added":
The commands in a .cfg file are executed almost instantly, which causes problem when adding bots (don't know exactly why). You have to add the bots one by one. How do you do this in a .cfg file? Well, after seeing somebody make a thread on the Steam TF2 forums about adding bots to the main menu (using rcbot2), I figured out how to do it. One user posted his config file and I simply edited it for random bots and saved it as "bots.cfg": QUOTE sv_cheats 1 alias "redbot" "rcbot addbot 0 2" alias "blubot" "rcbot addbot 0 3" alias "botloadscript" "wait 300; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot" botloadscript This enables cheats, creates a script for adding bots every half a second (up to 20), then runs the script. All I have to do is type "exec bots" (without quotes) in the console BEFORE I join a team (otherwise the teams become unbalanced). This will add 20 random bots. Oh, and this is where I found the "bots on the main menu" thread: http://forums.steampowered.com/forums/show...ad.php?t=949866 |
Benie |
![]()
Post
#9
|
Member ![]() ![]() Group: Members Posts: 13 Joined: 28-August 09 Member No.: 1,677 ![]() |
Thanks for that, DainBramage77. But how do I set it to add 15 bots, with me always joining on RED?
|
DainBramage77 |
![]()
Post
#10
|
Newbie ![]() Group: Members Posts: 6 Joined: 26-August 09 Member No.: 1,668 ![]() |
Try this:
QUOTE sv_cheats 1 alias "redbot" "rcbot addbot 0 2" alias "blubot" "rcbot addbot 0 3" alias "botloadscript" "wait 300; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot; wait 50; redbot; wait 50; blubot" botloadscript It should spawn 15 bots and add a blubot first instead of a redbot. This should make the game have 8 blubots and 7 redbots allowing you to join red team and make it a 8v8 match (I have not tested this yet). |
MadMik3 |
![]()
Post
#11
|
Member ![]() ![]() Group: Members Posts: 29 Joined: 20-November 07 Member No.: 1,257 ![]() |
rcbot config min_bots 15
would work. I wasn't using config before, when I add it it works. |
Frenzy |
![]()
Post
#12
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 59 Joined: 1-February 09 Member No.: 1,458 ![]() |
![]() I have mine bound to my in-game menu because the same thing happened to me, but after a few maps I prefer this than auto-add. |
Benie |
![]()
Post
#13
|
Member ![]() ![]() Group: Members Posts: 13 Joined: 28-August 09 Member No.: 1,677 ![]() |
|
MadMik3 |
![]()
Post
#14
|
Member ![]() ![]() Group: Members Posts: 29 Joined: 20-November 07 Member No.: 1,257 ![]() |
|
MadMik3 |
![]()
Post
#15
|
Member ![]() ![]() Group: Members Posts: 29 Joined: 20-November 07 Member No.: 1,257 ![]() |
thanks DainBramage77
I just modified your script to select classes, I created an alias for each class instead of each team. Works good. Maybe I'll mess with running a dedicated server. Anyone tried running a dedicated server as a virtual machine? |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 27th June 2025 - 09:14 PM |