Flat Solar Panels - Solar Freakin' Roadway


Adds retractable or always flat solar panels that you can walk on.

Content
1 year, 2 months ago
1.1
1.47K
Power

g Error with Inlaid Lamps Extended

1 year, 10 months ago

In sandbox, I attempted to test the Inlaid Lamp Extended mod but received this error when attempting to place either of the Inlaid Lamp entities.

The mod Flat Solar Panels (0.1.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Flat-Solar::on_built_entity (ID 6)
Unknown entity name: flat-lamp_
stack traceback:
[C]: in function 'create_entity'
Flat-Solar/control.lua:35: in function 'gizmatizePanel'
Flat-Solar/control.lua:11: in function <Flat-Solar/control.lua:3>

1 year, 10 months ago
(updated 1 year, 10 months ago)

In control.lua modifying line #164 from "flat-" to "flat-solar" resolves the issue. The same string is used in two other places in the file, and probably should be changed, but not required to resolve this error.

1 year, 10 months ago
(updated 1 year, 10 months ago)

It struck me as odd that an entity that was not a solar-panel would reach that point in the code. When I logged the name and type of entities being tested at that point in the code... I am not sure the solar-panel test above is returning false as expected.

1 year, 10 months ago
(updated 1 year, 10 months ago)

Yeah, I see the problem. I'll work on a fix. I just prefixed "flat-" to solar panel entities, and confirmed that they are of "solar-panel" type, but that's clearly not unique enough.

1 year, 10 months ago

Latest version has a fix for this.

1 year, 10 months ago

Yes, the new version is working fine now, thank you!

New response