Dumb Bots!! Shrub commands


(jemstar) #1

Hey,

Having issues with bots on my server, set up shrubs to !addbot !kickbot !addbots !kickbots and !maxbot

the only one that works well is !addbots which is set to minbot -1, maxbot 4

!maxbot [] also works

If i want to add a bot to a specific team, of a specific class it will add then immediately leave. I believe this is due to balanced teams. Have set balancedteams to 0 in bot cfg and server cfg and NQ cfg but same issue.

Same thing if I want to kick a bot to make game fair, it leaves but another takes its place. I get round this by using !maxbot to increase and decrease bots on server and then use !put bot spec to shuffle till i get what I want.

I am appreciative of any advice, not sure if this is the correct place to post but would be grateful of any help,

Jem.

These are my settings atm:

bot.cfg

[ServerManager]
MinBots = 0
MaxBots = 0
BalanceTeams = 0
SaveConfigChanges = 1
CountSpectators = 0

shrub.cfg

[command]
command = addbot
exec = bot addbot [1] [2] [3]
desc = Adds bot to game. Syntax: !addbot <team> <class> <name>. Don’t use whitespaces in <name>.
levels = 9 10 11

[command]
command = kickbot
exec = bot kickbot [1] [2] [3]
desc = Kicks a bot. Syntax: !kickbot <name>.
levels = 9 10 11

[command]
command = kickbots
exec = bot minbots 1; bot maxbots 1; bot kickall
desc = Cleans server from bots.
levels = 9 10 11

[command]
command = addbots
exec = bot minbots -1; bot maxbots 4; bot addall
desc = Adds upto 4 bots to server.
levels = 9 10 11

[command]
command = maxbot
exec = bot maxbots [1]
desc = Sets maximum count of bots in game.
levels = 9 10 11

server.cfg

set g_teamforcebalance 0

NQ.cfg

set g_teamforcebalance 0


(stealth6) #2

If you kick a bot and he comes back (or is replaced by another) it means that your maxbots is set.
So let’s say there are 5 players and 1 bot and you kick the bot, but he comes back again. This is caused by bot maxbots “6”

I also guess that this is the same cause for the other problem. If you add a bot, but the limit is 6, then it will kick the bot again because otherwise you’d have 7 bots.

Also if you want to disable maxbots or minbots you have to set the value to -1
Setting the value to 0 means you want 0 bots.

minbots = there are always this many bots on the server, so if it’s set to 1 then there will always be 1 bot on the server regardless of the amount of other players / bots
maxbots = the maximum number of bots on the server, but if a player join a bot will leave.

So I suggest either:

  • Set maxbots and minbots to -1 and use addbot and kickbot to control the amount of bots
    OR
  • Use minbots and maxbots to adjust the amount of bots and don’t use addbots (kickallbots is still needed here to get rid of bots if you set the maxbot limit back to -1)

(jemstar) #3

Thanks heaps stealth!! will try the -1 for max and min and see how it goes!!

ty again,
Jem.