Urban Terror Forums: script to start server with bots - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

script to start server with bots Rate Topic: -----

#1 User is offline   CorlacolII (old) Icon

  • Joined: 03-June 04
  • Posts: 44

Posted 20 July 2004 - 06:48 PM

Hi,

I use to train against bots once in a while. But then you have to set up the server, select the map, change the bots etc etc. So being the lazy linuxer I am I wrote this little shell-scipt:


#!/bin/bash
opties="+set fs_game q3ut3 +map ut_casa +set g_gametype 4"
number_of_bots=5
bot_level=5 # nightmare
botnames=(
    Penguin Scarab Puma Boa Widow Chicken
    Cockroach Cobra Cougar Goose Scorpion
    Raven Python Tiger Mantis Cheetah )
no_bots=${#botnames[*]}
for ((i=1 ;i <= $number_of_bots; i++)); do
    random=$(($RANDOM % $no_bots))
    bots="$bots +addbot ${botnames[$random]} $bot_level red"
    unset botnames[$random]
    botnames=(${botnames[*]})
    no_bots=$(($no_bots-1))
done
quake3 $opties $bots



I hope you like it :)

#2 Guest_Trizt

Posted 16 August 2004 - 06:55 PM

Quite nice script :D

#3 User is offline   gk245 (old) Icon

  • Joined: 07-February 04
  • Posts: 88

Posted 26 August 2004 - 06:54 PM

pretty cool. But i run it and get a error about 'hunk alloc failed at 17770098blah'. Is my ram dying or is the script wrong?

#4 User is offline   CorlacolII (old) Icon

  • Joined: 03-June 04
  • Posts: 44

Posted 26 August 2004 - 08:05 PM

not enough RAM

#5 User is offline   gk245 (old) Icon

  • Joined: 07-February 04
  • Posts: 88

Posted 30 August 2004 - 05:53 PM

got it to work, turns out, com_hunkmegs was set at 56. I have 768mb of ram, so i set hunkmegs to 128.

Works now, thx.

bullet_loaderAdvertisement

#6 User is offline   CorlacolII (old) Icon

  • Joined: 03-June 04
  • Posts: 44

Posted 30 August 2004 - 06:12 PM

Yeah those bot are memory hungry pigs. I just added 512MB and they started playing a lot better. :?

I mean... python was stuck at some corner, I stand around a corner and I hear him stepping without getting anywhere. I have a nade and I wear a helmet. So I decided to throw the nade on him while hiding behind the ledge. I pull the pin. I count.
one
two
two and a half... python manages to break free, but who cares. He can't see me and he could not have heard me and I have a life nade which is ripe within half a second.

two and three quarters. python jumps

two point nine nine python shoots two bullets over the ledge while in midair. DOUBLE HEADSHOT!!!! :evil:

I was so upset about his stupid luck I couldn't play decently anymore and I quit for the day.

#7 User is offline   gk245 (old) Icon

  • Joined: 07-February 04
  • Posts: 88

Posted 30 August 2004 - 11:07 PM

lol. well, nightmare bots are same as 'cheating bots'. It isn't really realistic to play against them and get angry. Sort of ruins the day.

#8 User is offline   Woekele Icon

  •   former FS member   
    Public Relations
  • Account: woekele
  • Country:
  • Joined: 26-January 10
  • Posts: 11,575

Posted 30 August 2004 - 11:42 PM

[quote name='"gk245"]lol. well' date=' nightmare bots are same as 'cheating bots'. It isn't really realistic to play against them and get angry. Sort of ruins the day.[/quote']

The same feeling you get when you have to cycle through the rain 3 times in one day?? :evil:

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942