Visible Planets in Space

by Nauviax

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

Tweaks
10 days ago
2.0
106K
Factorio: Space Age Icon Space Age Mod
Environment

b Crash when on planet Neumann V from Metal and Stars

7 days ago

Crash when I open a spaceship that is on planet Neumann V from mod Metal and Stars. On an older version this used to work. Also other planets work fine. The crash popup said:

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

Error while running event visible-planets::on_player_changed_surface (ID 59)
real number expected got nan.
stack traceback:
[C]: in function 'draw_sprite'
visible-planets/control_stuff/render_planets.lua:149: in function 'vp_generate_sprite_for_player'
visible-planets/control_stuff/render_planets.lua:133: in function 'vp_add_player_to_watched_render'
visible-planets/control_stuff/render_planets.lua:203: in function <visible-planets/control_stuff/render_planets.lua:201>

7 days ago

I’ll have a look later today but I’m the meantime you’ll need to downgrade to an older version. If you need help doing that then let me know. Thanks for the report.

7 days ago

Actually I did just try to reproduce it, and it seems to work fine for me. (On a new save at least.)

Could you provide a mod list? Also could you test this on a fresh save to see if it only happens on your save?

There's also a chance that temporarily enabling the "Regenerate all planet renders" option in mod map settings may fix the issue. If it does, please let me know and I'll add it to the migrations so others don't need to do it also.

6 days ago

Regenerating all planet renders does nothing for the crash, I tried setting the option to on multiple times in the save, but no matter where I check it it still crashes.
768.745 Error MainLoop.cpp:1468: Exception at tick 20585492: The mod Visible Planets in Space (1.7.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event visible-planets::on_space_platform_changed_state (ID 195)
real number expected got nan.
stack traceback:
[C]: in function 'draw_sprite'
visible-planets/control_stuff/render_planets.lua:149: in function 'vp_generate_sprite_for_player'
visible-planets/control_stuff/render_planets.lua:115: in function 'vp_render_planet_on_platform'
visible-planets/control_stuff/render_planets.lua:125: in function <visible-planets/control_stuff/render_planets.lua:124>
LInk to save: https://drive.google.com/file/d/1NjgcWAYxaldex4CbVM3H0M-6RZlgn_Lo/view?usp=sharing

6 days ago

The error is caused by https://mods.factorio.com/mod/vp-scale, loading the game without it does not crash.

6 days ago

Oooo I wonder if it's a divide-by-zero issue then; VP-Scale is probably doing something like nauvis.day-night / neumann.day-night to get the multiplier needed, and if neumann has a day/night of 0 then it could result in NaN.

Does Neumann V have a day-night cycle? If not then I bet that's the issue. I'll pre-emptively let the VP-Scale dev know too.

6 days ago

Issue is indeed on VP-Scale's end. Discussion here: https://mods.factorio.com/mod/vp-scale/discussion/69704617b50e1a24ed6c9239
It should be safe to remove their mod temporarily until a fix is out, or downgrade mine until then also.

5 days ago

Thanks for the quick replies. I'm still crashing (updated to visible planets scale 1.4.1) but now I know which mod is causing it. I replied in the other thread to let them know.

New response