Decompiling Source models: Difference between revisions
(Created page with "We're gonna start with making a Gmod model. Even if you only want to make a L4D2 model, we're gonna start with Gmod for these reasons: * Learn how to decompile stuff * Learn how QC files are built * Faster and easier to reload the game when model is rebuilt * Use Gmod's instant texture reloading to tweak shaders") |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
We're gonna start with making a Gmod model. Even if you only want to make a L4D2 model, we' | We're gonna start with making a Gmod model. Even if you only want to make a L4D2 model, we'll use Gmod for these reasons: | ||
* Learn how to decompile stuff | * Learn how to decompile stuff | ||
| Line 5: | Line 5: | ||
* Faster and easier to reload the game when model is rebuilt | * Faster and easier to reload the game when model is rebuilt | ||
* Use Gmod's instant texture reloading to tweak shaders | * Use Gmod's instant texture reloading to tweak shaders | ||
Tools: | |||
* GFCScape | |||
* Crowbar | |||
* VTFEdit Reloaded | |||
Steps: | |||
1) Go to your Gmod install directory. G:\SteamLibrary\steamapps\common\GarrysMod | |||
2) Open garrysmod/garrysmod_dir.vpk with GFCScape. | |||
3) Navigate to models/player/group01. Extract the model files you want to replace. Since we are replacing Isabelle, we will extract female_01.mdl to a folder. | |||
[[File:GCFScape u6y25IA8Aq.png]] | |||
4) Open Crowbar. Go to the Decompile tab. Drag the mdl file into the first file select box. Configure the settings to your liking, but I personally keep things set to the screenshot below. | |||
[[File:Crowbar efC3uZyz8V.png]] | |||
5) Decompile. | |||
6) Navigate to the folder you extracted files to. You should see the following files: | |||
[[File:Explorer Q1bA2zeRUz.png]] | |||
==What just happened?== | |||
We have decompiled the Gmod female_01 citizen playermodel to its raw source files. | |||
female_01.qc is the main file we will be editing. | |||
The .qci files are include files; they also contain code that we will have to analyze. | |||
The .smd files are model files; we will be importing one of these into Blender in the next step. | |||
Latest revision as of 20:46, 31 May 2025
We're gonna start with making a Gmod model. Even if you only want to make a L4D2 model, we'll use Gmod for these reasons:
- Learn how to decompile stuff
- Learn how QC files are built
- Faster and easier to reload the game when model is rebuilt
- Use Gmod's instant texture reloading to tweak shaders
Tools:
- GFCScape
- Crowbar
- VTFEdit Reloaded
Steps:
1) Go to your Gmod install directory. G:\SteamLibrary\steamapps\common\GarrysMod
2) Open garrysmod/garrysmod_dir.vpk with GFCScape.
3) Navigate to models/player/group01. Extract the model files you want to replace. Since we are replacing Isabelle, we will extract female_01.mdl to a folder.
4) Open Crowbar. Go to the Decompile tab. Drag the mdl file into the first file select box. Configure the settings to your liking, but I personally keep things set to the screenshot below.
5) Decompile.
6) Navigate to the folder you extracted files to. You should see the following files:
What just happened?
We have decompiled the Gmod female_01 citizen playermodel to its raw source files.
female_01.qc is the main file we will be editing.
The .qci files are include files; they also contain code that we will have to analyze.
The .smd files are model files; we will be importing one of these into Blender in the next step.


