[A17]StuffFilter - aka the Super Filter!

Started by user19990313, September 16, 2017, 04:15:56 AM

Previous topic - Next topic

user19990313

StuffFilter - aka the Super Filter!
For A17b(build 1557)

[Hotfix01]  Fixed an init bug when an item belongs to multiple resource categories.

Description
Adding extra filters for the vanilla ones, filtration now will concern the stuff (if any) of an item.
Now you can allow or disallow weapons, apparels or meals with specific stuff configured in the extra filters.

Features
You will be able to :
-Distinguish weapons or apparels by stuff
-Melt weapons / recycle/mending apparels made from specific stuff
-Store veggie simple meal here, and non-veggie there
-Designate foods / apparels for prisoners (should put a stockpile in the prison first)
-Copy filter settings between two stuff filters

Well, I'm trying to compress my description... I think this one is short enough.


HowTo:
1.Load this mod after Core
2.Find a vanilla filter, for example stockpile filter or bill filter
3.Click "AdvFltr" button next to the allow/disallow buttons, then configure the extra filter!

Enjoy!

PS
PS. This might be the best implementation for this idea, (or you can try completely re-weaving the dll and KO all other dll mods), I did my best to optimize it, but there might be still some performance wicks. Marking a specific stuff as disallowed results in several more comparisons each tick than marking it as allowed. Well these performance wicks are still too small to be sensed if you don't have over 30 stockpiles.
In short, allow all and untick useless stuff in the stuff filter will be better than disallow all and tick useful ones.
PS2. Cannot distinguish sculptures. (Performance concerns)


Other
Compatibility:
No known mod conflict yet.
Installation:
Add this mod any time you like.
Remove this mod any time you like.Please disable all extra Stuff Filters first!(All AdvFltr button are "Off")
You don't have to create a new game.
License(brief):
-Can anyone copy and distribute your mod?
-You can download or recommend this mod, but You must inform the author of your intention and get the permit from the author in advance if you are going to upload this mod onto other websites.

-Can modpack makers include your mod in their modpack?
-Whatever,as long as you don't remove <author /> tag.

-Can other modders make derivative mods based on yours?
-No,because there's really nothing to derive :P

Languages
English & Chinese Simplified

Author:
user19990313

Note for all translators
Hi there, if you are going to translate this mod, please also translate the Steam description text given in the download link, and do not mess up the formatting markers in square brackets  ;D

Download:

via DropBox

or subscribe at Steam Workshop :P


--------------------
Why not pick up some of my mods here?Maybe they could make your gaming experience better!

[A17]RuntimeGC In-Game Cleaner

[A17]AntiAutoUnload-Keeps your inventory!

[A17]MyLostHead - Draw heads for the head-less!

Sam Gray

OMG you are an angel sent from heaven!
I was just wondering yesterday that it would be very nice if we could filter apparel and other thing by their stuff.
Thank you very much.

BlackSmokeDMax

Great! Thanks so much! Looks like another step down the road towards  Dwarf Fortress, which is a good thing!

SpaceDorf

I allready have all your other mods and I added this one too :)

This is beyond useful.
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

faltonico

You did it again! Great idea!.
As i don't have any A17 colonies at the moment, would you please tell me if this is compatible with Rimworld Search Agency?.

user19990313

New Hotfix 01 : Fixed an init bug when an item belongs to multiple resource categories

Please download the latest version :D

faltonico


user19990313

Quote from: faltonico on September 16, 2017, 10:15:04 AM
You did it again! Great idea!.
As i don't have any A17 colonies at the moment, would you please tell me if this is compatible with Rimworld Search Agency?.
I don't know...Well, I only modified the mechanism inside the light gray box of the vanilla filters, if the search engine is outside it, that would be okay; if it's inside the gray box,there will be conflicts.

faltonico

I think it might not be from what you say,
Time to do a new colony and test then!
Thanks!

DukeAl

Hi, nice mod.
As for RSA, they are using the same space and are conflicting. StuffFilter blocks the space where the search box would be no matter the load order.
Still, thank you for the mod. Will have to decide which one to use.

faltonico

Quote from: DukeAl on September 17, 2017, 11:22:32 PM
Hi, nice mod.
As for RSA, they are using the same space and are conflicting. StuffFilter blocks the space where the search box would be no matter the load order.
Still, thank you for the mod. Will have to decide which one to use.
Ugh... bummer.
You can't have it all, i guess.

user19990313

Quote from: faltonico on September 18, 2017, 12:22:42 AM
Quote from: DukeAl on September 17, 2017, 11:22:32 PM
Hi, nice mod.
As for RSA, they are using the same space and are conflicting. StuffFilter blocks the space where the search box would be no matter the load order.
Still, thank you for the mod. Will have to decide which one to use.
Ugh... bummer.
You can't have it all, i guess.
Well the two mod are injecting the same function, so clearly they couldn't work together.
Maybe I'll consider an integration after asking the author of rw search :P

sirgzu

Quote from: user19990313 on September 18, 2017, 02:03:06 AM
Well the two mod are injecting the same function, so clearly they couldn't work together.
Maybe I'll consider an integration after asking the author of rw search :P
That would be great, both mods bring great QoL in very complementary ways.

LiteEmUp

does this have the option to select filter for deadman gear and non deadman???

this would really help me on sorting out gear that i keep for my colonists and gear for salvaging

sirgzu

Quote from: LiteEmUp on September 19, 2017, 02:58:42 AM
does this have the option to select filter for deadman gear and non deadman???

this would really help me on sorting out gear that i keep for my colonists and gear for salvaging
This mod has it but it's hidden the apparel top category:
https://ludeon.com/forums/index.php?topic=28678.0