Using the "operating" section in config.json, you can turn off AI on your server completely or set an upper limit for the number of AI units. This is useful e.g. for pure PvP servers or to save server performance.
Available options
| Option | Default value | Description |
|---|---|---|
disableAI |
false |
If set to true, AI is completely disabled on the server. |
aiLimit |
-1 |
Maximum number of AI units. Once the limit is reached, no system can spawn more AI. Negative values are ignored, in which case no limit applies. |
Disable AI completely
-
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Open config.json
Open the fileconfig.jsonin the root directory of your server. -
Add the operating section
Add the new"operating"section after the"game"section. To do this, put a comma after the closing bracket of"game":{ "game": { ... }, "operating": { "disableAI": true } }The
"operating"section is on the same level as"game", not inside it....stands for your existing settings in the"game"section, which you leave unchanged. -
Start the server
Save the file and start your server.
Limit the number of AI units
Instead of turning AI off completely, you can also set an upper limit. This mainly helps with performance problems caused by too many AI units. The limit applies to all systems that spawn AI – so e.g. also to AI placed by a Game Master.
-
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Open config.json
Open the fileconfig.jsonin the root directory of your server. -
Enter aiLimit
Add the"aiLimit"entry with the desired maximum to the"operating"section. If the section does not exist yet, create it after"game"as described above:"operating": { "aiLimit": 60 }If you previously entered
"disableAI": true, set the value tofalseor remove the entry – otherwise AI stays completely disabled and the limit has no effect. Separate multiple entries within"operating"with a comma. There is no comma after the last entry. -
Start the server
Save the file and start your server.
