RimWorld

RimWorld

115 ratings
Smart Minify
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
147.994 KB
31 May, 2022 @ 1:28pm
19 Aug @ 2:04am
21 Change Notes ( view )

Subscribe to download
Smart Minify

In 1 collection by Jaxe
Mods by Jaxe
9 items
Description
Smart Minify
Minify only logically applicable buildings and apply calculated weights to their minified forms according to the combined weight of resources used to build them

Does not apply to anything in the structure category and applies some logic to prevent the minification of non-buildings such as graves.

Custom whitelisting and blacklisting of things that would automatically be enabled/disabled is available through the mod settings menu, including setting custom weights.

Requires Minify Everything as a passive dependency for minification methods and fixes.


Additional Information
Why is Minify Everything required?
Minify Everything by erdelf has a tried and tested system of adding/removing minification and handling of post-minified things and there's no need to reinvent the wheel or step into any other modder's area. Smart Minify overrides Minify Everything's config menu but still depends on its minification methods.

About the weight system
This mod calculates weight according to the sum of all resources required for building. Honestly, I did not know about BetterWeights when I initially made this mod but this mod will automatically disable weight calculations if BetterWeights is loaded.

Anything else?
Check out my other mods

[discord.gg]
[ko-fi.com]
[www.patreon.com]
Popular Discussions View All (1)
0
24 Aug @ 6:41am
Bugs
Jasser_Arrafat
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?