RimWorld

RimWorld

Smart Minify
127 Comments
-=GoW=-Dennis 30 Aug @ 7:49am 
Also getting this error right before the long list of BetterWeight Compatibility errors mentioned further down:

Could not instantiate inspector tab of type : System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008]

Doesn't appear without SmartMinify either.
Tyrant 21 Aug @ 7:26pm 
While the Smart Minify mod options work fine from the Title Screen, if I try to mess with them in-game, the scrolling gets all screwy: https://i.postimg.cc/FRzJ650D/0htYd1ni.gif
-=GoW=-Dennis 20 Aug @ 11:49pm 
I also use BetterWeight but did not expect that to be the problem, as the description says that the weight calculation of SmartMinify is turned off automatically when it is used.
Jaxe  [author] 20 Aug @ 10:24pm 
@Inglix: thanks for looking into it, I'll check BetterWeight compatibility as soon as I can.
Inglix 20 Aug @ 4:37pm 
Okay that wasn't as horrible to track down as I feared. It's BetterWeight that isn't playing nicely with this latest update to Smart Minify. Reproduced the error with only Minify Everything, Smart Minify, and BetterWeight active.

https://gist.github.com/HugsLibRecordKeeper/f0a7c230179dfcc5258d6e4748c1b1f7
Inglix 20 Aug @ 2:54pm 
I'm getting similar errors, but it doesn't happen when testing with the bare minimum mod list, meaning there's a mod conflict... somewhere...
-=GoW=-Dennis 19 Aug @ 4:21pm 
Getting tons of errors of type "Config error in RM_SunBlocker: is haulable, but does not have an authored mass value" since the last update, something went wrong?
Jaxe  [author] 19 Aug @ 2:06am 
Updated to v1.14:
- Added search filter to settings menu
- Added quick toggles for structures, spots and underground buildings
- Removed handling of vanilla minified buildings
- Improved filtering
Blakeyrat 17 Aug @ 7:49am 
Uskok when that happened to me a few days ago, I had to completely uninstall MinifyEverything, load the game with it gone, then re-install both it and this mod... that resolved the error for me. It seems like Steam didn't update it properly, or maybe the download got corrupted, I don't know
Uskok 16 Aug @ 6:38pm 
Today I got an error in the console "Ambiguous match in Harmony patch for MinifyEverything.MinifyEverything:AddMinifiedFor". I removed all mods except: Harmony, all expansions, MinifyEverything, Smart Minify; and it still occurs. If I remove Smart Minify too, the error does not occur.

It seems that MinifyEverything was recently updated.
I can provide the whole stack trace but I assume you can reproduce it easily?
Jaxe  [author] 12 Aug @ 12:36pm 
Updated to v1.13:
- Optimized settings menu rendering
Protok 12 Aug @ 12:34am 
Mod options menu is laggy as turtle, nearly impossible to use even from main menu. And I do not include too much mods, just couple of VE furniture and Edo.
Dawnmist 10 Aug @ 4:26am 
Thank you!
Jaxe  [author] 9 Aug @ 10:52am 
Updated to v1.12:
- Updated compatibility with MinifyEverything
- Allowed more building types as candidates
Dawnmist 9 Aug @ 7:58am 
I started up my game today after updating mods, and Smart Minify has started throwing a TypeInitializationException error in SmartMinify.Core.Startup. The mod "Minify Everything" has been updated today so I suspect that Smart Minify may simply need to be updated to match what changed in Minify Everything.

Exception:

Error in static constructor of SmartMinify.Core.Startup: System.TypeInitializationException: The type initializer for 'SmartMinify.Core.Startup' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
[Ref 2029BD3D]
at HarmonyLib.MethodInvoker.GetHandler (System.Reflection.MethodInfo methodInfo, System.Boolean directBoxValueAccess) [0x00000] in <b994eb69d2df47fdb01add71b9ac29d2>:0
at SmartMinify.Core.Operation.Load () [0x00047] in <d90fe6a9583a45819d8ddd76d9cca607>:0
<0x408bac30 + 0x0001b> <unknown method>
Darius Wolfe 5 Aug @ 7:51pm 
+1 for walls as a candidate.

Was gonna report an issue with scrolling to the bottom, but checked older comments and saw it was an odd interaction w/ Cherry Picker. Uninstalled and resubscribed, and the issue is fixed now. Kudos!
Protok 3 Aug @ 6:17am 
Ahh, if it is not a bug - then ok. I'm just used to the fact that walls can be moved and never once have raiders stolen my walls.

Nevertheless, it would be great to bring back this option for those who want to bring walls from modifications to their base - which cannot be built, but can only be found in events.

Thanks for a mod.
Jaxe  [author] 3 Aug @ 6:06am 
@Protok: because raiders can simply uninstall and steal your wall, it's really not worth it but perhaps sometime I'll at least make it a candidate

@Arson: does it not show up in the candidates for minifying? I'm not sure how the bike is coded, this mod only determines what should be minifiable by a formula

@Mousetrap: I don't believe buildings have categories so I'm not sure how I would categorize, maybe by architect menu category, I suppose I could try that sometime
Protok 3 Aug @ 5:52am 
Why cant I still minify Walls? They are even not in a list of candidates!
Resubbed - same thing... Suggestions?
Arson 2 Aug @ 1:12pm 
I acknowledge this may be a silly request. But I would love to be able to minify the dirt-bike from Vanilla Vehicles. The other vehicles no way. But the idea of sending a dirt-bike in a drop pod so people can get home quicker is really appealing to me.
knots6 29 Jul @ 6:44pm 
How do you use this mod im trying to use this mod for the first time and can't figure out how to whitelist things ?
Mousetrap 26 Jul @ 9:40pm 
Wonderful mod, this makes RimWorld so much more enjoyable.
Suggestion for mod options : Since (I believe) we rarely wanna toggle a single item, the option menu should be categorised.
In my case, for example, I'm trying to disable minification for vehicles, I'd like to make it a rule for all vehicles right now and future mods I might add.
klvlt 26 Jul @ 11:33am 
Thank you for fixing this so quickly, it's very much appreciated!
Jaxe  [author] 26 Jul @ 11:14am 
Updated to v1.11
- Fixed menu not showing last item
Jaxe  [author] 26 Jul @ 10:08am 
@klvlt: so long since I first made this, I forgot I'm the one who put the loadAfter. I'll check it out
klvlt 26 Jul @ 9:48am 
Yes, the mods were in the oder I listed them. This mod has a loadAfter requirement for Cherry Picker. I'm using this version with 1.6. Seeing the comments there just now, there might also be something going on with Cherry Picker not working entirely as intended. (I've not had issues.)
Jaxe  [author] 26 Jul @ 8:18am 
@klvlt: was your mod list sorted properly? I noticed Cherry Picker requests to be in front (or was it behind?) this mod
klvlt 26 Jul @ 7:08am 
This mod appears to interact with Cherry Picker. Everything works fine until I remove some ThingDefs with Cherry Picker. After that (and a restart) I cannot scroll through the full lists in this mod's settings anymore. They cut off at some point. Tested with only these mods active: Harmony, Core, Cherry Picker, Minify Everything, Smart Minify.
Jaxe  [author] 25 Jul @ 11:32am 
Updated to v1.10
- Improved filtering
- Improved settings menu
xKeK0 25 Jul @ 8:17am 
I have a problem with a bug, I don't know if its this mod but it started when this got updated yesterday. It first happened when i wanted to move something and after that a lot of constructions started to bug out. Pawns can't complete the task because either
a) the blueprints become unavailable, when i right click the blueprint, it says can't reach here
b) the pawns carry the resources but stop at the tile next to the blueprint and then stay there, not doing anything. I thought that maybe it was because of the mid-play through update but even on a fresh save it does the same bug.
DcDanko 24 Jul @ 12:59pm 
Could you add back the ability to enable minifying walls and doors? They've disappeared from both the whitelist and blacklist :(
SERAGONDON 24 Jul @ 3:57am 
can confirm that my case has been fixed in latest update
thanks you!
Jaxe  [author] 24 Jul @ 3:26am 
Updated to v1.9:
- Improved filtering
- Assorted bug fixes
Jaxe  [author] 24 Jul @ 12:21am 
@heuvo grande: I appreciate the detailed reproduce instructions. I will double check to see if this is the same bug that I've been encountering with Odyssey. Thanks
SERAGONDON 23 Jul @ 11:49pm 
Hi, got a nasty bug with your mod, Infinite logs spam with asteroid base active and gravship base active on gravship scenario
mods list: All dlc, minify everything, harmony + smart minify
how to reproduce: using gravship scenario embark to asteroid, setup grav-anchor, leave at least one colonist on asteroid map, leave map with keeping asteroid map with left colonist to another planet map.
After these actions gets infinite logs spams featuring RimWorld.ScenPart_PursuingMechanoids.Tick
WhismTheSchism 18 Jul @ 12:13pm 
Awesome, appreciate your work :)
Jaxe  [author] 17 Jul @ 11:30pm 
This mod is having issues with Odyssey, will fix soon as I can
WhismTheSchism 17 Jul @ 2:06pm 
This mod seems to have disabled my ability to minify my grav engine. Grav engine doesn't show up in the mod settings either. Anyone else had this issue?
Corbald 15 Jul @ 2:31pm 
Breaks minifiability and storage for Hunter Traps, and possibly other things, but this was the first one I noticed.
Turambar 15 Jul @ 6:19am 
Disabling structures is a good idea, but I think doors should be an exception. Any way to automate enabling doors minification?
grijnskat 15 Jul @ 1:51am 
For some reason the mod stopped working for me. The ThingDef lists ingame are now empty: https://imgur.com/a/9ibX1L6
If I hit "save settings", the settings.xml gets emptied out - so read/write doesn't seems to be the problem. Any ideas?
Auld 14 Jul @ 6:26am 
Yee haw 🤠
Jaxe  [author] 14 Jul @ 3:39am 
Updated to v1.7:
- Added support for RimWorld 1.6
Balin 13 Jul @ 2:32pm 
yay <3
Dan-geon Master 12 Jul @ 5:03pm 
<3
Jaxe  [author] 12 Jun @ 9:42pm 
Update coming soon*
Rogue 12 Jun @ 7:14pm 
@l.lampenoir Yeah I found the issue and posted about it in the Discord. A new release of MinifyEverything caused Smart Minify to start failing. I included a workaround there if you want to fix it manually for now.
l.lampenoir 12 Jun @ 6:03pm 
I'm not sure why but a recent update doesn't allow for me to minify things like I normally can, e.g. solar panels. There's also no option to white or blacklist things either.
Claus 30 Mar @ 7:37pm 
I'm having some issues with the mod. When I enable it in my mod list, it triggers a texture error, which you can see in the logs on lines 2205 and beyond.

Log [gist.github.com]
Schockocraft 6 Jan @ 11:40pm 
ok i played around with the config a bit and toggling off the "ignore already minified things" setting enables the missing items in the list so you can manually re-enable them