Enable removal or hiding of shield equipment and active defense equipment

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
derpumu
Inserter
Inserter
Posts: 27
Joined: Sun Mar 19, 2017 12:51 pm
Contact:

Enable removal or hiding of shield equipment and active defense equipment

Post by derpumu »

For the Pacifist mod I tried to remove all active defense equipment and energy shield equipment but could not. Upon start, the game displays an error that basically tells me it can't deal with no existing prototypes of these types.

The obvious solution that worked with all other kinds of "must have" prototypes (guns, artillery wagon, turrets in all flavors...) was to add dummy prototypes with the flag "hidden" - but EquipmentPrototype and the derived types do not support these flags.

While practically those dummies equipments can never be built because no item exists with the right placed_as_equipment_result, they still show up e.g. in the RecipeBook mod.

The preferred solution would be to just allow 0 instances of all these prototypes (see https://github.com/Derpumu/Pacifist/blo ... ummies.lua for a list of all the ones I found). I can imagine that that may be some work on the API and the engine, so adding a flags attribute to EquipmentPrototype should do the trick as well.

Nidan
Fast Inserter
Fast Inserter
Posts: 227
Joined: Sat Nov 21, 2015 1:40 am
Contact:

Re: Enable removal or hiding of shield equipment and active defense equipment

Post by Nidan »

Are you aware of the no base mod? It should help you figuring out the minimal properties you need.

User avatar
derpumu
Inserter
Inserter
Posts: 27
Joined: Sun Mar 19, 2017 12:51 pm
Contact:

Re: Enable removal or hiding of shield equipment and active defense equipment

Post by derpumu »

I wasn't aware, so thanks for the link. However, minimal properties are not the issue here. The inability to truly hide the mentioned equipments is the problem

Post Reply

Return to “Modding interface requests”