Space Engineers

Space Engineers

Not enough ratings
Misaligned Lake Fix (Earthlike/Alien)
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Planet
Tags: NoScripts
File Size
Posted
Updated
6.015 MB
23 Dec, 2022 @ 1:43pm
12 Apr, 2023 @ 2:20pm
4 Change Notes ( view )

Subscribe to download
Misaligned Lake Fix (Earthlike/Alien)

Description
This mod is already included in my Seams Fixed Mod. I recommend to use Seams Fixed instead of this mod:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2961563719

As of version 1.201.014 four lakes on Earthlike and Alien are misaligned and 3 more are defined in non-flat areas, causing glitches.
All glitched lakes can be found in the north polar region of Earthlike and Alien (both share exactly the same height map and material map).

This mod fixes the alignment on the 4 lakes and removes the other 3.
It replaces the "up_mat.png" files on Earthlike and Alien. For this to work I also had to include a copy of the planet generation file "PlanetGeneratorDefinitions.sbc" which is unmodified but only contains definitions for earthlike and alien.

The issue has already been reported and won't be fixed because it might affect already existing player bases.

https://support.keenswh.com/spaceengineers/pc/topic/26835-misaligned-lakes-on-earthlike-and-alien

Feel free to use the modified "up_mat.png" in your own mods.

Warning! Looks like combining multiple mods that modify the planet generation files of the same planet is not possible. At least in my case only one of the mods work if I load multiple. This mod might not be compatible with mods that change the PlanetGeneratorDefinitions.sbc.
7 Comments
Thorn Blackwell 12 Apr, 2023 @ 5:00pm 
Awesome!!
michi84o  [author] 12 Apr, 2023 @ 4:25pm 
I finally did it:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2961563719
Switched from linear regression to polynomial regression. The points looked good but the map was still glitchy. Was nearly about to give up when I found that the edge pixels of the tiles need to overlap. After duplicating the pixel rows everything lined up nearly perfect.
Thorn Blackwell 18 Mar, 2023 @ 3:51pm 
Very cool, yeah I've tried a few times myself, but it's nearly impossible when you are just working with the images trying to blend the edges.
michi84o  [author] 18 Mar, 2023 @ 3:42pm 
Fixing the edges of height maps turned out harder than expected. I tried it with a simple linear regression. Only worked on terrain with a constant gradient.
I'll be on vacation for the next two weeks. Will do another attempt when I'm back in April.
Thorn Blackwell 14 Mar, 2023 @ 3:38pm 
That would be awesome. Yeah ... it drops you there when you start in Creative. I really wish there was a planet generator for this game. I'd like to customize some with new terrain. So far I've only been playing with a few new textures.
michi84o  [author] 14 Mar, 2023 @ 2:08pm 
Actually not a bad idea. If you spawn into a new solar system without a spawn ship the game places you at a specific spot on earth like that has these glitchy borders.

I'm currently writing some edge fixing code for my procedural planet generator. I could use that code to fix the existing game files. Might be worth a try. If it works I'll upload it as a separate mod.
Thorn Blackwell 8 Mar, 2023 @ 6:44am 
Now if someone would fix the terrain border mis-match so there aren't sheer cliffs or drops where the EarthLike/Alien terrain files meet.