Why is my savefile still so large?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Zaflis
Filter Inserter
Filter Inserter
Posts: 520
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Why is my savefile still so large?

Post by Zaflis »

Steps i've done:
- Deconstruct everything, including all concrete.
- Use console command to delete all items on ground, such as alien artifacts.
- Use console command to clear all pollution.
- Use console command to kill all aliens.
- Use undecorator mod.
- Tried loading the game without mods and saving, it is still same size.

The area i have explored is a bit large circle around spawn. After all these things the level.dat is still over 93Mb uncompressed. Is there anything that can be done to reduce that file size?

File: https://www.dropbox.com/s/6p8ts1fgv7ysq ... s.zip?dl=0
Loewchen
Global Moderator
Global Moderator
Posts: 9623
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Why is my savefile still so large?

Post by Loewchen »

Because you explored the map.
Zaflis
Filter Inserter
Filter Inserter
Posts: 520
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Re: Why is my savefile still so large?

Post by Zaflis »

That's not exploration, i was only about to start actually exploring ;) What is there to take so much data for empty tiles?
explore.jpg
explore.jpg (124.2 KiB) Viewed 2154 times
keyboardhack
Filter Inserter
Filter Inserter
Posts: 478
Joined: Sat Aug 23, 2014 11:43 pm
Contact:

Re: Why is my savefile still so large?

Post by keyboardhack »

Lets see what fills so much in that save file.

The original file was 91.2MB.
Saving the file with no mods reduced the file size to 90.3MB

I then ran the following command to delete all entities

Code: Select all

/c for _, ent in pairs(game.surfaces.nauvis.find_entities()) do
	ent.destroy()
end
After that the save file was 51.8MB.
Now the map consists of 51319 chunks and each chunk has 32 * 32 = 1024 tiles in it so the map is made out of 52550656 tiles.
Dividing the size of the save file with the number of tiles and we get 1.03376. From that we can assume that one tile takes 1 byte of space. Then we can remove all the tile bytes and we get 1774221 bytes for everything else.


tldr:
Mods: 0.9MB
Entities: 39.4MB
Tiles: 50.1MB
Other: 1.7MB
Waste of bytes : P
Zaflis
Filter Inserter
Filter Inserter
Posts: 520
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Re: Why is my savefile still so large?

Post by Zaflis »

What kind of entities could that be?
keyboardhack
Filter Inserter
Filter Inserter
Posts: 478
Joined: Sat Aug 23, 2014 11:43 pm
Contact:

Re: Why is my savefile still so large?

Post by keyboardhack »

Zaflis wrote:What kind of entities could that be?
It's mainly trees and ores

tree-02-red 101684
tree-05 446344
tree-04 446842
dead-dry-hairy-tree 21199
tree-02 117166
dead-grey-trunk 8580
dead-tree 10
tree-09-red 15595
tree-07 15786
dry-hairy-tree 12
tree-08 1066
tree-08-red 264
tree-08-brown 264
tree-03 1869
tree-01 263
dry-tree 14
tree-09-brown 231
laser-turret 10
player 1
roboport 1
radar 2
substation 1
big-electric-pole 1
fish 169303
iron-ore 440154
stone 211393
stone-rock 1892
coal 496084
copper-ore 450725
crude-oil 5440
item-on-ground 2600
medium-electric-pole 3
Waste of bytes : P
Post Reply

Return to “Technical Help”