[2.0.76] Factoriopedia doesn't show electric usage of beacon if beacon_power_usage_multiplier > 1

User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 430
Joined: Sat Oct 05, 2019 6:17 am
Contact:

[2.0.76] Factoriopedia doesn't show electric usage of beacon if beacon_power_usage_multiplier > 1

Post by Stargateur »

It's look factoriopedia bug when energy is too high ?

Code: Select all

for _, quality in pairs(data.raw["quality"]) do
  quality.beacon_power_usage_multiplier = quality.level
end
Capture d’écran 2026-05-13 113931.png
Capture d’écran 2026-05-13 113931.png (74.48 KiB) Viewed 151 times
Capture d’écran 2026-05-13 114003.png
Capture d’écran 2026-05-13 114003.png (114.93 KiB) Viewed 151 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4537
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.76] Factoriopedia doesn't show electric usage of beacon if beacon_power_usage_multiplier > 1

Post by boskid »

What i suspect is happening here is that normal quality got a multiplier of 0 (since quality levels start at 0) and this made the logic not show energy consumption since entity does not consume any electricity at the base quality. The only thing i can do here is to make QualityPrototype throw an error if you give beacon_power_usage_multiplier with a value smaller than 0.01.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4537
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.76] Factoriopedia doesn't show electric usage of beacon if beacon_power_usage_multiplier > 1

Post by boskid »

"Fixed" for 2.1: "Changed QualityPrototype::beacon_power_usage_multiplier: it now must be >= 0.01."
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 430
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: [2.0.76] Factoriopedia doesn't show electric usage of beacon if beacon_power_usage_multiplier > 1

Post by Stargateur »

boskid wrote: Wed May 13, 2026 10:38 am What i suspect is happening here is that normal quality got a multiplier of 0 (since quality levels start at 0) and this made the logic not show energy consumption since entity does not consume any electricity at the base quality. The only thing i can do here is to make QualityPrototype throw an error if you give beacon_power_usage_multiplier with a value smaller than 0.01.
Oh yeah I always forget normal is 0 not 1(I think lua is affecting my brain in a bad way), my logic was dump `1 + quality.level` is way better :lol: Thx
Post Reply

Return to “Fixed for 2.1”