How to Add Bots on Your Barotrauma Server
You can add bots to fill empty crew slots on your server. Bots act as AI-controlled crew members and take on roles that are not occupied by players.
Warning
Make sure your server is stopped before editing the config file.
Stop the server
Stop your server via the dashboard.Connect via SFTP
Connect to your server via SFTP.Open serversettings.xml
Open the fileserversettings.xmlat:/serversettings.xml/serversettings.xmlSet bot count
Find theBotCountsetting and set it to the desired default number of bots:xmlBotCount="4"BotCount="4"Set max bot count
Find theMaxBotCountsetting and set it to the maximum number of bots allowed:xmlMaxBotCount="8"MaxBotCount="8"Start the server
Save the file and start your server.
Note
Bots automatically fill empty crew slots up to the configured BotCount. As players join, bots are removed to make room. The MaxBotCount limits how many bots can be present at once.