GGPK Defragmenter

"
Ozsmeg wrote:
"
ignarsoll wrote:
...
As I can see current usage of the tool is not that friendly for the avarage user. So I changed few lines of code and now it works by double clicking.

Now the tool creates a backup of the Content.ggpk named Content.ggpk.old, then it creates a defragmented copy of it named as Content.ggpk. So there is no additional steps in the process, after running the game without a problem you could delete Content.ggpk.old to save some space.

Windows executable - Source

Usage:
1- Copy the tool to your Path of Exile directory.
2- Double click it and wait for it to finish
3- Run the game to check if everything is working fine.
4- If so delete Content.ggpk.old to save some space.

Spoiler
This was the first time I had my hands on a ruby code. Thankfully I only changed 2-3 lines of code but if there is a way that it could be done more efficiently. Experienced ruby developers should feel free to make appropriate changes.


This could cause some problems with people running this more than once and over-writing the old file. You did put a check in to prevent it running if there is already a Content.ggpk.old in the folder already?

I can't see a reason why would anybody want to run it multiple times without checking first if the game works fine. To answer your question it doesn't check if a backup is already created and will overwrite it if run again. There shouldn't be a problem if the user complies with the instructions.

Usage
1- Copy the tool to your Path of Exile directory.
2- Double click it and wait for it to finish
3- Run the game to check if everything is working fine.
4- If so delete Content.ggpk.old to save some space.
No longer a forum dweller, please use PM for contact purposes.
"
ignarsoll wrote:
I can't see a reason why would anybody want to run it multiple times without checking first if the game works fine. There shouldn't be a problem if the user complies with the instructions.


I think I just heard the collective gasp of all QA testers around the world.
"
Odoakar wrote:
Your method is quite simple.

1. Go to your PoE folder and put the defragmenter file there. Copy the path name to the folder (E:\Program Files (x86)\Grinding Gear Games\Path of Exile in my case).
2. Start-Run-Cmd. If you don't have Run on Win7, google 'how to enable Run on win 7'.
3. E: is my drive with PoE, replace the letter with your disk character

C:\Users\..\:>E:
E:\> cd E:\Program Files (x86)\Grinding Gear Games\Path of Exile

(right click and paste the path)

E:\Program Files (x86)\Grinding Gear Games\Path of Exile> ggpk_defragment.exe content.ggpk content2.ggpk

Confirm and wait.

After it's done, just rename the files as suggested by Nagpur.

There's an even easier way to do this. Rewritten version:

1. Go to your PoE folder and put the defragmenter file there. (E:\Program Files (x86)\Grinding Gear Games\Path of Exile in my case).
2. Start-Run-Cmd. If you don't have Run on Win7, google 'how to enable Run on win 7'.
3. Drag and drop the ggpk_defragment.exe file onto the command window.
4. Hit spacebar.
5. Drag and drop the Content.ggpk file onto the command window.
6. Hit spacebar.
7. Drag and drop the Content.ggpk file onto the command window.
8. Hit the left arrow key and add a 2, so it says Content.ggpk2

Hit enter and wait.

After it's done, just rename the files as suggested by Nagpur.
P2 (SSF): 85 Infern; 72 Warbr; 62 Demon
PoE character archive: view-thread/963707
SC: 95 97 96 100 95 96 97 98 95 97
HC: 96 (dead)
Last edited by unsane#5479 on Aug 22, 2013, 8:58:27 AM
6.8 -> 3.9 good stuff!, thanks :)

I blame playing since CB
Last edited by codraziel#7216 on Aug 22, 2013, 9:59:03 AM
That's pretty nice, shaved of almost 3 GB :)
Cheers OP, great stuff!

God shave the queen!
"If we don't end wars, wars will end us."
"
unsane wrote:

2. [...] If you don't have Run on Win7, google 'how to enable Run on win 7'.
i don't know what you would need that for. on all win7 i ever tried (i don't have one myself), it worked by just typing "cmd" in the start menu's search bar.
"
unsane wrote:

There's an even easier way to do this. Rewritten version:

1. Go to your PoE folder and put the defragmenter file there. (E:\Program Files (x86)\Grinding Gear Games\Path of Exile in my case).
2. Start-Run-Cmd. If you don't have Run on Win7, google 'how to enable Run on win 7'.
3. Drag and drop the ggpk_defragment.exe file onto the command window.
4. Hit spacebar.
5. Drag and drop the Content.ggpk file onto the command window.
6. Hit spacebar.
7. Drag and drop the Content.ggpk file onto the command window.
8. Hit the left arrow key and add a 2, so it says Content.ggpk2

Hit enter and wait.

After it's done, just rename the files as suggested by Nagpur.


Thx for that - worked perfectly for me as a Win7 user - Just hit start and type cmd in the search space.
The CMD window says: "This will likely take a while"

and has been sitting there for 10 mins is this normal?
"I became insane, with long intervals of horrible sanity." - Edgar Allan Poe
IGN: DarkenedSoui
Great job OP. 6.8g to 3.9 :) Playing since closed beta

Report Forum Post

Report Account:

Report Type

Additional Info