How to defrag your game files...

Discussion in 'Counter Strike Source & Zombie gameservers' started by | Black Hawk |, Aug 1, 2008.

  1. | Black Hawk |

    | Black Hawk | I

    Joined:
    May 10, 2008
    Messages:
    1,294
    Likes Received:
    13
    Well here is a tutorial about defraging your gcf files
    Read all of this before posting and flame me!!
    I know steam haves a defrag tool but its sh!t :p

    gcf files:
    gcf files (Game cache file), are the files that contains everything!!
    Its your cstrike but compressed!!!
    Its like an ISO file...

    When you take a look to your cstrike folder you will not find the official sounds, models, maps,...
    They are compressed in a gcf file...

    gcf files are huge!!! the gcf file of CSS is more that 1gb.

    Well if that file is not 100% on the right place your loading times will take longer because your hard disk need to search and work longer and harder...


    Before starting:
    Before we start you need to count how long the CSS loading time is now... (The screen: CSS is preparing to load...)

    Well before the defrag i was waiting 1min!!!!
    After 1min the preparing screen disappears,
    then i was waiting another min till CSS started up...

    After the defraging the preparing to load screen disappears after 5sec!!! And CSS started up after 10sec and i was ready to join a server...

    So i recommend you follow this tutorial!!!

    So i recommend you follow this tutorial!!!

    So i recommend you follow this tutorial!!!


    Getting started:
    Go to this site and download the file...
    i3D.net downloads...

    Extract the file where you wont and go into the folder called "bin".
    In that folder you will find these two files:
    HLExtract and HLLib.dll
    Copy the 2 file's


    Make it ready to run:
    Now go to your steam folder (default: c:\\Program Files\Steam)
    Open the folder called steamapps.
    This is the folder with your gcf's!!!

    Past the 2 files in here!

    Now we need to make a new file that helps you to defrag your gcf's.

    Open notepad and past this text in it:
    Code:
    @echo off
    for %%F in (*.gcf) do "HLExtract.exe" -f -p "%%F"
    pause
    
    Now go to file --> Save As...
    Save it with a name you wont (like defrag) but do not forget to put ".bat" after the name (or it wont work)

    Put the .bat file you made also in your steamapps folder.


    Last steps:
    We are almost ready to start the defrag BUT it is very important you read the following:

    ****************************

    Make sure you close steam before running it!!!
    Else your defrag isn't working because steam is still using the files...

    This can take a while!!! So you need time!!!
    He was buzy with defragging 1hour 15min.

    Do NOT stop the defrag!!!
    Stopping it will make the gcf that he is defragging maybe broken...

    ****************************

    The steam defrag is not 100% right, it haves bugs.
    This way is 100% successfully, i tried it myself and now my CSS is faster then ever.:thumbsup:

    Thx for reading ;)
     
    Last edited by a moderator: Aug 1, 2008
  2. a mere shadow

    a mere shadow No code

    Joined:
    Nov 15, 2007
    Messages:
    2,195
    Likes Received:
    1
    Nice tut, but i de-frag my whole pc once a week anyway :p
     
  3. Tehuti

    Tehuti Animaniac

    Joined:
    Oct 8, 2007
    Messages:
    4,440
    Likes Received:
    19
    And those who don't can use the defrag tool in Steam.
    Fragmentation 15% -> 1% when I used it on TF2.
     
  4. | Black Hawk |

    | Black Hawk | I

    Joined:
    May 10, 2008
    Messages:
    1,294
    Likes Received:
    13
    Well this TuT is for people who need to wait long till that stupid Preparing to load CSS screen is gone...

    People like me :p

    But it helps alot!!!

    ***********************
    After an update of a steam game or a steam update, defrag again!

    This will NOT take a long time, only the new update will be defraged...
    ***********************
     
  5. JohnnyB

    JohnnyB For the LULZ! Moderator

    Joined:
    Apr 20, 2008
    Messages:
    881
    Likes Received:
    14
    Hell, I'll give it a try, not that I really need to on my machine anyway ^^
     
  6. djhazzcake

    djhazzcake TheVeganDrummer

    Joined:
    Jun 15, 2008
    Messages:
    3,407
    Likes Received:
    9
    Thanks for this Black Hawk :)
    I did this. It didn't have a MASSIVE improvement. But it cut a couple of seconds off xD
     
  7. Vivi

    Vivi To be a girl or

    Joined:
    Mar 8, 2008
    Messages:
    1,130
    Likes Received:
    4
    Are we like talking about the system defrag that I get with Windows but just with these added files thingie in the CSS folder that we need to fiddle with?
     
  8. | Black Hawk |

    | Black Hawk | I

    Joined:
    May 10, 2008
    Messages:
    1,294
    Likes Received:
    13
    Not really, the program i used is a program that defrag's gcf's...
    The program defrags it so that steam will load it fast, and with no problem...

    It helped me very hard so thats why i posted it here to...
     
  9. - JS.

    - JS. 006

    Joined:
    Oct 16, 2007
    Messages:
    1,718
    Likes Received:
    188
    eh, thanks mate, did this and it's loading alot quicker now :D

    +Rep for you
     
  10. | Black Hawk |

    | Black Hawk | I

    Joined:
    May 10, 2008
    Messages:
    1,294
    Likes Received:
    13
    Thx for +rep ;)

    Don't forget to defrag again after an update...
    It will defrag only the game that updated...
     
  11. Vivi

    Vivi To be a girl or

    Joined:
    Mar 8, 2008
    Messages:
    1,130
    Likes Received:
    4
    Then I'm confused. Now I haven't followed the steps in your post but nowhere do I see an actual instruction on how to start any defrag, just some warnings at the end pre-de-frag.
     
  12. | Black Hawk |

    | Black Hawk | I

    Joined:
    May 10, 2008
    Messages:
    1,294
    Likes Received:
    13
    Well this file you need to open for start the defrag...
    I forgot saying that :p
     
  13. 5unz

    5unz Bonderful

    Joined:
    Feb 1, 2008
    Messages:
    937
    Likes Received:
    16
    from 45 to 17 seconds :D

    closes in an instant now.

    Thank you.
    :thumbsup:
     
  14. Snowy

    Snowy New Member

    Joined:
    Mar 25, 2008
    Messages:
    5,131
    Likes Received:
    3
    Could you please explain to me in Dutch lol? :)
     
  15. Eastsider

    Eastsider New Member

    Joined:
    May 6, 2008
    Messages:
    8,189
    Likes Received:
    17
    Lawl snowy, you're kidding me! :D?
     
  16. Snowy

    Snowy New Member

    Joined:
    Mar 25, 2008
    Messages:
    5,131
    Likes Received:
    3
    I just don't understand xD
     
  17. Eastsider

    Eastsider New Member

    Joined:
    May 6, 2008
    Messages:
    8,189
    Likes Received:
    17
    Dutch:

    Voor u van start gaat:
    Voordat we beginnen moet je rekenen hoe lang de CSS laden tijd is nu ... (Het scherm: CSS is de voorbereiding te laden ...)

    Ruim vóór de defrag zat ik 1 min tewachten!
    Na 1min de voorbereiding van het scherm verdwijnt,
    Daarna heb ik zitten te wachten tot een ander min CSS gestart ...

    Na de defraging de voorbereiding van het laden van het scherm verdwijnt na 5sec! En CSS gestart na 10sec en ik was klaar om toe te treden tot een server ...

    Dus ik raad u aan deze tutorial!

    Aan de slag:
    Ga naar deze site om het bestand downloaden ...
    i3D.net downloads ...

    Pak het bestand, en ga naar de map met de naam "bin".
    In deze map vindt u deze twee bestanden:
    HLExtract en HLLib.dll
    Kopieer deze twee.


    Maak het klaar voor gebruik:
    Ga nu naar je steam folder (standaard is dat c: \ \ Program Files \ Steam)
    Open de map met de naam steamapps.
    Dit is de map met uw GCF's!
    Plaats de 2 bestanden hierin!

    Nu moeten we een nieuw bestand maken, dat u helpt om uw defrag GCF's.

    Open kladblok en zet deze tekst erin:
    Code:

    Ga nu naar bestand -> Opslaan als ...
    Sla het op met een naam die u wilt (zoals defrag), maar vergeet niet om ". Bat" achter de naam (of het werkt niet)

    Plaats de .Bat bestand in uw steamapps map.


    Laatste stappen:
    We zijn bijna klaar om te beginnen met de defrag maar het is zeer belangrijk dat u de volgende documenten:

    ****************************

    Zorg ervoor dat je steam afsluit voordat je gaat spelen!
    Anders zal uw defrag niet werken, want steam is nog steeds bezig met behulp van de bestanden ...

    Dit kan enige tijd duren! Dus je hebt tijd nodig!
    Hij was bezig met defragging 1 uur en 15min.

    Stop de defrag niet!
    Stoppen zal waarschijnlijk de GCF dat hij is aan defragging kapot gaan. ...

    ****************************

    De steam defrag is niet 100% juist, heeft soms bugs.
    Op deze manier is 100% succes, Ik heb het geprobeerd bij mijzelf, en nu mijn CSS is sneller dan ooit.

    Thx voor het lezen.
     
  18. Eastsider

    Eastsider New Member

    Joined:
    May 6, 2008
    Messages:
    8,189
    Likes Received:
    17
    Woops..
    Translated the code aswell.
    Thats wrong, the code is

    Sorry! :D
     
  19. Zini

    Zini Wuslon

    Joined:
    Dec 15, 2007
    Messages:
    8
    Likes Received:
    0
    thank u very much...

    it's a great improvment...

    but one question...: i am like changing my skins (weapons, playermodels etc..etc...) daily...

    do i have to defrag ev'rytime i install a new skin/model...?
     
  20. | Black Hawk |

    | Black Hawk | I

    Joined:
    May 10, 2008
    Messages:
    1,294
    Likes Received:
    13
    No, because all the gcf's you have are all the official sh!t off valve. :p
    And the defrager only defrags that files...

    When u install a skin you do not need to defrag again ;)
     

Share This Page