Ludeon Forums

RimWorld => Mods => Help => Topic started by: jacob814 on April 20, 2019, 02:18:46 PM

Title: Save file Map algorithm
Post by: jacob814 on April 20, 2019, 02:18:46 PM
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?
Title: Re: Save file Map algorithm
Post by: Mehni on April 20, 2019, 04:09:51 PM
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.