
Removing residual "no power" sign after deleting via console
-
- Filter Inserter
- Posts: 256
- Joined: Wed Aug 17, 2016 9:49 am
- Contact:
Removing residual "no power" sign after deleting via console
I loaded up an old laggy save and decided to use console to destroy a bunch of my stuff as it would be way faster than deconstruction. It worked with one exception - although power poles themselves are gone, I still see the flashing no power symbols where the power poles used to be (image below). Is there any way to remove these entirely? Perhaps a different entity name that I need to run the destroy command for?


Last edited by iceman_1212 on Tue Apr 11, 2017 6:54 pm, edited 1 time in total.
Re: Removing residual "no power" symbol after using console to d
Post the command, post the save, post the .ziped mod folder.
-
- Filter Inserter
- Posts: 256
- Joined: Wed Aug 17, 2016 9:49 am
- Contact:
Re: Removing residual "no power" symbol after using console to d
Tbh, I'm not sure if worth it for folks to spend time looking at this - just thought someone might have a quick solution off the top of their head - np if not. (This is not intended as a bug report.)Loewchen wrote:Post the command, post the save, post the .ziped mod folder.
Re: Removing residual "no power" sign after deleting via console
This is some mod issue, you'll need to know what entities this other mod is making,
this command might help narrow down what it actually there
and to delete all of them on the map:
this command might help narrow down what it actually there
Code: Select all
local make_area = function(p) return {{p.x-16,p.y-16},{p.x+16,p.y+16}} end
local types = {}
local player = game.player
for k, v in pairs (player.surface.find_entities_filtered{area = make_area(player.position)}) do
if not types[v.name] then
types[v.name] = true
end
end
local text = "Nearby entity names: " for name, bool in pairs (types) do text = text..", "..name end game.print(text)
Code: Select all
local entity = "entity-name"
for k, v in pairs (game.player.surface.find_entities_filtered{name = entity}) do
v.destroy()
end
-
- Filter Inserter
- Posts: 256
- Joined: Wed Aug 17, 2016 9:49 am
- Contact:
Re: Removing residual "no power" sign after deleting via console
worked like a charm. tyvm klonan, much appreciated. (was the lighted electric pole mod, the lamp entities were still on the map)