RimWorld

RimWorld

Not enough ratings
Crafted Locally Filter
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5
File Size
Posted
Updated
40.463 KB
Apr 2 @ 10:41am
Apr 3 @ 8:11am
2 Change Notes ( view )

Subscribe to download
Crafted Locally Filter

Description
A tiny little mod that adds special "locally crafted" and "not locally crafted" thing filters. Only considers things crafted at workbenches such as machining tables, fabrication benches, the sorts. Excellent for smelting down and recycling weapons and apparel dropped by raiders, that would otherwise clog up your storage. Works by periodically scanning workbenches on the map, and maintaining a list of the output of their bills, which is then used by the filter. Shouldn't have a notable performance impact.

The mod is perfectly safe to add to a save, however..

REMOVING IT WILL CAUSE YOUR GAME TO CRY VIOLENTLY AND BEG FOR DEATH. YOUR MACHINE WILL CRAWL TO A HALT AS YOUR CONSOLE IS FILLED TO THE BRIM WITH ERROR LOGS. YOUR VERY ANCESTORS WILL LOOK DOWN UPON YOU WITH SHAME FOR NOT HEEDING THIS WARNING.

Last I checked, at least.

This mod is provided as-is, and is kinda janky, download at your own risk. I never really intended to release it, but I needed it on another PC, and this was the easiest way to transfer it lol.

Source: https://github.com/Lomztein/RimWorld-Minimods/tree/main/ProducedAtColonyFilter

Don't expect any additional improvements or new features, aside from fixing any critical bugs.
2 Comments
Lomzie  [author] Apr 3 @ 8:08am 
Making these special thing filters are surprisingly straight forward, you simply implement a class that derives from SpecialThingFilterWorker. Assuming that the "U" tag is easily accessible in code, the filter can just check against it. If you want to take a crack at it, I've added a link to the mods source in the description. The source code is also available in the mod files, under the 1.5 folder.

Regarding the large file size, it seems I accidentally included all the assemblies the mod depends on in the upload, including RimWorlds. Whoops, accidental redistribution, no one tell Tynan!

Thanks for letting me know.
VitaKaninen Apr 2 @ 7:22pm 
Cool idea. I use another mod called "Profitable Weapons" that marks used weapons dropped from raiders in the same way as tainted item, but with a "U" instead of "T". It makes it so that brand new and never used weapons that I craft can be sold at full value, but once they have been used, they revert to the normal 20% pricetag.

Would it be easy to make a filter that works the same as the tainted filter but looks for the "U" tag instead of the "T"? This would allow me to always smelt looted weapons, but save the full value ones for selling. I have tried using a Market Value filter, but it does not work in 1.5.

Also, I think you left the source code in there, since the file size is 14mb.