MyPlanetShapeProvider possibly not reinitialized between sessions
I wrote a script that reduces the surface detail of all planets during load. It is similar to the Smooth Voxels mod but modifies the surface detail instead of setting it to null.
Problem: After unloading a world that uses this script, the changes this script made still persist when loading another save or entering a server that doesn't have the mod. On the server this state will cause player positions to be looped upwards. See attached video,
This issue can currently only be resolved by restarting SE.
How to reproduce:
- Create a mod with the attached script (alternatively load mod ID 3484456654 from workshop).
- Add mod to a savegame and load that world.
- Leave the world and either remove the mod or load another unmodded save or enter a server without the mod.
- The surface detail will still look like if the mod was still active.
The attached log is for the described situation. A world is loaded with the script, then a world without the script is loaded:
Log shows script beeing loaded in line 935 (2025-05-19 23:19:37.148).
Log message of script function is in line 1151 (2025-05-19 23:19:37.929). This log message appears only once in the log. It does not seem to be run for the second world.
Unload is shown in line 1384 (2025-05-19 23:20:33.549).
After that another world was loaded which did not have the mod. The effect of the mod was still visible and the voxels had reduced detail.
Since the video attachment is not shown, here is a YouTube link:
https://youtu.be/boyX1VYkGi8
Since the video attachment is not shown, here is a YouTube link:
https://youtu.be/boyX1VYkGi8
FYI, I solved the problem for my script by undoing the changes in the overriden Unload() method of my script.
According to the Keen Discord, changes leaking into other worlds is an old issue.
FYI, I solved the problem for my script by undoing the changes in the overriden Unload() method of my script.
According to the Keen Discord, changes leaking into other worlds is an old issue.
Hello Michael,
Thank you for reaching out to us on the forum.
Could you please confirm if you were able to resolve the issue by fixing your script? If so, we can then proceed to close this thread.
Thank you for your understanding.
Kind regards,
Keen Software House: QA Department
Hello Michael,
Thank you for reaching out to us on the forum.
Could you please confirm if you were able to resolve the issue by fixing your script? If so, we can then proceed to close this thread.
Thank you for your understanding.
Kind regards,
Keen Software House: QA Department
Replies have been locked on this page!