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 SolarWalls::script_raised_built (ID 77)

5 years ago

La mod Whistle Stop Factories ha causato un errore non recuperabile.
Se possibile riporta l'errore all'autore della mod.

Error while running event WhistleStopFactories::on_chunk_generated (ID 12)
La mod Solar Walls ha causato un errore non recuperabile.
Se possibile riporta l'errore all'autore della mod.

Error while running event SolarWalls::script_raised_built (ID 77)
SolarWalls/control.lua:33: attempt to index field 'created_entity' (a nil value)
stack traceback:
SolarWalls/control.lua:33: in function <SolarWalls/control.lua:32>
stack traceback:
WhistleStopFactories/scripts/spawnFactory.lua:30: in function 'spawn'
WhistleStopFactories/control.lua:85: in function <WhistleStopFactories/control.lua:52>
stack traceback:
[C]: in function 'raise_event'
WhistleStopFactories/scripts/spawnFactory.lua:30: in function 'spawn'
WhistleStopFactories/control.lua:85: in function <WhistleStopFactories/control.lua:52>

5 years ago

Hi DellAquila,

Script_raised_built actually is suppose to take entity and not created_entity according to the docs. I actually recently fixed this in my mod, which is why the sudden bug. I think I'll call script_raise_built with {entity=entity, created_entity=entity} from now on just to be extra safe, but still something you might want to look at fixing.

https://lua-api.factorio.com/latest/events.html#script_raised_built

5 years ago

Hello Avongard! Thanks for this information... I really trying to understand this .

5 years ago

This explains why I've seen several other mods send both entity and created_entity. Interesting!

New response