Editing GCF files

  • Thread starter Thread starter n3XusSLO
  • Start date Start date
N

n3XusSLO

Guest
i want to edit some gcf files for hl2. im using gcfScrape(something like that) but this can only export files. is there a program that can replace an delete files form gcf?
 
why would you want to?

lets say you wanted to edit something in HL2:

1) use steam to "create" single player mod (this should basically copy some stuff that looks at the HL2 GCF's for content)
2) find what it is you want to replace (models, sounds, textures, whatever) and make a note of the exact location.
3) export the thing you want to edit
4) edit until you are happy
5) make sure the result is in the right format (mdl, vtf, vmt, wav, etc)
6) place in the "same" location in the mod folder, eg: yourmod/models/weapons/v_crowbar.mdl
7) run mod, experience your changes, hopefully.

sorry if thats not very accurate to what you want to do. Maybe you could say what you're trying to do?
 
well i never modded hl2 before so i though "hell, ill just edit the gcf files". i later found out that all i need to do is copy the files to eg. hl2/models. ive already replaced a crowbar model and it works. :cheers: thanks for the help anyway :cheese:
 
To clarify what n3XusSLO said, you don't need to make your own mod. The Source engine will override anything in the GCF files if there is something with the same name in the relevant folder.

For instance, say you had a file in the .gcf called:
gcf file said:
hl2/models/birdo.mdl
and you wanted to edit it. All you'd need to do is export that file to the same path in your hl2 folder.
half-life2 folder said:
hl2/models/birdo.mdl

As long as the paths and names are the same it will use the half-life 2 folders content, before checking the gcf file.
 
Back
Top