Page 1 of 1
Removing residual "no power" sign after deleting via console
Posted: Tue Apr 11, 2017 6:28 pm
by iceman_1212
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?

Re: Removing residual "no power" symbol after using console to d
Posted: Tue Apr 11, 2017 6:42 pm
by Loewchen
Post the command, post the save, post the .ziped mod folder.
Re: Removing residual "no power" symbol after using console to d
Posted: Tue Apr 11, 2017 6:46 pm
by iceman_1212
Loewchen wrote:Post the command, post the save, post the .ziped mod folder.
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.)
Re: Removing residual "no power" sign after deleting via console
Posted: Tue Apr 11, 2017 7:57 pm
by Klonan
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
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)
and to delete all of them on the map:
Code: Select all
local entity = "entity-name"
for k, v in pairs (game.player.surface.find_entities_filtered{name = entity}) do
v.destroy()
end
Re: Removing residual "no power" sign after deleting via console
Posted: Wed Apr 12, 2017 5:29 am
by iceman_1212
worked like a charm. tyvm klonan, much appreciated. (was the lighted electric pole mod, the lamp entities were still on the map)