[0.18.12] Beacon Power Exploit

Things that we don't consider worth fixing at this moment.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3729
Joined: Tue May 13, 2014 11:06 am
Contact:

[0.18.12] Beacon Power Exploit

Post by DaveMcW »

The internal power buffer for beacons holds 6 ticks of energy. But beacon effects are only updated once per 120 ticks. This means it is possible to get the full effect from beacons by only feeding them power for the 6 ticks before they are updated.

Here is a proof of concept, using clocked beacons at 5% of the normal power cost. The assembling machine builds rocket fuel with max productivity, at a cost of only 6.7 MJ per rocket fuel.
beacon-exploit.zip
(858.3 KiB) Downloaded 107 times

beacon-exploit.jpg
beacon-exploit.jpg (590.26 KiB) Viewed 5790 times
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5304
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.18.12] Beacon Power Exploit

Post by Klonan »

You figured it out!

Image

We aren't going to fix it, its a part of the optimization (according to kovarex).
StephenLynx
Inserter
Inserter
Posts: 31
Joined: Thu May 04, 2017 10:55 pm
Contact:

Re: [0.18.12] Beacon Power Exploit

Post by StephenLynx »

Hm. It seems highly impractical to exploit, though, doesn't it? The assembler still needs full power so it has to be on a different network, so placement is heavily affected. And there's the fact that energy is cheap. Or am I missing something that could change the metagame?
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3729
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.18.12] Beacon Power Exploit

Post by DaveMcW »

It is a lot easier to build more power. It's only useful in limited power challenges.

For max savings (-95%), you need frame-perfect beacon construction timing. This is easy to do using the editor time controls (place the beacon on the second tick that the power switch green light is on), but difficult in realtime. However, modifying the design to only save -90% or -80% gives you a much larger timing window.

Also, put your combinators on a separate highly reliable power network, because if they miss a tick the whole thing falls apart.
Qon
Smart Inserter
Smart Inserter
Posts: 2164
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: [0.18.12] Beacon Power Exploit

Post by Qon »

That's an amazing find!
DaveMcW wrote: Sun Mar 15, 2020 2:27 am For max savings (-95%), you need frame-perfect beacon construction timing. This is easy to do using the editor time controls (place the beacon on the second tick that the power switch green light is on), but difficult in realtime.
Does that mean it updates every 120 ticks since it was built, so you need to place all beacons at the same tick % 120 that are on the same electric network?
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
User avatar
Oktokolo
Filter Inserter
Filter Inserter
Posts: 884
Joined: Wed Jul 12, 2017 5:45 pm
Contact:

Re: [0.18.12] Beacon Power Exploit

Post by Oktokolo »

That looks like it is trivial to fix by enlarging the energy buffer of the beacons to hold 120 ticks of energy.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3729
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.18.12] Beacon Power Exploit

Post by DaveMcW »

My -95% savings was calculated by feeding a beacon 0.48 MW for 6 ticks. However, it is possible to do better by feeding a beacon 2.44 MW for 1 tick. This results in a savings of -96.1%.
Post Reply

Return to “Won't fix.”