IPB

Welcome Guest ( Log In | Register )

> Bots don't move when auto-added
Benie
post Aug 29 2009, 03:03 AM
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. blink.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies(1 - 14)
Cheeseh
post Aug 29 2009, 10:00 AM
Post #2


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(Benie @ Aug 29 2009, 04:03 AM) *

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. blink.gif


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Benie
post Aug 29 2009, 03:41 PM
Post #3


Member
**

Group: Members
Posts: 13
Joined: 28-August 09
Member No.: 1,677



QUOTE(Cheeseh @ Aug 29 2009, 06:00 AM) *

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MadMik3
post Aug 29 2009, 08:33 PM
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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Aug 29 2009, 08:34 PM
Post #5


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(Benie @ Aug 29 2009, 04:41 PM) *

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!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Benie
post Aug 29 2009, 09:04 PM
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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Aug 29 2009, 09:15 PM
Post #7


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(Benie @ Aug 29 2009, 10:04 PM) *

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
DainBramage77
post Aug 29 2009, 10:29 PM
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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Benie
post Aug 29 2009, 11:56 PM
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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
DainBramage77
post Aug 30 2009, 12:04 AM
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).
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MadMik3
post Aug 30 2009, 02:45 AM
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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Frenzy
post Aug 30 2009, 03:41 AM
Post #12


Advanced Member
***

Group: Members
Posts: 59
Joined: 1-February 09
Member No.: 1,458



IPB Image

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Benie
post Aug 30 2009, 07:29 PM
Post #13


Member
**

Group: Members
Posts: 13
Joined: 28-August 09
Member No.: 1,677



QUOTE(DainBramage77 @ Aug 29 2009, 08:04 PM) *

Try this:
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).

This works perfectly. Problem resolved.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MadMik3
post Aug 30 2009, 08:01 PM
Post #14


Member
**

Group: Members
Posts: 29
Joined: 20-November 07
Member No.: 1,257



QUOTE(Benie @ Aug 30 2009, 02:29 PM) *

This works perfectly. Problem resolved.



rcbot config min_bots 15 works but it doesn't let you control any classes, I end up with too many snipers, no scouts.



User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MadMik3
post Aug 30 2009, 08:33 PM
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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th June 2025 - 05:06 PM