Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Loneshade

#1
That's the 100% mountain roof code for a 325x325 map:

            <roofGrid>
               <roofsDeflate>
7cIBCQAAAAKgP+3o/6Z+hGhTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODI=
</roofsDeflate>
            </roofGrid>
#2
+1 Great news :)
#3
Quote from: Builder1234 on May 01, 2018, 05:23:30 PM
Hi Guys, I just wanted to update this thread because using your method I successfully updated my game world roofgrid.  It was complicated, but it works!  My basic process was:

Find an old A16 or A17 save from before the compression where the roofgrid appears with the deflate tag now.  It's a much longer string, supporting the previous posters idea that it's compressed.  I couldn't figure out how to uncompress it, which is why I needed a previous save.  With the older save, use the rimworld_roof_editor tool for A16, and download the roof grid as a png file.  Here's the fun part, manually edit this png for your new world [this is fun...  I stitched together screenshots of my current map using paint, converted it down to 275 x 275 pixels, and manually colored it using the black/gray/white color coding for the roof_editor to reimport.  That took maybe 45 minutes itself].  Make sure it's the same grid size (e.g. 275 x 275 or 300 x 300), and once you're finished upload this using the rimworld_roof_editor tool again.  You're uploading it to the previous A16 save file, so when you're done grab the everything in the <roofgrid> </roofgrid> tag in the save game file.  Find your new B18 save game file.  Delete everything under the <roofgrid> </roofgrid> tag (including the tags), and replace it with the tag from the A16 save file with your modified roof grid.  Load the game and you'll see it changed!

Yes, that's very convoluted, but it works and until someone figures out how to decompress the <roofsdeflate> tag to get the original bitmap, that's how you'll have to do it!

great my theory was proven and already helped someone :)

Maybe an easy solution would be to to provide 100% mountain roof saves for the community. Then one can just copy over the section and afterwards remove non-necessary roofs in game?
#4
Adding to my last comment I'm rather positive, that while the roof section is now deflated, also the old syntax still works - sadly my knowledge of the old syntax is limited and all I found was this post:

https://www.reddit.com/r/RimWorld/comments/44q9ci/how_to_edit_roofs_overhead_moutain/

So I assume that in theory you can simply replace your whole <roofGrid><roofsDeflate> section with an uncompressed <roofGrid><roofs> section and even, that saving after loading this file, you'd once again have it compressed, granting a perfect result.
Sadly I don't know exactly how that old syntax was constructed and what the start- and end-characters were, so while my saves load, I've not been able to get a usable result yet
#5
I'd assume its compressed with 7z format since thats the first letters my <roofgrid> always seems to start with?