theRustyKnife / CraftingCombinator

A Factorio mod that lets you dynamically change recipes in assemblers.
6 stars 18 forks source link

Cannot remove Crafting Combinator Blueprint Settings Entities #69

Open uberdubersoldat opened 2 years ago

uberdubersoldat commented 2 years ago

I'm unsure on the exact repro, but I can attach a save file which has the Issue present:

I was making some factory modules and just copy/pasting things around. Its possible there's some edge case on a single combinator which I then copy/pasted that empty blueprint many times. But now I've ended up with thousands of undeletable blueprints which effectively ruins your capability to copy/paste from that region and clutters the minimap

extrablueprints 2 3kUndeletableBlueprintGhosts Save File with Issue present: https://drive.google.com/file/d/1vz1q4cYEXvtN19x8ztLnXyTbqEUZ8mXT/view?usp=sharing

uberdubersoldat commented 2 years ago

Updating ticket to reflect that the specific entity is the "Crafting Combinator Blueprint Setting" entity.

With some help, I found this console command will delete all of this entity type from the map:

/c for _,ent in pairs(game.player.surface.find_entities_filtered{name="crafting_combinator:settings-entity"}) do ent.destroy() end

Now, obviously this makes all the crafting combinators settings on the map disappear which makes the crafting combinators useless, so you'd have to reconfigure them...

Another method is the creative mod, magic wand, modifier, alternate mode, then "remove" to remove an individual entity

Still unsure what causes these entities to be left behind, and I'd consider it a gamebreaking bug if the repro method is a common path one. Will update this ticket if I find exact repro.