Space Engineers

Space Engineers

Clean Freak
71 Comments
Thraxus  [author] Jun 20 @ 1:57pm 
See if the config file generated, then look at the log file.
Joker2105 Jun 20 @ 1:38pm 
Hi.. how can i check that the mod is active?
Thraxus  [author] Apr 18 @ 6:36am 
Static grids are all stations by game design, even if it was a ship turned static. Unfortunately there is no "station" designation on a grid, so being static inherently means "station".
Nalesh Apr 16 @ 2:58pm 
When it says npc stations, does that mean all static grids, or specifically stations like economy stations, etc?
Thraxus  [author] Dec 8, 2024 @ 5:53pm 
To be determined. If they spawn as ships and not stations, possibly. I need reports that say it happens before I can say it happens though. Logs help a ton as well.
Thraxus  [author] Dec 5, 2024 @ 8:03pm 
It shouldn't - it's programmed to only care about prefabs. You can always check the logs though - I put every delete in there with the reason it was removed. A value of "None" means something other than CleanFreak did the delete.
Rooster Dec 5, 2024 @ 7:55pm 
Will this delete the new drop boxes that drop when you break down something with an inventory? I lost some ore today twice when I took down an assembler and refinery. Vanilla debris cleanup is disabled
Thraxus  [author] Nov 8, 2024 @ 12:41pm 
Doesn't matter. Should work anywhere in the list.
Zeruel Nov 8, 2024 @ 11:34am 
And where does it go in the loading order?
Thraxus  [author] Nov 8, 2024 @ 10:28am 
Yep. It basically does a better job at cleanup than vanilla, but uses the same ideas, so it is compatible with pretty much any mod and any server.
Zeruel Nov 8, 2024 @ 10:13am 
I understand, does it work with modular encounters?
Thraxus  [author] Nov 8, 2024 @ 7:31am 
@brantje - You'd have to elaborate, but anything is possible.

@Zeruel - That's all in the configs, not sure off the top of my head, but maybe 20 minutes? There is a hit system on every cleaning, so a grid needs to fail a set of checks several times before it's removed. It's all configurable though.
Zeruel Nov 6, 2024 @ 5:40pm 
How long does each cleaning take?
brantje Jul 27, 2024 @ 5:03am 
Agree with @adirtynacho, would it be possible to implement a scrapyard mode? I'll be happy to contribute to the development of such feature.
Thraxus  [author] Apr 30, 2024 @ 5:29pm 
Well that's odd, but good to know! Thanks for the info :D
DrakoMT Apr 25, 2024 @ 6:04am 
So for me and my friends it works if you load the mod on an already existing save but if you start fresh in a new scenario that it world fails to load error comes up. But it's not a big issue just new game save , quit load the mod again and it works fine. Just in case it happens to someone else.
This mod is a life saver!
Thraxus  [author] Apr 23, 2024 @ 4:29pm 
Nope. It's on if it's installed. Uninstalling is the only thing that turns it off.
KGB_Vitkor Apr 23, 2024 @ 11:39am 
Tell me, is there a command to stop or start the mod while in the game?
Thraxus  [author] Apr 19, 2024 @ 6:17pm 
Mod Version 1.2 [Released 19 Apr 2024]
-- Added a new setting to allow bypassing the grid movement check when determining if a grid is valid for deletion or not.
-- Uploaded to Mod.IO
Thraxus  [author] Apr 11, 2024 @ 9:54am 
@adirtynacho - sorry, I missed this. Hit me up on Discord, I may be able to make something work, but need a bit more info.

@DrakoMT - nope, sounds like a mod issue on your end. I use this myself, and I only play solo. I can help you on Discord, but not Steam comments.
DrakoMT Apr 11, 2024 @ 2:08am 
World Fails to Load when you load this mod in survival mode :/
adirtynacho Mar 21, 2024 @ 9:45am 
Can you add support for having a area defined based on a block? That would help immensely in scrapyard survival? for example theres a scrap beacon mod thats included with it, and using that as a point to clean up grids from so that certain loose blocks ("debris") found around the floor at their homes aren't eaten up.
KLEYDOX Mar 4, 2024 @ 2:53am 
this mod is the best thing in the workshop
Menace Feb 14, 2024 @ 8:16am 
I'm so mad I never found this sooner
Thraxus  [author] Feb 14, 2024 @ 7:55am 
Almost 4 years and still goin strong without needing an update! :D
Titan Nya Feb 14, 2024 @ 3:23am 
wait... This existed for a long time and I wasn't aware? Time to pop it and not have that many debris in the world and me trying to clean it up by hand... Well time for a new game anyway :p
ParGellen Feb 12, 2024 @ 4:10pm 
This mod saved my game! Not even kidding! I just popped it on with default settings and about 30 minutes later things were smooth as butter and a bazzillion dead NPC markers were gone from my hud! Thank you!
Thraxus  [author] Oct 24, 2023 @ 3:22pm 
Awesome to hear! Thanks for the great review :crtamazed:
Drysyn Oct 23, 2023 @ 2:36am 
I run a server that has a lot of modular encounters, and factions killing each other, so a TONNE of wrecks, and this clean up mod makes my server keep running at full sim speed so a Massive thank you, your mod literally saves me days of manual clean up every week :)
Thraxus  [author] Sep 6, 2023 @ 11:45pm 
Anytime! Happy to hear it's helping you out! :D
CMDR Nick o7 Sep 4, 2023 @ 7:41pm 
Hahaha thanks bud, i had it running on default and its doing god’s work on my server. Thank you for this, it lightens the load on chores!
Thraxus  [author] Sep 1, 2023 @ 7:16pm 
There is a config file you can setup some rules in if you don't like the default way it behaves, but otherwise it's a set it and forget it mod. All work happens in the background; no giant red shiny buttons that say "DO NOT PUSH" included unfortunately!
CMDR Nick o7 Sep 1, 2023 @ 2:25pm 
does it do the delete in the background? how does it work? do i push a button? *shiny button?*
Thraxus  [author] Jun 9, 2023 @ 12:23pm 
In general, you'll know it's working when there is a lot less junk around. However, if you're cleaning things up manually, it may still be working, just not aggressive enough for your liking. There is a config for the mod that will allow you to adjust that. It can be found in the storage folder in your save game folder in a folder called 2085051314.sbm_CleanFreak_Thraxus. If you want to know if the mod is working at all, check the storage folder in your app data directory (%appdata%/SpaceEngineers normally) for the 2085051314.sbm_CleanFreak_Thraxus directory and check my logs. CoreGeneral.log will tell you what CleanFreak did and why.

If you need more help, hop into my Discord (link in the mod desc) and drop me a line. Steam comments suck for back and forth discussions.
Lonnieb123 Jun 9, 2023 @ 8:16am 
I am sorry that I have to ask this question. How do I know it is working? I had to manually clean up my server today. Not sure if the mod is working. Do I need to configure it to turn it on? I am running it on a dedicated server. Thanks
Bluestar Mar 25, 2023 @ 4:03am 
I know there is a sleep mode but you still cant have 1000s of grids in the world without taking a hit
This could just help extend that abit more if it dosnt cause any major issues as you say
Bluestar Mar 25, 2023 @ 3:59am 
Its just something i wondered, instead of deleting things it saves them and puts them back. Could have rules on what it dose and dosnt work on like not saving random npc ships as they just respawn anyway unless it becomes neutral or player owned at some point

One thing it adds besides performance is auto grid saving, the system could save a number of backups. For example grids around the player could parodically save, with a max number of backups. If clang happens instead if having to reload you could try just pasting in a auto backup BP(which could be alot quicker then a reload specially for some worlds)

The system could also be constricted to only save one thing at a time. So as you leave an area there could be 5 grids, the system saves 1 grid per every 5 minutes
Depends on how it works now i guess

Clean freak mod could work along side it to just get rid of things that obviously not needed like debris
Thraxus  [author] Mar 25, 2023 @ 2:42am 
Yeah, but it comes at a cost. Essentially you'd have to save the prefab as serialized data in the sandbox, then respawn it. Both the save action and the respawn action will have performance hits associated with them relative to how complex the grid itself is.

It's not a bad idea, and it's been a while since I explored the performance of it (probably 4 years or so). Might be worth revisiting. In general though Keen has added a feature to grids that basically sleeps them when the player isn't close to them. They don't have zero performance hit to the game in this state, but their effect is pretty minimal.

Clean Freak is more aimed to remove grids that are close to the player and cause performance degradation, or garbage that's just flying endlessly through space and cluttering up the save. Items it removes would be within the view distance (typically) of a player, so temporarily removing them wouldn't really be an option.
Bluestar Mar 25, 2023 @ 1:56am 
This is something iv wondered for a wile
Could grids have silent blueprints be taken before there deleted and there cord noted
If a player leaves an area(no players in area) then a grid is 'saved' and removed
As a player comes back into that area a system/script respawns the grid from the saved blueprint back into the world as if it was never removed. As its saved each time all players leave its state(damage/inventory) would all be saved and put back when players return.

It would keep grids to a minimum in a radius around players, a server with players spread out less so but a single player game for sure

TBH this is probably how clean-up should work as it would make the world feel persistent always but only actually have things in the world when a player is actually there
Thraxus  [author] Mar 16, 2023 @ 8:01pm 
Anytime :)
Borkineer Mar 16, 2023 @ 6:44pm 
cool, thank you for the quick reply :)
Thraxus  [author] Mar 16, 2023 @ 2:59pm 
Under the storage folder in the main directory that the saves directory is in.

Example:

\AppData\Roaming\SpaceEngineers\Storage\2085051314.sbm_CleanFreak_Thraxus\

Whereas Saves would be in:

\AppData\Roaming\SpaceEngineers\Saves\

The config file is in the specific save games storage folder though.
Borkineer Mar 16, 2023 @ 1:09pm 
where is the log file generated? under storage folder in saves?
Dog Feb 11, 2023 @ 7:07am 
Awesome thanks again! :cozybethesda:
Thraxus  [author] Feb 11, 2023 @ 5:49am 
You can use it along side the vanilla one. It won't hurt anything. If anything, Clean Freak compliments the vanilla routine.
Dog Feb 11, 2023 @ 5:22am 
Awesome mod! I'm very happy that you have the rule to never delete player grids! <3 Should I disable the default grid clean up stuff on my server and just use this, or should I use this alongside the default cleanup stuff?
Thraxus  [author] Dec 20, 2022 @ 4:23pm 
Sorry to hear that, but also happy to hear that at the same time, haha.

Thanks for keeping me updated!
Lord Zander Dec 20, 2022 @ 4:12pm 
It wasn't CF.

I'm dumb and had the native trash removal settings set to delete a player's grids after 36 hours of inactivity. Not sure if that was on by default or if I set it that way at some point, but that was almost certainly what happened.
Lord Zander Dec 15, 2022 @ 4:41pm 
That's good advice, I'll keep that in mind.
Thraxus  [author] Dec 14, 2022 @ 10:40pm 
I won't rule out CF - without concrete evidence one way or another, who knows what happened.

As a rule of thumb with any mod, always check the logs and forward them to the mod author when you encounter a bug. Without the logs, all we can do is play guessing games where we usually end up pointing the finger at something else. With the logs, we're more likely to be able to see the actual issue and help resolve it regardless who is at fault.