Page 1 of 1

[Solved] Finding out why save is so big

Posted: Tue Nov 09, 2021 8:53 pm
by DarkShadow44
So, I took a map from the forum (the sandstorm movie player) and deleted everything in there. For some reason, the map is still huge though.
My question now is, what makes this map so huge, and how do you figure that out?

Map download here

Might be a stupid question, but I really wonder how it can remain that big when all the chunks got deleted. Maybe some lua tables from removed mods?

Re: Finding out why save is so big

Posted: Tue Nov 09, 2021 10:55 pm
by Koub
Iirc, the movie data itself is stored in map files within the save. I'm sure Dave posted the way he encoded the video and stored it into the save in his post.

Re: Finding out why save is so big

Posted: Wed Nov 10, 2021 10:16 am
by DarkShadow44
Well, it's encoded in combinators - which are all deleted.

Re: Finding out why save is so big

Posted: Wed Nov 10, 2021 11:16 am
by posila
It's output console (~50 MB) and undo queue (~150 MB)

You can get some stats in the log by enabling Settings -> Other -> Log saving statistics; These particular items are not part of the statistics logging, bacause console keeps only 50 last messages and that is usually negligible, and undo queue is too new for having saving stats ... So I added both of them for the next release.

Re: Finding out why save is so big

Posted: Wed Nov 10, 2021 12:18 pm
by DarkShadow44
Many thanks, this explains a lot!
I didn't see there was a recipe dump in the console, and undo queue, well, that makes sense.
Btw, is there a way to clear the undo queue when you see it gets too big?

Re: [Solved] Finding out why save is so big

Posted: Wed Nov 10, 2021 12:26 pm
by posila
Undo queue is limited to 100 items, so building 100 of something one by one (you can drag-build) would push out large undo items with tiny ones

Re: [Solved] Finding out why save is so big

Posted: Wed Nov 10, 2021 1:53 pm
by DarkShadow44
Ah, so my entire deleting was put into the queue. That makes sense, thanks!