4.8 KiB
cyberdeck-urt
An endless Urban Terror 4.3.4 bot match on the Mac mini, next to the Quake III arena
(cyberdeck-quake3). Join with /connect 192.168.8.154:27961; a bot steps out to make room.
Stats: http://urt.local (http://192.168.8.154:3008), source in ../urt-arena-site.
Why it isn't a fork of the Q3 arena
Urban Terror is a standalone game on Frozen Sand's ioq3-based engine, and its game code (qagame) is closed. The Q3 arena's patched game module (mutators, the juggernaut, kill-streak banners, bot trash talk) can't be ported. This repo is the stock UrT server plus the tooling around it:
server/: the server image. Its entrypoint downloads the freeware game from Frozen Sand's CDN into theurt-datavolume on first start, checks it against a pinned SHA-256 and runs the bundledQuake3-UrT-Ded.x86_64. No game data is in this repo.companion/: the stats collector (urt-companion).stats.pyis a copy of the Q3 arena's (Elo, weekly seasons, Hall of Fame, achievements, the raw-log archive), adapted to UrT's log.live.pybuilds the live scoreboard.deploy.py: builds both images on the Mac mini through Portainer and (re)creates the containers. It reusescyberdeck/macmini/lib/portainer.py, so the checkout must sit next tocyberdeck.
python3 deploy.py server # the game server (restarts the match)
python3 deploy.py companion # the stats collector
python3 deploy.py # both
python3 ../cyberdeck/macmini/urtsite/deploy.py # the stats site
Secrets (urt_rcon, urt_site_token) are generated once into the Mac mini credentials file
(~/.config/herdr/plugins/config/cyberdeck.macmini/credentials.json) and are never in the repo.
The pre-commit hook (scripts/git-hooks, enabled with core.hooksPath) blocks any that leak.
The server
server/cyberdeck-urt.cfg holds the settings and server/mapcycle.txt the rotation: 15 stock maps
with bot navigation (.aas), mostly alternating free for all (6 to 8 bots, 10 min) and 4v4 team
deathmatch (12 min). Each map block sets its own game type, bot count and time limit. If the
rotation changes, update ROTATION in companion/stats.py and URT_ROTATION in the site's
src/main.js too.
- Home network only: no master server heartbeats and no auth system. Port 27961/udp is published on the Mac mini but not forwarded from the internet.
- Friendly fire is off, because with it on, bots teamkill each other off the server.
g_loghits 1logs every hit with its body location. That's where headshot stats come from.
35 of UrT's 36 stock maps ship bot navigation files (2026-11-07), but having one doesn't mean the bots
can play there. Suburbs is out: its bots spawn, then stand around taunting and never fire. On
2026-11-07 it also froze the match clock at 0:00, so the time limit never came and the server sat on
Suburbs for 11.5 hours. Smoke-test a map before adding it: rcon map <name>, then check that Hit:
lines appear within a minute.
The companion's watchdog catches the next map like that. If the server is up with players but logs
no hit, kill or round start for 5 minutes, it sends rcon cyclemap (at most once every 6 minutes)
and logs watchdog: in its container log. Bots ignore objectives, so CTF and Bomb probably won't work well.
Free for all and team deathmatch are tested.
UrT's log, compared with the Q3 arena's
The log goes to the container's stdout, like the Q3 server's, and the collector reads it through Portainer. The differences that mattered:
| Quake III arena | Urban Terror | |
|---|---|---|
| bot or human | \skill\ in ClientUserinfoChanged |
\skill\ in ClientUserinfo (keyed by slot) |
| warmup ends | the map loads again (InitGame:) |
InitRound: |
| first blood, sprees, multi-kills | Announce: lines from the patched module |
worked out from Kill: lines in stats.py |
| weapon | MOD_RAILGUN |
UT_MOD_G36 → g36; UT_MOD_BLED (bled out) counts for whoever caused the wound |
| hits | none | Hit: victim attacker location weapon: A hit B in the Head → hits, headshots |
bot_minplayers |
per team in team modes | in total |
Kill:, Exit:, score: and ShutdownGame: lines are identical to Q3's.
Not yet
- Mutators. This is a plain bot match for now, as a baseline. Without game code, mutators would
have to come from the companion sending RCON commands between maps (
g_gravity,g_gear,g_instagib, game type), with announcements via RCONbigtext. - Highlight clips. The Q3 companion films sprees with a headless client. UrT would need its own client build in the companion image.
- A herdr scoreboard on the laptop, like the Q3 arena's
cyberdeck-q3plugin. - Mixed bot skill.
bot_minplayersadds every bot at the same skill. Mixing skills would mean adding bots by RCON (addbot <name> <skill>) instead.