Bots
reclaimer-bot, a download of its own, is a bot for dedicated servers: a DJ, a bridge to another chat, an announcer. It joins with no game, graphics card, display or sound device, so it runs anywhere that can reach the server. Its download comes with BOT.md, the whole guide.
- A bot is a member of the server's chat and voice and of nothing else: no player slot, team, score or vote, and never in the join queue. Players see its name with
[BOT]in chat and the voice widget. - It sends music-quality voice, 48 kHz stereo, whatever the server's
voice_quality. A server takes 8 bots at most, and a game hosted by a player takes none.
- Make its identity
reclaimer-bot idmakes the key file,reclaimer-bot.keyin the current folder, and prints the bot's player ID. Keep the file to keep the ID, and keep it private. - Let it inTurn bots on and give that ID a role with
bots.run; the change takes effect onreload:dedicated.toml[defaults] allow_bots = true [roles.dj] title = "DJ" rank = 12 can = ["bots.run"] players = ["<the bot's ID>"] - Join
reclaimer-bot join HOST:PORT --name DJ --input wav:music.wav --loop. It stays while its ID holds a role withbots.run, and leaves within a second if it's banned.
- Sound in: a WAV file, or raw 16-bit PCM from a file or pipe (
--input raw:PATH:RATE:CHANNELS), on the all channel. - Sound out: what the bot hears, each voice channel or the mix, to a file or pipe of its own (
--output). - Scripting: one JSON object a line. On its input,
{"say": "text"},{"play": "wav:FILE"},{"stop": true}and{"quit": true}; on its output, the chat, who's speaking and who's on the server. - The remote console's
botslists them, andbots kickdisconnects one. - On macOS, a bot downloaded in a browser is blocked, as a server is: run
xattr -dr com.apple.quarantineon its unzipped folder once.
Fighting bots
A server can also host players of its own that fight in its multiplayer games, to fill a big game or keep one going. Set combat_bots, and bot_pilots for how many of them take vehicles, in [defaults] or a [[server]]:
dedicated.toml
[[server]]
name = "Big Battle"
port = 49180
max_players = 128
combat_bots = 120 # fighting players, pilots included
bot_pilots = 40 # of them in the map's vehicles
- Places: bots share
max_playerswith people, and must leave at least one place for a person: the server above has room for 8.bot_pilotscan't be more thancombat_bots. Both are 0 unless set. - Pilots take vehicles of the kinds the map has, and the server keeps a fleet of them for the pilots. On a map without vehicles, they fight on foot.
- Games go on without people: the server starts its multiplayer games with its bots even when no person is connected, and the bots stay through its whole rotation.
- Multiplayer only: a campaign, ODST or Reach co-op server, or a rotation with co-op entries, can't have fighting bots.
- Every count shows them apart from people: 1/120 [100 bots] in the Server Browser, a friend's game details, Discord, the console's
statusandplayers, anddedicated status;status.jsonhasbotsandcombat_bots. They have no network connection and no stats. - Changing either setting, or
max_playerson a server with fighting bots, restarts the server once no person is connected. Neither has an environment variable.
