Removing residual "no power" sign after deleting via console

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
iceman_1212
Filter Inserter
Filter Inserter
Posts: 256
Joined: Wed Aug 17, 2016 9:49 am
Contact:

Removing residual "no power" sign after deleting via console

Post 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?

Image
Last edited by iceman_1212 on Tue Apr 11, 2017 6:54 pm, edited 1 time in total.
Loewchen
Global Moderator
Global Moderator
Posts: 10265
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Removing residual "no power" symbol after using console to d

Post by Loewchen »

Post the command, post the save, post the .ziped mod folder.
iceman_1212
Filter Inserter
Filter Inserter
Posts: 256
Joined: Wed Aug 17, 2016 9:49 am
Contact:

Re: Removing residual "no power" symbol after using console to d

Post 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.)
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5410
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Removing residual "no power" sign after deleting via console

Post 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
iceman_1212
Filter Inserter
Filter Inserter
Posts: 256
Joined: Wed Aug 17, 2016 9:49 am
Contact:

Re: Removing residual "no power" sign after deleting via console

Post 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)
Post Reply

Return to “Technical Help”