[0.15] Blueprint Remover Mod

Topics and discussion about specific mods
aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

[0.15] Blueprint Remover Mod

Post by aober93 »

Hey, i made a mod that automatically removes Blueprints from your inventory. This is if you prefer to use the library 100% of the time.
https://mods.factorio.com/mods/mISSAO/BlueprintRemover

No more clutter and a mess in your inventory. No questions asked. Just removal
The functionality is very basic, it deletes blueprints when it finds them. Usage: Make sure that when creating a blueprint, you place it in your library, as dropping it will erase it.

edit: my first ever mod :D

Based on suggestions from these threads:
viewtopic.php?f=23&t=44679
viewtopic.php?f=6&t=45761
viewtopic.php?f=6&t=45443
viewtopic.php?f=6&t=45476
viewtopic.php?f=6&t=45479
viewtopic.php?f=6&t=44881
viewtopic.php?f=6&t=44931
viewtopic.php?f=6&t=44681
Last edited by aober93 on Wed May 03, 2017 6:19 pm, edited 1 time in total.

sparr
Smart Inserter
Smart Inserter
Posts: 1431
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: [0.15] Blueprint Remover Mod

Post by sparr »

Excellent work! Good job realizing you didn't need to check every tick :)

If the code was longer I'd suggest de-duplicating it a bit with some variables and a loop, but for such a short mod you've done just fine.

aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: [0.15] Blueprint Remover Mod

Post by aober93 »

Thanks!


sparr
Smart Inserter
Smart Inserter
Posts: 1431
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: [0.15] Blueprint Remover Mod

Post by sparr »

Feature request: Don't destroy blueprints that are in filtered quickbar slots. This way I can filter one or a few slots, and keep exactly that many blueprints on hotkeys.

If you post your mod to github, I would code and PR this feature. If you want to do it yourself, there's some code here about filtered quickbar slots:

https://github.com/sparr/factorio-mod-g ... ol.lua#L15

Vegemeister
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Sun Dec 04, 2016 9:18 pm
Contact:

Re: [0.15] Blueprint Remover Mod

Post by Vegemeister »

Bug: Mod should not delete deconstruction planners, because they cannot be stored in the library. It's actually kind of a hassle to set up a deconstruction planner that destroys every kind of rock and tree, so this makes the mod unusable for me.

I also second the request about not removing blueprints in filtered quickbar slots. I use this for a temporary copy/paste blueprint.

sparr
Smart Inserter
Smart Inserter
Posts: 1431
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: [0.15] Blueprint Remover Mod

Post by sparr »

Vegemeister wrote:It's actually kind of a hassle to set up a deconstruction planner that destroys every kind of rock and tree
TIL. Thanks.

aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: [0.15] Blueprint Remover Mod

Post by aober93 »

Well even this little mod is NOT trivial to do. I figured 15.7 introduced a bug.

i sent a bug report
viewtopic.php?f=7&t=46456

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2168
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [0.15] Blueprint Remover Mod

Post by Ranakastrasz »

What? Deconstruction planners can be filtered??
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: [0.15] Blueprint Remover Mod

Post by aober93 »

i updated this mod, to allow blueprints as well as deconstruction planners in filtered quickbar slots. Not sure if they are 100% secure lol. Now trying to make it work in sandbox gamemode.

aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: [0.15] Blueprint Remover Mod

Post by aober93 »

Ranakastrasz wrote:What? Deconstruction planners can be filtered??
yea, good if you wanna remove trees or tiny power poles in your base

Post Reply

Return to “Mods”