Morggin Posted January 26, 2025 Report Posted January 26, 2025 Is there a way to cull the world file size? my server has a lot of traffic and in just the few days it's been on BisectHosting it's already at 13 gigs in size. BisectHosting has the instances capped at 15 gigs. Not sure what's going to happen when it grows beyond that. I'm using default world size of 1 mill x 1 mill blocks.
Thorfinn Posted January 26, 2025 Report Posted January 26, 2025 I'm waiting to hear the answer, too. FWIW, 10k by 10k fully explored is a bit under 4 gigs. Probably a 20k by 20k would be all you could do to keep it under 15 gigs, and that would be tight.
StCatharines Posted January 26, 2025 Report Posted January 26, 2025 Ouch. I have single-player worlds that eventually reached over 15GB, and two-player worlds that hit 22GB with very little effort and ~100 hours of gameplay and exploration. If there is a way to compress them, I would also love to know.
Solution Zippy Wonderdust Posted January 26, 2025 Solution Report Posted January 26, 2025 Using this Reddit post as a reference, you could (at least temporarily) reduce your save file size by using the following commands to 1) remove all chunks from the database that players have explored but not significantly altered, then 2) drop the pruned data from your save file and compact it. (Back up you data first! If this borks your world and you don't have a backup to restore from, it's *not* *my* *fault*.) /db prune 16 drop confirm /db vacuum
Thorfinn Posted January 26, 2025 Report Posted January 26, 2025 I take it the 16 is the maximum number of changes made for the chunk to be pruned? Does that include collapsing dirt and lightning forest fires?
Zippy Wonderdust Posted January 26, 2025 Report Posted January 26, 2025 30 minutes ago, Thorfinn said: I take it the 16 is the maximum number of changes made for the chunk to be pruned? Does that include collapsing dirt and lightning forest fires? Yes, the number (in this case 16) is maximum number of total block changes a chunk can have and still be pruned. So in this example any block with 17 or more block changes will *not* be deleted. I'm honestly not sure what the game considers a "player alteration", but at a guess I'd say no to lightning and, um, maybe? to landslides. Lightning is a random event not caused by the player so which player ID would you tag the block change with? Landslides *can* be caused by player movement, so maybe the initial block change is tagged with the player's ID but not any subsequent ones in the cascade? Who knows? Not me. I did successfully run this command on my son's 1.19.8 world after we added the Better Ruins and Better Traders mods, and it worked a treat. Areas we had previously explored but not changed were removed from the db and we got the new mod content when we revisited them. 1
Thorfinn Posted January 26, 2025 Report Posted January 26, 2025 So if you limited yourself to just looting a chunk's copper nuggets and flax, this would probably respawn them? So long as you didn't pick up more than 16?
Morggin Posted January 26, 2025 Author Report Posted January 26, 2025 (edited) So here was the response from BisectHosting. The 15GB limit is just for the instance, so you wouldn't be able to switch instances if it's over 15GB but you can have the file be as many GBs as needed. If you were to switch instances, you would need to download an archive of the server files to your device if you didn't want to lose all progress when switching. does this mean it wont shut off if it exceeds 15GB instance? or rather ... if it grows beyond 15GB That is correct! You just won't be able to switch the instance if it's greater than 15GB Edited January 26, 2025 by Morggin 1
Zippy Wonderdust Posted January 26, 2025 Report Posted January 26, 2025 18 minutes ago, Thorfinn said: So if you limited yourself to just looting a chunk's copper nuggets and flax, this would probably respawn them? So long as you didn't pick up more than 16? Even worse, picking up surface deposits (nuggets, flint, sticks) apparently doesn't count as a block change at all, so it doesn't matter how many you've grabbed, so long as you didn't build anything or dig any holes or fell any trees the whole chunk will get removed and regenerated. I've seen it happen. I'm not sure whether harvesting wild crops counts as a block change or not; that would require someone to do some more testing . 2
DEMMERS Posted February 2, 2025 Report Posted February 2, 2025 On 1/26/2025 at 12:32 PM, Zippy Wonderdust said: Using this Reddit post as a reference, you could (at least temporarily) reduce your save file size by using the following commands to 1) remove all chunks from the database that players have explored but not significantly altered, then 2) drop the pruned data from your save file and compact it. (Back up you data first! If this borks your world and you don't have a backup to restore from, it's *not* *my* *fault*.) /db prune 16 drop confirm /db vacuum On a server, ver 1.19.8, while db prune can be ran, the db vacuum, command doesn't even show as existing on the server. Can only run it on my singleplayer worlds.
Recommended Posts