Posted by: phuchungbhutia | March 18, 2010

Adding Bots in Urban Terror

if you dont know what Urban Terror is then its an open source free multiplayer game similar to the likes of Counter Strike and uses Quake engine.

for more details goto :

http://www.urbanterror.info/

since its a multiplayer, to be able to play as asingle player it needs bots  you will need to create bots. here is the method how to add bots to it :

http://forums.urbanterror.info/topic/6906-running-bots-in-ut4/

Adding bots to a game

First tell the server to allow bots, press tilde (~) to open the console and type:

/bot_enable 1

and start the server through the appropriate menu choices

If the server is already running:

/reload

then you can start to add the bot(s):

/addbot <type> <level> <team> <ping> <server nick>

the <type> should use one of the following bot file names:

boa
cheetah
chicken
cobra
c ockroach (<== space between the C and the O added to pass BB filters)
cougar
goose
mantis
penguin
puma
python
raven
scarab
scorpion
tiger
widow

<level> should be between 1 (n00bish) – 5 (malevolent)

so the following would add a level 4 bot called “=lvl4=Puma” to the blue team:

/addbot Puma 4 Blue 76 =lvl4=Puma

Each bot type has it’s own weapon load out – Puma for example uses a LR300ML + Spas + Baretta combo. By making sure at least 1 bot has the same weapons as you, you’ll never run out of ammo.

Tactically, the bots are not very bright, and you can’t give them orders like q3 bots, however they do use the same evasion techniques (varying levels of crouching, bunny hopping and strafing) as live players, with varying levels of aggression.

Bot configuration files
If you want to add more than one bot at a time, you might want to make a .cfg file which you save to your q3ut4 directory
[pre]

/====== sample_bot.cfg======

addbot C ockroach 4 Blue 76 =lvl4=C ockroach
addbot Cheetah 4 Blue 56 =lvl4=Cheetah
addbot Cobra 4 Blue 45 =lvl4=Cobra
addbot Penguin 4 Blue 89 =lvl4=Penguin
addbot Puma 4 Blue 89 =lvl4=Puma
addbot Puma 1 Blue 89 =lvl1=Puma

/====== sample_bot.cfg======

[/pre]

get the server to load this by simply typing

/exec <filename>
Note while the example above tries to add bots to the blue team – the server will spread them evenly on both teams – so add an even number or face the chagrin of continually getting pwned at spawn, by bots.

As mentioned before, the bots mimic certain aspects of real life, in teams they will mimic certain aspects of team life, like occasionally tking you for no reason, ignoring calls for backup or medic, and appearing to be AFK at spawn.

Removing bots

/kick <nick>

If you have more than 1 bot, or you can’t be arsed typing whatever l33t nick you gave that 1 bot you added, you can use this to take all bots off the server:

/kick allbots

though be warned the server checks for nick matches in the player list first, so player ‘allbots’ would probably not be too happy with you, having been bumrushed off the server for no apparent reason.

Maps for running bots

Not every map in UT4 has bot support, the following do, sort of -

Abbey
Algiers
Austria
Dressing room
Firing Range
Mandolin *
Riyadh
Prague*
Toxic*
Uptown

Some maps work better than others – the maps marked with an asterisk are maps where the bots have trouble getting out of the spawn points.

The maps found most useful in upping my game are :

Firing range - good for close quarters practice
Riyadh – add several bots for sniper target practice
Algiers – for finding sweet spots on the map to fire from cover
Dressing room – for mixed terrain levels + varying range battles – though bots will fall into the river in the middle and remain in there.

and again:

http://www.thinkdigit.com/forum/showthread.php?t=62954

Here’s a page which tells you how to add bots to your game:

http://www.forums.urbanterror.net/in…ic,8053.0.html

It’s a comprehensive set of instructions but it doesn’t tell you which bots have which weapons/armour/gear, which is something I’d really like to know. Anyone seen a list?

Note: the cockroach bot name should be spelled without a space. Be aware that you can’t use spaces in bot names though. Use underscores instead.

Know also that the ping value will default to zero (0) for bots added to a game hosted on your computer (no network traffic), so you may as well set it to 0 in the first place, making life a little easier.

I use the config file method which allows multiple bots to be added at once, saving time and thus reducing the risk of being shot whilst adding bots. I’ve made several .cfg files with names like bots4.1.cfg, bots.4.2.cfg – denoting two sets of different bots all set to level 4. Level 1 makes bots stupidly easy to kill. Level 5 is almost as tough as playing online with the pros, except bots are much less cooperative in team games.
By using small groups of bots at different skill levels I can mix and match my teammates/opponents by loading in different .cfg files depending on the map and how lucky I’m feeling. When it’s getting too easy I just kick off a few level 3 bots and add a level 4 or 5 bot instead.

Note: set all bots to join the same team (e.g. blue) in all your config files and they’ll be distributed evenly anyway (unless you’ve changed that option in your server settings, I think). Add them one by one and they won’t.

Handy hint: I’ve taken to naming bots according to their bot name and the level I’ve set them to, e.g. mantis_4
This makes it easier to identify bots with weapons that you tend to use (more ammo) and comes in handy when you want to kick off lower level bots in order to add harder ones, or vice versa.

One more thing; if you have an autoexec.cfg file in your q3ut4 folder just insert this on a new line and bots will be enabled by default when you start UT4:

set bot_enable 1

That way you won’t have to first enable bots and then reload the server.
Once you’ve saved the autoexec.cfg file, launched UT4 and started a server, you can add bots straight away in the usual manner.

Note: .cfg files are basically text files with a different suffix, so they can be edited in Notepad, Text Edit, BBEdit, etc.
If you don’t have an autoexec.cfg file then you can easily make one. Use double forward-slashes if you want to add comments, e.g:

// Enable bots for single-player mode
set bot_enable 1

and:

I’ve managed to probe the contents of the zpak000.pk3 file and deciphered the following list of bot weapon/gear assignments:

Name: Boa
Primary: ZM LR300 ML
Secondary: H&K MP5K
Sidearm: .50 Desert Eagle
Grenades: HE Grenades
Item 1: Kevlar Vest
Item 2: -
Item 3: -

Name: Cheetah
Primary: Kalashnikov AK103
Secondary: Franchi SPAS-12
Sidearm: .50 Desert Eagle
Grenades: HE Grenades
Item 1: Kevlar Vest
Item 2: -
Item 3: -

Name: Chicken
Primary: H&K G36
Secondary: H&K MP5K
Sidearm: .50 Desert Eagle
Grenades: HE Grenades
Item 1: Kevlar Vest
Item 2: -
Item 3: -

Name: Cobra
Primary: ZM LR300 ML
Secondary: H&K MP5K
Sidearm: .50 Desert Eagle
Grenades: Smoke Grenades
Item 1: Kevlar Vest
Item 2: -
Item 3: -

Name: Cockroach
Primary: H&K UMP45
Secondary: -
Sidearm: Beretta 92G
Grenades: Flash Grenades
Item 1: Kevlar Vest
Item 2: -
Item 3: -

Name: Cougar
Primary: H&K G36
Secondary: -
Sidearm: Beretta 92G
Grenades: Flash Grenades
Item 1: Silencer
Item 2: Kevlar Vest
Item 3: -

Name: Goose
Primary: H&K 69
Secondary: H&K UMP45
Sidearm: .50 Desert Eagle
Grenades: -
Item 1: Extra Ammo
Item 2: Kevlar Vest
Item 3: -

Name: Mantis
Primary: ZM LR300 ML
Secondary: -
Sidearm: Beretta 92G
Grenades: -
Item 1: Laser Sight
Item 2: Silencer
Item 3: Kevlar Vest

Name: Penguin
Primary: ZM LR300 ML
Secondary: -
Sidearm: .50 Desert Eagle
Grenades: -
Item 1: Laser Sight
Item 2: Silencer
Item 3: Kevlar Vest

Name: Puma
Primary: ZM LR300 ML
Secondary: -
Sidearm: Beretta 92G
Grenades: -
Item 1: Laser Sight
Item 2: Silencer
Item 3: Kevlar Vest

Name: Python
Primary: H&K G36
Secondary: Franchi SPAS-12
Sidearm: .50 Desert Eagle
Grenades: HE Grenades
Item 1: Kevlar Vest
Item 2: -
Item 3: -

Name: Raven
Primary: H&K PSG-1
Secondary: H&K MP5K
Sidearm: .50 Desert Eagle
Grenades: -
Item 1: Kevlar Vest
Item 2: Silencer
Item 3: -

Name: Scarab
Primary: H&K G36
Secondary: H&K MP5K
Sidearm: .50 Desert Eagle
Grenades: -
Item 1: Kevlar Vest
Item 2: Silencer
Item 3: -

Name: Scorpion
Primary: Remington SR8
Secondary: H&K MP5K
Sidearm: Beretta 92G
Grenades: HE Grenades
Item 1: Kevlar Vest
Item 2: -
Item 3: -

Name: Tiger
Primary: Kalashnikov AK103
Secondary: -
Sidearm: Beretta 92G
Grenades: HE Grenades
Item 1: Medkit
Item 2: Kevlar Vest
Item 3: -

Name: Widow
Primary: ZM LR300 ML
Secondary: H&K MP5K
Sidearm: Beretta 92G
Grenades: -
Item 1: Kevlar Vest
Item 2: Laser Sight
Item 3: -

and here:

http://forums.urbanterror.info/topic/19892-addbot-for-ut/

If you want to activate addbot without doing it manually each time, try this

add the following to autoexec.cfg file using notepad:

bot_enable 1

after start up server,press ~ key at the left hand top keyboard and use the following command to add bot:

/addbot boa 5 red (or blue)
/addbot tiger 4 red (or blue)
/addbot goose 3 red (or blue)

Check for the files within the UT folder for more info.

I would like to suggest that developer should leave the name out or auto assign a name becos at time a spelling mistake need to retype the command.

You’re trying too hard. The bot_enable 1 goes in the server.cfg file on the server so it runs every time the server is started or exec’d. In your (the client) autoexec.cfg file drop in the binds that add your bots-

bind 3 rcon addbot goose 4 Red 6500 Sandra_Shooter
bind 4 rcon addbot goose 4 Blue 3500 Busty_Buela
bind 5 rcon addbot cobra 4 Red 6500 Lulu_Luger
bind 6 rcon addbot boa 4 Blue 6500 Betty_Beretta
bind 7 rcon addbot tiger 5 Red 6500 Bitchn_Blond
bind 8 rcon addbot widow 5 Blue 6500 Slutorous_Soldier
bind 9 rcon addbot Trooper 3 Red 6500 Connie_Commando
bind 0 rcon addbot Guard 3 Blue 6500 Shirley_Sharpshooter

As long as you are already logged in with an rcon password you can add bots at the touch of a key.


Responses

  1. Very interesting post. TVS Wego is the best scooter in its segment and much better in comparison to its rivals. Am planning to buy it soon.

  2. Would you like to link sites? I’ve been looking for another site with battle.net stuff to link with.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.

Join 26 other followers

%d bloggers like this: