Lightorio


Adds a little 'glow' to assembling machines, chem plants and oil refineriers, to make the factory more visible at night. Not intended as an complete replacement for lamps.

Tweaks
1 year, 8 months ago
0.16 - 1.1
28.8K

b [fixed/pending] crash when pressing play in map editor

4 years ago

Pressing the "play" button in the map editor gave me this error:

Mod Lightorio hat einen unbehebbaren Fehler verursacht.
Bitte informiere den Mod-Autor über diesen Fehler.

Error while running event lightorio::on_nth_tick(30)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
lightorio/control.lua:58: in function <lightorio/control.lua:53>
stack traceback:
[C]: in function 'index'
__lightorio
/control.lua:58: in function <lightorio/control.lua:53>

I build laser turrets from bob (one of each tier) and one tier 4 substation

An antimatter reactor prototype and antimatter reactor from Krastorio
https://mods.factorio.com/mod/Krastorio

I'm posting this because I don't think pressing the play button was the issue, probably one of those buildings.

4 years ago
(updated 4 years ago)

Hmm, this one I can't recreate I'm afraid. I've created a scenario with each of these entities and pressing play works fine. Even loading it up in freeplay and picking them up and placing them down again is working fine.

Are there any other entities present?

4 years ago

This is particularly weird because there shouldn't be a way for that code snippet to be running without it being run on an entity (so LuaEntity should always be valid) It's possible a table is going out of bounds or something. I might need a mod list and a save file to look into this. What happens if you load the scenario in freeplay?

4 years ago

hmm, tried reproducing it but nothing happened, weird.

I don't have the map anymore because I was just trying out something and when it crashed the map was gone :(

New response