Save file Map algorithm

Started by jacob814, April 20, 2019, 02:18:46 PM

Previous topic - Next topic

jacob814

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?
My Mods:
Glass&Lights

Mehni

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.