Solar Walls


A Wall equiped with a solar panel. Wall with Solar Panel generating 5Kw.

Content
3 years ago
0.16 - 1.1
15.1K
Combat

b Support for script-built walls

5 years ago
(updated 5 years ago)

Mods like Construction Drones use events like https://lua-api.factorio.com/latest/events.html#script_raised_built and the other two (destroy, revive) to signal the build events.

Without support for those events, your mod is not compatible with the new standard for scripted construction in other mods!

KS Power was updated recently because of this as well, as it does similar things.

5 years ago

Hmm .. Thanks IronCartographer.. i add to make the solar cells when

script_raised_built
script_raised_revive

and to remove when
script_raised_destroy

If you could test please!! :) Thank you very muck

5 years ago

The mod Construction Drones caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Construction_Drones::on_ai_command_completed (ID 113)
The mod Solar Walls caused a non-recoverable error.
Please report this error to the mod author.

Error while running event SolarWalls::script_raised_revive (ID 79)
SolarWalls/control.lua:43: attempt to index field 'created_entity' (a nil value)
stack traceback:
SolarWalls/control.lua:43: in function <SolarWalls/control.lua:42>
stack traceback:
Construction_Drones/script/construction_drone.lua:1878: in function <Construction_Drones/script/construction_drone.lua:1857>
(...tail calls...)
Construction_Drones/control.lua:37: in function <Construction_Drones/control.lua:35>
stack traceback:
[C]: in function 'revive'
Construction_Drones/script/construction_drone.lua:1878: in function <Construction_Drones/script/construction_drone.lua:1857>
(...tail calls...)
Construction_Drones/control.lua:37: in function <Construction_Drones/control.lua:35>

New response