Skip to content
Alexander Kress edited this page Aug 8, 2018 · 28 revisions

» Home / Installation / Configuration

Modify your Urban Terror Server config file

Open your server config file: sudo vi /opt/urbanterror/.q3a/q3ut4/server.cfg

Modify the following parameter:

  • seta g_logsync "1"
  • seta g_loghits "1"

Restart the Urban Terror server.

Modify the Spunky Bot settings

  • Open the file /conf/settings.conf

  • Change the IP address, port and RCON Password according to your environment

    • server_ip IP address of the game server, 127.0.0.1 is recommended
    • server_port Port of the game server, 27960 is the default port for Urban Terror
    • rcon_password Password for RCON access
    • log_file Full path of the games.log log file of the game server
    • show_rules Enable (1) or disable (0) displaying rules / rotation messages
    • rules_frequency Interval in seconds between each rule / rotation message
    • display Display rules as 'chat', 'bigtext' or 'server' message. Options: chat/bigtext/server.
    • ban_duration Ban duration in days for the command "!ban "
    • warn_expiration Expiration time of warnings in seconds. Set to 0 to disable this feature
    • task_frequency Interval in seconds when player ping, spectator on full server and player warnings shall be checked. Set to 0 to disable this feature
    • max_ping Maximum allowed ping, player with higher ping will receive a warning and will be kicked. Set to 0 to disable this feature
    • kick_spec_full_server Warn and kick spectators when more than X players are connected. Set to 0 to disable this feature
    • teamkill_autokick Enable (1) or disable (0) the autokick function for team killing
    • noob_autokick Enable (1) or disable (0) the autokick function of players with low score. Regulars or higher levels will not get kicked
    • spawnkill_autokick Enable (1) or disable (0) autokick for spawn killing. Admins or higher levels will not get kicked
    • instant_kill_spawnkiller Enable (1) or disable (0) instant kill for player doing spawn kill. Admins or higher levels will not get killed
    • bad_words_autokick Enable (1) or disable (0) autokick for using bad words. Admins or higher levels will not get kicked
    • show_country_on_connect Enable (1) or disable (0) displaying the message "Player connected from..."
    • show_first_kill Enable (1) or disable (0) displaying the message "firstblood" / "first nade kill"
    • show_hit_stats_respawn Enable (1) or disable (0) displaying hit statistics during respawn
    • show_multi_kill Enable (1) or disable (0) displaying multi-kill and monster-kill messages
    • autobalancer Enable (1) or disable (0) autobalancing of teams at the end of the round/match
    • allow_teams_round_end Enable (1) or disable (0) allowing command !teams only at end of the round/match
    • limit_nextmap_votes Enable (1) or disable (0) limiting successful nextmap votes
    • kill_survived_opponents Enable (1) or disable (0) killing of survived opponents when bomb has been exploded/defused
    • spam_bomb_planted Enable (1) or disable (0) spamming the message "Bomb has been planted" in global chat
    • spam_knife_kills Enable (1) or disable (0) displaying player's knife kill series as bigtext
    • spam_nade_kills Enable (1) or disable (0) displaying player's HE grenade kill series as bigtext
    • spam_headshot_hits Enable (1) or disable (0) displaying player's headshot hit series as bigtext
    • heartbeat Enable (1) or disable (0) sending heartbeat signal (contains server port, bot and OS version) to our Master Server
    • verbose Enable (1) or disable (0) debug messages
    • dynamic_mapcycle Enable (1) or disable (0) dynamic mapcycle. If enabled, the rotation of small or big_cycle will be used
    • switch_count When server reaches the number of players, the map rotation will be switched to 'big_cycle' list
    • support_lowgravity Enable (1) or disable (0) support for Low Gravity Server
    • gravity Set the parameter g_gravity to the given value, default: 800
  • Start the Bot manually: python spunky.py

First start instruction

  • Connect to your game server and type !iamgod in global chat to get the admin level "Head Admin". This command is only once available.

Advanced configuration

Use the provided initscript to run Spunky Bot as a daemon:

Installation:

  • Modify the lines 20-25 of the file debian_startscript to suit where you installed Spunky Bot, and which user is running the Urban Terror server
  • Move the file to /etc/init.d/spunkybot: sudo mv debian_startscript /etc/init.d/spunkybot
  • Make it executable: sudo chmod +x /etc/init.d/spunkybot
  • Start the Bot at server boot: sudo update-rc.d spunkybot defaults
  • Manual start of the Bot: sudo /etc/init.d/spunkybot start