Decompiling Source models: Difference between revisions

From Serious Saturdays
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 32: Line 32:


[[File:Explorer Q1bA2zeRUz.png]]
[[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.