How do I hide entites from the deconstruction planner?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

How do I hide entites from the deconstruction planner?

Post by eradicator »

So I'm working on a large update for my Stockpile mod. To facilitate user-selectable sizes I have to generate a prototype for every combination of (width x height). This all works find, except that the "Set filter" dialogue of the deconstruction planner now shows several thousand pointless filters. I tried setting flags on the prototypes, but "hidden" doesn't seem to do anything, and "not-deconstructible" makes it so that not even LuaForce.order_deconstruction() works anymore.

TL;DR: How do I hide my entities from the filter selection while still keeping natural deconstruction behavior?

deconfilterspam.png
deconfilterspam.png (200.84 KiB) Viewed 709 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Modding help”