Space Engineers

Space Engineers

[OBSOLETE] NPC Clean-Up and Performance
 This topic has been pinned, so it's probably important
Meridius_IX / Lucas  [developer] 13 Oct, 2017 @ 11:28am
Configuration File
File Location and Access

The configuration file can be found in this location:

C:\Users\[WINDOWSUSER]\AppData\Roaming\SpaceEngineers\Saves\[STEAMIDNUMBER]\[WORLDNAME]\Storage\1167708101.sbm_MeridiusIX\npcperformanceconfig.xml

You will need to open this file with a text editor. The contents of the file can look a bit intimidating, so I've created a cleaner version that can be used instead:

<?xml version="1.0" encoding="utf-16"?> <NPCPerformanceConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!--General Settings--> <ModRunTimer>2</ModRunTimer> <MinimumPlayerOwnedBlocks>5</MinimumPlayerOwnedBlocks> <RunWithZeroPlayers>false</RunWithZeroPlayers> <IncludeUnownedGrids>true</IncludeUnownedGrids> <!--Ship Removal Settings--> <EnableShipRemovalTimer>false</EnableShipRemovalTimer> <EnableShipRemovalDistance>true</EnableShipRemovalDistance> <ShipBlockLimits>false</ShipBlockLimits> <RemoveUnpoweredShips>true</RemoveUnpoweredShips> <StartShipTimerAfterDistance>false</StartShipTimerAfterDistance> <ResetShipTimerIfPlayerNearby>false</ResetShipTimerIfPlayerNearby> <!--Ship Removal Parameters--> <ShipBlockLimitCount>4000</ShipBlockLimitCount> <ShipRemovalTimer>30</ShipRemovalTimer> <ShipRemovalDistance>50000</ShipRemovalDistance> <!--Station Removal Settings--> <EnableStationRemovalTimer>false</EnableStationRemovalTimer> <EnableStationRemovalDistance>true</EnableStationRemovalDistance> <StationBlockLimits>false</StationBlockLimits> <RemoveUnpoweredStations>true</RemoveUnpoweredStations> <StartStationTimerAfterDistance>false</StartStationTimerAfterDistance> <ResetStationTimerIfPlayerNearby>false</ResetStationTimerIfPlayerNearby> <!--Station Removal Parameters--> <StationBlockLimitCount>8000</StationBlockLimitCount> <StationRemovalTimer>60</StationRemovalTimer> <StationRemovalDistance>50000</StationRemovalDistance> <!--Grid Rules & Tweaks--> <DisableLights>false</DisableLights> <DisableTurretRotation>false</DisableTurretRotation> <DisableRefineries>false</DisableRefineries> <DisableAssemblers>false</DisableAssemblers> <DisableAntennas>false</DisableAntennas> <DisableBeacons>false</DisableBeacons> <DisableProjectors>false</DisableProjectors> <DisableTools>false</DisableTools> <DisableSensors>false</DisableSensors> <DisableTimers>false</DisableTimers> <ForceLockRotorsAndPistons>false</ForceLockRotorsAndPistons> <RemoveSubGrids>false</RemoveSubGrids> </NPCPerformanceConfig>


Configuration Details


  • General Settings:

  • <ModRunTimer> - This field determines how often the mod checks for and processes grids. Measured in minutes.

  • <MinimumPlayerOwnedBlocks> - If player owns this many blocks on an NPC owned grid, the grid will be considered captured by the player and will not be removed.

  • <RunWithZeroPlayers> - When set to true, the mod will run even if there are no human players in the world (server only).

  • <IncludeUnownedGrids> - When set to true, the mod will consider unowned grids to be NPC.

    Ship Specific Settings:

  • <EnableShipRemovalTimer> - When set to true, the mod will apply a timer to the grid. Once the grid is older than the time specified in <ShipRemovalTimer>, it will be removed.

  • <EnableShipRemovalDistance> - When set to true, the mod will remove the grid if there are no players within the distance specified in <ShipRemovalDistance>.

  • <ShipBlockLimits> - When set to true, the mod will remove the grid if the block count exceeds the amount specified in <ShipBlockLimitCount>.

  • <RemoveUnpoweredShips> - When set to true, the mod will remove NPC ships if they are unpowered.

  • <StartShipTimerAfterDistance> - When set to true, the mod will start the ship removal timer after there are no players within the removal distance. Both <EnableShipRemovalDistance> and <EnableShipRemovalTimer> must be enabled for this to work.

  • <ResetShipTimerIfPlayerNearby> - When set to true, the mod will reset the grid removal timer on a grid is a player is closer than the removal distance. Only works if <StartShipTimerAfterDistance> is enabled.

  • <ShipBlockLimitCount> - Grids with more blocks than this number will be removed if <ShipBlockLimits> is enabled.

  • <ShipRemovalTimer> - If a grid has been in game longer than this number (minutes), it will be removed if <EnableShipRemovalTimer> is enabled.

  • <ShipRemovalDistance> - If there are no players within this distance to an NPC grid, it will be removed if <EnableShipRemovalDistance> is enabled.

    Station Specific Settings:

  • <EnableStationRemovalTimer> - When set to true, the mod will apply a timer to the grid. Once the grid is older than the time specified in <StationRemovalTimer>, it will be removed.

  • <EnableStationRemovalDistance> - When set to true, the mod will remove the grid if there are no players within the distance specified in <StationRemovalDistance>.

  • <StationBlockLimits> - When set to true, the mod will remove the grid if the block count exceeds the amount specified in <StationBlockLimitCount>.

  • <RemoveUnpoweredStations> - When set to true, the mod will remove NPC stations if they are unpowered.

  • <StartStationTimerAfterDistance> - When set to true, the mod will start the station removal timer after there are no players within the removal distance. Both <EnableStationRemovalDistance> and <EnableStationRemovalTimer> must be enabled for this to work.

  • <ResetStationTimerIfPlayerNearby> - When set to true, the mod will reset the grid removal timer on a grid is a player is closer than the removal distance. Only works if <StartStationTimerAfterDistance> is enabled.

  • <StationBlockLimitCount> - Grids with more blocks than this number will be removed if <StationBlockLimits> is enabled.

  • <StationRemovalTimer> - If a grid has been in game longer than this number (minutes), it will be removed if <EnableStationRemovalTimer> is enabled.

  • <StationRemovalDistance> - If there are no players within this distance to an NPC grid, it will be removed if <EnableStationRemovalDistance> is enabled.

    Individual Block Rules:

  • <DisableLights> - When set to true, eligible npc grid lights will be switched off during the clean-up scan.

  • <DisableTurretRotation> - When set to true, eligible npc grid turret rotation will be switched off during the clean-up scan.

  • <DisableRefineries> - When set to true, eligible npc grid refineries and arc furnaces will be switched off during the clean-up scan.

  • <DisableAssemblers> - When set to true, eligible npc grid assemblers will be switched off during the clean-up scan.

  • <DisableAntennas> - When set to true, eligible npc grid antennas will be switched off during the clean-up scan.

  • <DisableBeacons> - When set to true, eligible npc grid beacons will be switched off during the clean-up scan.

  • <DisableProjectors> - When set to true, eligible npc grid projectors will be switched off during the clean-up scan.

  • <DisableTools> - When set to true, eligible npc grid drills, welders, and grinders will be switched off during the clean-up scan.

  • <DisableSensors> - When set to true, eligible npc grid sensors will be switched off during the clean-up scan.

  • <DisableTimers> - When set to true, eligible npc grid timers will be switched off during the clean-up scan.

  • <ForceLockRotorsAndPistons> - When set to true, eligible npc grid pistons and rotors will be forced to safety lock during the clean-up scan.

  • <RemoveSubGrids> - When set to true, eligible npc subgrids will be removed during the clean-up scan.
Last edited by Meridius_IX / Lucas; 13 Oct, 2017 @ 11:39am