Smog: Solar Panels


Solar panels working by pollution smog not so effective

Tweaks
7 months ago
0.16 - 1.1
2.48K
Power

g [Done] 0.18 please

4 years ago

Please?

4 years ago

Ok

4 years ago

Ready!

4 years ago

Please new screenshot, I cannot read this one.

4 years ago

Did you try to zoom in. It looks readable if you do.

4 years ago
(updated 4 years ago)

https://m.imgur.com/gallery/EE3oQSU
It was the mobile version, but on the desktop it is readable. Comes the biotech-biosolarpanel from Bio Industries?

4 years ago

Fixed in 0.2.1.

The solar panel has power as string
str = "0.2kW"

The old parser returns integer 0, but this solar panel uses float 0.2, the vanilla doesn't supports 0 kW power anymore.
value = tonumber(string.match(str, "%d+")) -- 0

The new lua parser supports float and returns 0.2
value = tonumber(string.match(str, "%d[%d.,]*")) -- 0.2

4 years ago

Thanks again, darkfrei. :)
I was almost sure though that this would also require Smog: Visual Pollution to be updated as well.

New response