Bots:Issues

From Custom Map Makers Wiki
Revision as of 07:05, 24 August 2011 by John (talk | contribs) (From RCON)
Jump to: navigation, search

General

It's been made clear that Urban Terror bots are un-supported. Official advice is to not use bots unless you know what you're doing.

Server use of bots

Some server owners like to use bots as a way of enticing players onto an empty server so there is interest in using bots.

A lot of advice for running bots applies mostly to server operators. General rules if you want to run bots.

  • Only include 1 or possibly 2 3rd party maps in your maps folder
  • Remove all unused .pk3 files from your q3ut4 folder - only include maps that you will use
  • Kick all bots after each map and replace them at the start of the next map
  • Use the 64-bit binary if possible (64-bit ubuntu is probably the best platform for a bot server)
  • If your server isn't capable of running TDM or CTF with 4 bots on casa - don't bother
  • Only certain maps support bots
  • Add bots one at a time
  • Include a large delay between bots entering the server

Bots in Urban Terror are not all that happy. Not all weapons are configured to be used by bots and only ffa, tdm and ctf are understood gametypes

Bots will not use ladders.

Bots will be attracted to dropped weapons over other goals, insist on carrying the flag randomly and sometimes team kill.

Adding bots

Bots are added to the server using the addbot command. In order to enable bots you will first need to set the server var bot_enable=1.

Your server will need to be restarted after issuing this command, to do this exec server.cfg

The addbot command supports the following options

  • bot type
  • bot level (1-5)
  • team (red or blue)
  • delay in microseconds before adding this bot
  • ingame name

For example : addbot boa 4 red 1000 REDBOA

Will add a bot with the playername of REDBOA which is a level 4 to the red team after waiting 1000 microseconds (1 second).

From RCON

The sequence of commands you should issue to add a bot to your server using the /rcon commands.

/rcon bot_enable 1
/rcon exec reload
/rcon addbot boa 3 red 1000 Redboa

Will add a bot tot the red team called Redboa.

Using a bot script

If possible it's generally preferable to create a small text file on your server which will help automate adding bots.

Create a file called addbots.cfg in your servers q3ut4 folder

bot_enable 1
kick allbots
addbot boa 3 red 1000 RedBoa
addbot boa 4 red 2000 HappyBoa
addbot mantis 3 red 3000 RedMantis

You will be able to execute this script from rcon using

/rcon exec addbots.cfg

Bot types

Making maps with bots

Simplify map, info_botroam