Add Oxygen to a Space Engineers Server
This guide explains how to add oxygen to a Space Engineers dedicated server, covering both the game world settings and the necessary server configuration files. You’ll learn how to enable oxygen in atmospheres, ensure oxygen farms and tanks work, and troubleshoot common issues where oxygen doesn’t appear or isn’t generated.
What You’ll Need
- Admin access to your Space Engineers dedicated server (either the server console, RCON, or the server’s file system).
- The server’s
Sandbox.sbcfile, which contains the world settings. - A text editor (like Notepad++ or VS Code) to edit the configuration files.
- Basic familiarity with the server’s folder structure (usually
.../DedicatedServer64/Saves/<WorldName>/).
Step-by-Step
- Stop the server – Always shut down the server cleanly before editing configuration files to avoid corruption. Use the server console or your hosting panel’s stop button.
- Locate the world folder – Navigate to the server’s save directory. The default path is
DedicatedServer64/Saves/<WorldName>/. If you’re using a hosting provider, use their file manager or FTP. - Open
Sandbox.sbc– This is the main world settings file. Make a backup copy before editing. - Find the
<Settings>section – InsideSandbox.sbc, locate the<Settings>block. It contains many world options. - Set
<EnableOxygen>to true – Look for the line<EnableOxygen>false</EnableOxygen>and change it totrue. If the line doesn’t exist, add it inside the<Settings>section. - Check atmosphere settings – In the same
<Settings>section, ensure<EnableOxygen>is not the only thing. For oxygen to appear on planets, the world must have an atmosphere. This is controlled by the planet’s definition, not the server settings. However, if you’re using a custom planet, verify it has an oxygen atmosphere in itsPlanetGeneratorDefinitions.sbc. - Save the file – Save
Sandbox.sbcand close the editor. - Restart the server – Start the server again. The world will load with oxygen enabled.
- Verify in-game – Join the server and check if your suit’s oxygen gauge fills when outside on a planet with an atmosphere. Also, oxygen farms and tanks should start generating oxygen.
Common Mistakes
- Editing the wrong file – Make sure you’re editing
Sandbox.sbcin the correct world folder, not the default world template. - Forgetting to stop the server – Editing files while the server is running can lead to overwrites or corruption.
- Only enabling oxygen in the server settings – Oxygen also depends on the planet’s atmosphere. If you’re on a moon or a planet without an atmosphere, oxygen won’t appear regardless of the setting.
- Not restarting the server – The change only takes effect after a full restart.
- Syntax errors – Adding the
<EnableOxygen>line incorrectly (e.g., outside<Settings>) can break the file. Always validate XML.
Tips
- Use a dedicated XML validator or a text editor with XML syntax highlighting to avoid mistakes.
- If you want oxygen to be available on all planets, check the planet’s definitions in the
Content/Datafolder of the server installation. Look for<OxygenAtmosphere>true</OxygenAtmosphere>in the planet’sPlanetGeneratorDefinitions.sbc. - For existing worlds, oxygen will start appearing after the restart, but any blocks that were built without oxygen (like oxygen generators) may need to be rebuilt or toggled.
- Consider setting the
<OxygenAmount>in the planet’s definition to adjust the density, but this is optional.
Troubleshooting
Oxygen still not appearing after enabling it – Check the planet’s atmosphere. If you’re on a planet without an atmosphere, oxygen won’t exist. Try a planet like Earth-like or Mars. Also, verify the server didn’t revert the file – some hosting panels have a ‘verify files’ option that resets changes.
Server won’t start after editing – This is usually a syntax error in Sandbox.sbc. Restore the backup you made and redo the edit carefully, ensuring the XML is well-formed.
Oxygen farms produce nothing – Oxygen farms require sunlight and an atmosphere. If they’re in a dark area or on a moon, they won’t work. Also, ensure the farm is connected to a conveyor system with an oxygen tank.
Oxygen tanks don’t fill – Check that the tank is set to ‘Stockpile’ mode. If it’s on ‘Auto’, it will only fill when the connected grid has a demand. Also, ensure the oxygen generator has ice in its inventory.
Players suffocate in bases – If you have oxygen enabled but no oxygen in an enclosed space, you need an oxygen generator with ice, or an oxygen tank filled from a farm. Also, check that the room is airtight – use the ‘Show air’ tool in the admin menu to visualize.
Frequently Asked Questions
Q: Do I need to enable oxygen for each world separately?
A: Yes, the setting is per-world. You must edit the Sandbox.sbc for each world you want to have oxygen.
Q: Can I enable oxygen on a server that is already running?
A: No, the setting is read at world load. You must restart the server after making the change.
Q: Will enabling oxygen affect performance?
A: Slightly, as the game must simulate oxygen distribution and leak checks. The impact is usually minimal on modern hardware.
Q: How do I make oxygen available on a custom planet?
A: Edit the planet’s definition in PlanetGeneratorDefinitions.sbc and set <OxygenAtmosphere>true</OxygenAtmosphere>. Then regenerate the planet or use a new world.
Q: Why do my oxygen tanks not fill even with oxygen enabled?
A: Check that the tank is connected to a power source and a conveyor system with an oxygen generator or farm. Also, ensure the tank’s ‘Stockpile’ mode is off for automatic filling.
Q: Is there a command to enable oxygen without editing files?
A: No, there is no in-game admin command for this. You must edit the server files.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.