Visible Planets in Space

by Nauviax

Render the local planet behind platforms when in orbit. Now with parallax, rotation, and mod support!

Tweaks
30 days ago
2.0
41.9K
Factorio: Space Age Icon Space Age Mod
Environment

b Bug report: Crash when editing scenario when Editor Extensions is enabled

4 months ago

Situation: added Visible Planets and Editor Extensions mods, then attempted to edit an existing saved SA scenario.

On load, the following crash occurred:

The mod Visible Planets in Space (1.2.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event visible-planets::on_tick (ID 0)
LuaPlayer API call when LuaPlayer was invalid.
stack traceback:
    [C]: in function '__index'
    __visible-planets__/control_stuff/render_planets.lua:143: in function 'fancy_animations'
    __visible-planets__/control_stuff/render_planets.lua:174: in function <__visible-planets__/control_stuff/render_planets.lua:162>

Game state:
- Base (2.0.28), Elev Rails, Quality, SA

Other mods enabled:
- Editor Extensions
- [dependency] Factorio Library

I cannot reproduce with only Visible Planets in Space enabled.
I cannot reproduce when both mods are loaded in a standard SA save, only in the scenario editor.

Editor Extensions has closed discussion (for understandable reasons) so reporting only here.

4 months ago

I don't know how LuaPlayer is becoming invalid, and I think it might actually be a small issue on Editor Extensions side.

But that being said, it's a very simple fix on my end to prevent the crash. Next version should work perfectly fine, but let me know if something else breaks while using the map editor.

New response