GGPK Defragmenter

Excellent. For reference, even if you just deleted your ggpk to re-download a fresh one, there's almost a whole GB of free records to trim down using this updated tool (28.1 -> 27.2GB).
Packcheck reports no error, and game runs fine.
No Need to download, 28 483 422 Ko is equal to 27,1 Go not 28,1 (1 o = 8 bits, not 10).




As you can see on this screenshot the size is 27,1 Go :)
"
Le_Poulpe wrote:
No Need to download, 28 483 422 Ko is equal to 27,1 Go not 28,1 (1 o = 8 bits, not 10).

I'm aware of the difference, despite my unwillingness to use that silly GiB notation. The original file was bigger and actually 28.1GB.

For instance, right now (patch 3.13.1):
- if you download a 'fresh' ggpk, the file ends up as 30,105,503,328 bytes (28.04GB).
- after using the updated defragmenter, the file is 29,131,383,693 bytes (27.13GB).

Almost a gig free is always good in my book.
"
warrofua wrote:
"
Nymphios wrote:
SSDs aren't supposed to be defragmented, so does this thing harm SSDs or is it safe?


SSD's don't suffer from general slowdowns due to file fragmentation across the OS system files, other data files, etc. since SSD's have no moving parts. HDD's have to spin up and "move" a reader to the correct section of the disk, so if those locations are far away, it takes more spins, and it takes more time, leading to long wait times, especially if there are 10000 files and they are all on different spots in the disc.

What this tool does, is takes out the fragmentation WITHIN GGG's file (.ggpk). Why is this fragmentation there? Because over time, as you patch the game, irrelevant bits and pieces get leftover/accumulate. So, this tool removes THAT stuff, and it has nothing to do with whether you have a SSD or HDD.


So there is no expected (noticeable) performance increases from defragging these files on an SSD, and it simply reduces the scattered useless files on the disk correct? From what I understand this should only affect the file size of the game on an SSD.
You're right Trifall, using this tool is only for cleaning content gaming file. For me (using a SSD for the game), the game launch faster after defrag. 40Go down to 27 Go, that's why my launch time was reduced, but no significant impact on the game...

This tool affect only the GGPK file, it's a not a HDD defrag tool. The file's structure (of the ggpk) will be cleaned but it can be physicaly fragmented on your HDD...
For those who need defrag on a hard drive, this tool will help only by reducing file size but you need to use another software/tool in order to optimize your file system on your HDD. It's not the same thing.

Btw it's a good thing to reduce the size when you load a game or something else.


It does not work for me. What should I do ?
hallo
"
qoqoCAN wrote:
It does not work for me. What should I do ?

You can either patch the ruby script using the diff in this post before running it, or download and use the alternate tool compiled from C# linked in that post.
Note, the latter doesn't replace the old ggpk with the defragmented one. You have to do it manually after the process completes, as described in Le_Poulpe's post.
"
Le_Poulpe wrote:
"
Finally found a working ggpk defragmenter. You can get the zip file from this releases page (or directly from this link).

So i decided to make a guide, i hope it will help some of you.

Thank you both for this! I was able to reduce my 41.5 GB Content.ggpk file to 27.2 GB.


"
Le_Poulpe wrote:
Drag your Content.ggpk file onto DefragmentGPPK.exe (simply open 2 explorer windows, no need to copy anything in POE directory)

Tip: Store the DefragmentGPPK files wherever you want. Go to your PoE installation folder and right-click on the Content.ggpk file. Select "Open With", "Choose another app". Make sure you check the box to "Always use this app to open .ggpk files". Browse to the DefragmentGPPK.exe file and select it. The Content.ggpk file will begin defragmenting.

Now whenever you need to defragment Content.ggpk, just double-click on it and it will begin defragmenting.

Read My Links!: http://www.theamazonbasin.com/forums/index.php?/topic/121389-read-my-links/


It seemed like it was working well, thank you Napalm! And for the guide Le_Poulpe. However, when I opened the game it gives me an error "Content.ggpk is not a pack file"

** Update: **
PackCheck.exe did not work in the folder, error'd out because of some map file missing. Had to uninstall and reinstall. However, GGPK is still smaller after all of this so no big deal.
Mr__Khan's Lab Running Guide - https://www.pathofexile.com/forum/view-thread/3120142 Mr__Khan's Mirror Shop - https://www.pathofexile.com/forum/view-thread/3184063
Last edited by MrKhanTTV on Mar 5, 2021, 10:55:51 AM
Patch version 3.13.2 added a built-in compacter to PackCheck.exe. Thanks for the updated tool, GGG.

"
========================
PackCheck starting
========================

2021/04/06 12:53:13 Repairing pack file Content.ggpk
2021/04/06 12:53:13 Note: If checking chunks takes more than a few minutes you may need to create a.
2021/04/06 12:53:17 Checking all chunks are valid... done
2021/04/06 12:53:17 Checking free chain... done
2021/04/06 12:53:17 Scanning pack contents... found 45202 entries
2021/04/06 12:53:19 Freeing orphaned chunks... none found
2021/04/06 12:53:19 Merging free chunks... done
2021/04/06 12:53:20 Current pack file size is 30595859321, performing fast compaction
2021/04/06 12:53:20 New pack file size is 29453941014, compaction finished
2021/04/06 12:55:25 Checking content hashes... all content hashes are in sync
2021/04/06 12:55:25 Finished repairing pack file.
Press <ENTER> to quit...


Interestingly, using the tools in this thread shaved off a few (~18) MBs, and then using PackCheck again to verify the result eked out 16 extra bytes out of that !
Spoiler
========================
PackCheck starting
========================

2021/04/06 13:16:22 Repairing pack file Content.ggpk
2021/04/06 13:16:22 Note: If checking chunks takes more than a few minutes you may need to create a.
2021/04/06 13:16:26 Checking all chunks are valid... done
2021/04/06 13:16:26 Checking free chain... done
2021/04/06 13:16:26 Scanning pack contents... found 45202 entries
2021/04/06 13:16:27 Freeing orphaned chunks... none found
2021/04/06 13:16:27 Merging free chunks... done
2021/04/06 13:16:28 Current pack file size is 29435432191, performing fast compaction
2021/04/06 13:16:28 New pack file size is 29435432175, compaction finished
2021/04/06 13:18:31 Checking content hashes... all content hashes are in sync
2021/04/06 13:18:31 Finished repairing pack file.
Press <ENTER> to quit...

But that's going a bit too far, the first pass did ~98% of the job. That's probably enough for anyone interested in managing their GGPK.

Report Forum Post

Report Account:

Report Type

Additional Info