Since Im still very new to modding, does anyone have the source code for the algorithm that stores the save game map tiles and more importantly the roof type?
Grab yourself a decompiler and take a look. ILSpy is good. DnSpy also works.
From a glance, it stores em by def.shortHash, does some bitshifting so its a byte array and then stores it as a base64 string.