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
Why is my savefile still so large?
Re: Why is my savefile still so large?
Because you explored the map.
Re: Why is my savefile still so large?
That's not exploration, i was only about to start actually exploring What is there to take so much data for empty tiles?
-
- Filter Inserter
- Posts: 478
- Joined: Sat Aug 23, 2014 11:43 pm
- Contact:
Re: Why is my savefile still so large?
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
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
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
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
Re: Why is my savefile still so large?
What kind of entities could that be?
-
- Filter Inserter
- Posts: 478
- Joined: Sat Aug 23, 2014 11:43 pm
- Contact:
Re: Why is my savefile still so large?
It's mainly trees and oresZaflis wrote:What kind of entities could that be?
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