Space Engineers

Space Engineers

162 ratings
[OBSOLETE] NPC Clean-Up and Performance
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script, Other
File Size
Posted
Updated
160.380 KB
13 Oct, 2017 @ 11:27am
24 Sep, 2018 @ 10:57am
8 Change Notes ( view )

Subscribe to download
[OBSOLETE] NPC Clean-Up and Performance

Description
This mod is now considered obsolete and will no longer receive updates. It's functionality is now provided by the Modular Encounters Spawner


Description

This is a mod that scans for NPC grids (Space Pirate, etc) and removes them when certain conditions are met. The clean-up parameters are customizable, so individuals and server admins can adjust the settings to their specific needs.

This mod replaces the NPC Clean-Up 25km and NPC Clean-Up 50km mods found in the Modular Encounters Collection. It should work with any other mod that adds NPC content (Space Pirate, Custom NPC Faction, etc).


Default Behaviour

Out of the box, this mod uses the following behaviour:
  • Checks if grid(s) are more than 50km away.
  • Checks if grid(s) has less than 5 player owned blocks.
  • Checks if grid(s) are unowned.
  • Removes grid(s) if conditions above are met.
  • Applies to both Ships and Stations


Custom Behaviour

When this mod is loaded into your world, a configuration file is created in your world save folder. This file allows you to fine tune how the mod identifies and removes NPC grids from your world. Here are some of the possible clean-up methods:
  • Grid Timer: When a grid spawns, the mod will keep track of how long it has been in the game world. If it exceeds the set time limit, it will be removed.
  • Grid Distance: If there are no players within the specified distance, the grid will be removed.
  • Soft Removal: If there are no players within the specified distance, the grid timer will start. Once the timer has expired, the grid will be removed.
  • Block Count: If a grid exceeds a specific block count, the grid will be removed on the next check cycle.
These settings can be specified separately for Ships(Dynamic Grids) and Stations(Static Grids).

It is also possible to disable/restrict certain blocks on NPC grids as well:
  • Turret Rotation.
  • Refineries and Assemblers.
  • Ship Tools.
  • Force Rotor/Piston Lock.
  • Delete SubGrids
  • ...And More.

Please see the Discussion page labled 'Configuration File' for details on how to customize the clean-up


Modular Encounters Collection Discord Server

If you're interested in getting involved with the mods in this collection, and future projects, check out our Discord Server:

[discord.gg]
Popular Discussions View All (2)
1
16 Feb, 2018 @ 9:28pm
PINNED: Ignore Specific NPCs
Meridius_IX / Lucas
0
13 Oct, 2017 @ 11:28am
PINNED: Configuration File
Meridius_IX / Lucas
82 Comments
Meridius_IX / Lucas  [author] 19 Jun, 2019 @ 4:20am 
No. Check mod description
VS-lockon 19 Jun, 2019 @ 4:14am 
will this get updated mate ?
Amaka 3 Nov, 2018 @ 5:17am 
ResetShipTimerIfPlayerNearby Where change distance? or What distance?
Meridius_IX / Lucas  [author] 13 Oct, 2018 @ 6:09am 
I've never explicitly tested that, but I'd have to guess it should be fine
Mark F. Smith 13 Oct, 2018 @ 4:58am 
Is this compatible as a stand-alone with EEM?
Sanquin 3 Oct, 2018 @ 6:48am 
Ahh, okay. Then that's it. Thank you. :)
Meridius_IX / Lucas  [author] 3 Oct, 2018 @ 5:56am 
If this mod is loaded along with the Modular Encounters Spawner, then it will stop executing it's script. The new spawner handles the cleanup duty that this mod used to.
Sanquin 3 Oct, 2018 @ 12:09am 
So I just downloaded this mod alongside a few others from the modular encounters collection. But when I activate the mod and load up the game no config file is created in my world save folder. No idea what's going on. =/

It's an already existing world, could that be the cause?
Redulus 25 Sep, 2018 @ 7:54pm 
Thanks for the help guys it got me thinking about the ui and it is just setting xml values so I installed the dedicated server set a limit in refineries and found that it is in the config file in the root of the folder and you would at this into the block limits incase anyone else is lookinf for the same thing:

<BlockTypeLimits>
<dictionary>
<item>
<Key>Refinery</Key>
<Value>5</Value>
</item>
</dictionary>
</BlockTypeLimits>

Thanks so much you guys have been helpful. I subscribed and will be using this mod on my server.