Fluidic Power deprecated


Overhauls the power network to use the game's built-in fluid system in an attempt to make electricity more realistic. Adds working transformers for high power transmission, and creates various new and interesting power distribution challenges. Similar to the mods Flow Network and High Voltage, but significantly different by being the first mod that uses no on-tick power calculations. This means the UPS impact should be minimal for non-gigantic bases.

Content
6 months ago
1.1
1.78K
Power

b [Fixed] alert_for_mixed_fluids

3 years ago

This mod looks amazing! I was trying to figure it out and I guess it's not beginner friendly yet.

The mod Fluidic Power (0.8.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event FluidicPower::on_tick (ID 0)
FluidicPower/scripts/overlay.lua:299: attempt to index field '?' (a nil value)
stack traceback:
FluidicPower/scripts/overlay.lua:299: in function 'create_alert_for_mixed_fluids'
FluidicPower/scripts/overlay.lua:261: in function 'draw_connection'
FluidicPower/scripts/overlay.lua:158: in function 'iterate_fluidbox_connections'
FluidicPower/scripts/overlay.lua:89: in function 'ontick'
FluidicPower/control.lua:36: in function <FluidicPower/control.lua:34>

3 years ago

Thanks for the bug report! Do you know what was happening when the crash occured? Were there any other alerts active? For example turrets ingaged with enemy or something.

3 years ago

And what other mods are you playing with?

I hope to still create some tips-and-tricks to help out beginners. :)

3 years ago

Oh, I think I figured it out. I was in Sandbox mode so there was no player.surface.

    for _, alert in pairs(alerts[player.surface.index][defines.alert_type.custom]) do
3 years ago

Oh, because there's no player. I'll fix that easily later today. Thanks for the report!

3 years ago
(updated 3 years ago)

Kinda. It looks like player.surface.index still exists. I used
if(alerts[player.surface.index])
to get around it.

I guess I have to learn in Freeplay mode to see the alerts.
:) Glad I could help. I'll share any other bug I find.

3 years ago

Fixed :)

This thread has been locked.