Page 1 of 1

[0.15] Blueprint Remover Mod

Posted: Wed May 03, 2017 3:26 pm
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

Re: [0.15] Blueprint Remover Mod

Posted: Wed May 03, 2017 5:31 pm
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.

Re: [0.15] Blueprint Remover Mod

Posted: Wed May 03, 2017 6:16 pm
by aober93
Thanks!

Re: [0.15] Blueprint Remover Mod

Posted: Wed May 03, 2017 7:55 pm
by 5thHorseman
Thank you!

Re: [0.15] Blueprint Remover Mod

Posted: Wed May 03, 2017 8:31 pm
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

Re: [0.15] Blueprint Remover Mod

Posted: Fri May 05, 2017 1:08 am
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.

Re: [0.15] Blueprint Remover Mod

Posted: Fri May 05, 2017 8:16 am
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.

Re: [0.15] Blueprint Remover Mod

Posted: Fri May 05, 2017 1:33 pm
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

Re: [0.15] Blueprint Remover Mod

Posted: Fri May 05, 2017 1:36 pm
by Ranakastrasz
What? Deconstruction planners can be filtered??

Re: [0.15] Blueprint Remover Mod

Posted: Fri May 05, 2017 4:59 pm
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.

Re: [0.15] Blueprint Remover Mod

Posted: Fri May 05, 2017 5:00 pm
by aober93
Ranakastrasz wrote:What? Deconstruction planners can be filtered??
yea, good if you wanna remove trees or tiny power poles in your base