Page 1 of 1

Is there a way to delete all lamps from my save file?

Posted: Mon Jun 18, 2018 11:47 am
by VonFlaffenhausen
Inspired by This https://www.reddit.com/r/factorio/comme ... f_concept/ post, i ran lamps next to all my rail in my cityblock style attempt at megabase.
I am approaching 50K lamps now, but my 1Kspm base is running at 50UPS. Do lamps (in ridiculous amounts) impact UPS?
I would like to see if anything changes when I delete all lamps.

Re: Is there a way to delete all lamps from my save file?

Posted: Mon Jun 18, 2018 11:51 am
by DaveMcW

Code: Select all

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

Re: Is there a way to delete all lamps from my save file?

Posted: Mon Jun 18, 2018 11:55 am
by VonFlaffenhausen
DaveMcW wrote:

Code: Select all

/c for _,entity in pairs(game.player.surface.find_entities_filtered{name="small-lamp"}) do entity.destroy() end
Thanks a bunch, will report back with the results tonight.

Re: Is there a way to delete all lamps from my save file?

Posted: Mon Jun 18, 2018 12:22 pm
by Klonan
VonFlaffenhausen wrote: Do lamps (in ridiculous amounts) impact UPS?
Shouldn't do, we did a big lamp optimization a while back

Re: Is there a way to delete all lamps from my save file?

Posted: Mon Jun 18, 2018 5:37 pm
by VonFlaffenhausen
So, when i gave the command, my UPS went back to 60.
Perhaps it was the way i hooked up all the lamps to signals. I have rows of lamps connected to every rail signal. They then turn a different color when a train is on its way.

Re: Is there a way to delete all lamps from my save file?

Posted: Mon Jun 18, 2018 5:43 pm
by Klonan
VonFlaffenhausen wrote:So, when i gave the command, my UPS went back to 60.
Perhaps it was the way i hooked up all the lamps to signals. I have rows of lamps connected to every rail signal. They then turn a different color when a train is on its way.
Yes, circuit lamps are not optimized, and that sounds exactly like something that would hurt UPS

Re: Is there a way to delete all lamps from my save file?

Posted: Mon Jun 18, 2018 5:58 pm
by VonFlaffenhausen
Thanks for clarifying.
Too bad, I kind of liked the eye candy :)

Re: Is there a way to delete all lamps from my save file?

Posted: Mon Jun 18, 2018 7:15 pm
by Klonan
VonFlaffenhausen wrote:Thanks for clarifying.
Too bad, I kind of liked the eye candy :)
There is a debug option 'show-rail-signal-states' that might make the signals clearer from the map view