Skip to content

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.

  1. Stop the server
    Stop your server via the dashboard.

  2. Connect via SFTP
    Connect to your server via SFTP.

  3. Open serversettings.xml
    Open the file serversettings.xml at:

    /serversettings.xml
    /serversettings.xml
  4. Set bot count
    Find the BotCount setting and set it to the desired default number of bots:

    xml
    BotCount="4"
    BotCount="4"
  5. Set max bot count
    Find the MaxBotCount setting and set it to the maximum number of bots allowed:

    xml
    MaxBotCount="8"
    MaxBotCount="8"
  6. 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.