Urban Terror Forums
News: Check the front page for latest news... July 03, 2009, 10:54:51 PM
Welcome, Guest. Please login or register.

Login with username, password and session length
Login | Register
Urban Terror links: Forum Rules | FAQ | Manual
Pages: [1] 2 3 ... 18   Go Down
  Print  
Author Topic: Running bots in UT4  (Read 69724 times)
0 Members and 2 Guests are viewing this topic.
Colonel Blimp
Urban Wannabe

Offline Offline

Posts: 54


« on: June 06, 2007, 11:14:09 AM »

I know bots are officially unsupported in this version of UT, however for those of you looking for offline practice to hone your fledgling skills, here's a quick how-to for adding a bot or bots to your own private server. For the more experience playas - feel free to point out any glaring inaccuracies contained here.

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


/====== 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======




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 I've 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.


Logged

plays as Kernel Blimp, pleased to meetcha!
woekele
Dev Team
Banana Spammer

Offline Offline

Posts: 11576


Banana!


WWW
« Reply #1 on: June 06, 2007, 11:18:13 AM »

Tnx, nice explanation. I'll add this guide to the 4.0 FAQ.
Logged

b0ciaM
Urban Gamer

Offline Offline

Posts: 71


WWW
« Reply #2 on: June 07, 2007, 04:42:32 AM »

n1
Logged

Poelier`
Urban Fan

Offline Offline

Posts: 83


"poe > all"


WWW
« Reply #3 on: June 07, 2007, 05:31:40 AM »

nice to see ppl that are bussy explaining stuff to "new" or "regular" players of urt.

Keep up the good work m8
Logged


Wearing a banana hammock made from the skin of a cheetah
G_Force
Urbanite

Offline Offline

Posts: 1


« Reply #4 on: July 01, 2007, 09:47:42 AM »

Hey, does this only work with the Q3 add-on version, or should it work with ioUrbanterror too? Just can't get it to work at all  undecided
Thanks
G
Logged
woekele
Dev Team
Banana Spammer

Offline Offline

Posts: 11576


Banana!


WWW
« Reply #5 on: July 01, 2007, 10:33:50 AM »

Works with ioUrT as well.
Logged

Colonel Blimp
Urban Wannabe

Offline Offline

Posts: 54


« Reply #6 on: July 03, 2007, 02:36:09 AM »

Hey, does this only work with the Q3 add-on version, or should it work with ioUrbanterror too? Just can't get it to work at all  undecided
Thanks
G

I use ioUrbanterror -

couple of things to check -
* did you allow the server to run bots? - the default setting is no bots
* what error messages do you get when you try to add a bot? - if it says something like "can't load bot file ......" you've probably got a typo in the bot name
Logged

plays as Kernel Blimp, pleased to meetcha!
fate swarm
nothing

Offline Offline

Posts: 8148

chased away


« Reply #7 on: July 03, 2007, 05:03:12 AM »

bot_enable 1 and then map_restart or bot_enable 1 before starting a server, it won't work midgame.
Logged

your more than welcome to not return.
woekele
Dev Team
Banana Spammer

Offline Offline

Posts: 11576


Banana!


WWW
« Reply #8 on: July 03, 2007, 07:14:33 AM »

map_restart

Eh?

map_restart shouldn't be used anymore Smiley

Either restart or reload. A reload is needed for bot_enable setting.
Logged

fate swarm
nothing

Offline Offline

Posts: 8148

chased away


« Reply #9 on: July 03, 2007, 07:38:45 AM »

"eh" what? it works. if it shouldn't be used remove it.

grin
Logged

your more than welcome to not return.
woekele
Dev Team
Banana Spammer

Offline Offline

Posts: 11576


Banana!


WWW
« Reply #10 on: July 03, 2007, 07:43:27 AM »

what does your sig say btw? I came, I saw, I conquered?
Logged

fate swarm
nothing

Offline Offline

Posts: 8148

chased away


« Reply #11 on: July 03, 2007, 07:44:50 AM »

what do you mean?
Logged

your more than welcome to not return.
woekele
Dev Team
Banana Spammer

Offline Offline

Posts: 11576


Banana!


WWW
« Reply #12 on: July 03, 2007, 07:52:11 AM »

Your signature, what does it say? Cheesy

δεν ελπίζω τίποτα, δεν πιστεύω τίποτα, είμαι ελεύθερος huh
Logged

fate swarm
nothing

Offline Offline

Posts: 8148

chased away


« Reply #13 on: July 03, 2007, 07:55:43 AM »

epitaph of this crazy guy

http://en.wikipedia.org/wiki/Nikos_Kazantzakis

well, slightly changed.
Logged

your more than welcome to not return.
a wily duck
Urban Lord

Offline Offline

Posts: 444


Digital Amusement Gamedev


WWW
« Reply #14 on: July 22, 2007, 12:19:52 AM »

Bump.

I am requesting 'supported' bot support.

Additionally, using the manual way specified above works to a point, but as soon as bloodshed occurs, ioUrT crashes.  huh

Logged
Pages: [1] 2 3 ... 18   Go Up
  Print  
 
Jump to:  

Top
Urban Terror links: Forum Rules | FAQ | Manual
Powered by SMF | SMF © 2006-2009, Simple Machines LLC