Big Planets


Cosmic-scale planets!

Tweaks
a month ago
2.1
122
Factorio: Space Age Icon Space Age Mod
Planets

g [Fixed in 0.8.2] [Bug] Mod crashes when too many planet mods are installed due to "platform_surface_render_parameters" being nil

a month ago

Hi! I really like this mod and its idea but could not get it to work out of the box. Reason was because i have too many various planet mods and i suspect one or some of them add a planet that lacks the "platform_surface_render_parameters" field, that is changed at the very beginning for all planets in data-updates.lua without checking if it first exists here:

for _,planets in pairs(data.raw.planet) do
    planets.platform_surface_render_parameters.platform_backdrop.parallax_strength = {0, 0}
end

for _,planets in pairs(data.raw.planet) do
    planets.platform_surface_render_parameters.platform_backdrop.radius = 1200
end

for _,planets in pairs(data.raw.planet) do
    planets.platform_surface_render_parameters.platform_backdrop.rotation_seconds = -860
end```

so i updated this bit of code to check for that and it work now (as far as i am aware from my limited testing):
```lua
for _,planets in pairs(data.raw.planet) do
    if (planets.platform_surface_render_parameters) then
        planets.platform_surface_render_parameters.platform_backdrop.parallax_strength = {0, 0}
        planets.platform_surface_render_parameters.platform_backdrop.radius = 1200
        planets.platform_surface_render_parameters.platform_backdrop.rotation_seconds = -860
    end
end

hopefully this helps with fixing this issue, if you find it relevant. also i could not pindown the exact mod, but i am using Enable All Planet Mods Lite so its one of the planets from that.
thank you :)

a month ago

Hi! I really like this mod and its idea but could not get it to work out of the box. Reason was because i have too many various planet mods and i suspect one or some of them add a planet that lacks the "platform_surface_render_parameters" field, that is changed at the very beginning for all planets in data-updates.lua without checking if it first exists here:
```lua
for _,planets in pairs(data.raw.planet) do
planets.platform_surface_render_parameters.platform_backdrop.parallax_strength = {0, 0}
end

for _,planets in pairs(data.raw.planet) do
planets.platform_surface_render_parameters.platform_backdrop.radius = 1200
end

for _,planets in pairs(data.raw.planet) do
planets.platform_surface_render_parameters.platform_backdrop.rotation_seconds = -860
end
```

so i updated this bit of code to check for that and it work now (as far as i am aware from my limited testing):
lua for _,planets in pairs(data.raw.planet) do if (planets.platform_surface_render_parameters) then planets.platform_surface_render_parameters.platform_backdrop.parallax_strength = {0, 0} planets.platform_surface_render_parameters.platform_backdrop.radius = 1200 planets.platform_surface_render_parameters.platform_backdrop.rotation_seconds = -860 end end

hopefully this helps with fixing this issue, if you find it relevant. also i could not pindown the exact mod, but i am using Enable All Planet Mods Lite so its one of the planets from that.
thank you :)

a month ago

Hello! Thank you for reporting this bug and fixing it as well, I've tested and incorporated your fix into the 0.8.2 release of the mod, along with proper credits :3

New response