Garry's Mod

Garry's Mod

Not enough ratings
decompilling and extracting source engine files
By Weathers
in this guide i'll show you how to decompile and extract source engine files for stuff like modding, creating addons and source engine game making.
and how to turn any normal model file into a source game usable model file.
the types of files source engine use:
**vpk this stores the games resources in one or more files.
**smd you need this to make the mdl.
**qc this tells the compiller or decompiller what to do and hoe to make it.
**mdl this is the end model file used in source engine.

   
Award
Favorite
Favorited
Unfavorite
tools needed
the modders best tool is blender a free open souce moddling tool (and some other things) .
heres the download https://www.blender.org/download/

to import and export smd'sinto blender. smd's are the bare model files used to make the mdl file.
heres the download http://steamreview.org/BlenderSourceTools/ ill soon make a guide on how to install it.

needed to compille and decompille the mdl files my personal favorite and most popular is crowbar
heres the download https://steamcommunity.com/groups/CrowbarTool i'll make a guide to use full guide to use it soon.

to open the vpk files (valves resource files) you'll need GCFScape to open and make them
heres the download http://nemesis.thewavelength.net/?p=26 i'll make a guide to i guess maybe


decompilling valves source engine game resource files
if you downloaded all the files you'll get GCFScape this lets you open a wide varity of valves game resource files including vpk files the most used resource file.
first find the file you want
heres the direatory of all your games
C:\Program Files (x86)\Steam\steamapps\common\ it's normaly in here
and a list of source engine games these are the main valve source games there are others that use it too.

Half-Life 2 (2004)
Half-Life 2: Deathmatch (2004)
Half-Life: Source (2004)
Counter-Strike: Source (2004)
Day of Defeat: Source (2005)
Half-Life 2: Lost Coast (2005)
Half-Life Deathmatch: Source (2006)
Half-Life 2: Episode One (2006)
Half-Life 2: Episode Two (2007)
Team Fortress 2 (2007)
Portal (2007)
Left 4 Dead (2008)
Left 4 Dead 2 (2009)
Alien Swarm (2010)
Portal 2 (2011)
Counter-Strike: Global Offensive (2012)

full list here https://en.wikipedia.org/wiki/Source_(game_engine)

find the game that you want models from, the open it most of the games have another file same name as the games name inside so open it and scroll down till you see something like pak01_01.vpk, hl2_whateveritsayshere_000.vpk, garrysmod_000.vpk or something else like that when you find them loom for whateveritsays_dir.vpk thats the main file to open them with GCFScape once that open theres all the games resource files.
opening model files
so once you have found mdl files in GCFScape right click and them extract it to your folder of choice one extracted open crowbar. once opeed go to the decompile tab you'll see the part to put the mdl file in, then click the browse box go to place you put the mdl and open it. them the bar under the mdl open box youy can choice where to extract the file to ( sub folder meansthe place where you put the mdl, work folder means it will be in your documents folder) them just click decompile

so where ever you decompiled the file to then go and open the folder there you will find a smd file. open up blender with the source import and export addon installed then go to the file tab and down to import and you will see source engine (.smd, .vta, .dms, .qc) you might have to scroll down to see it. then click on it then go to the place where the decompiled file is and open whatevertheis.smd and there you now have the the games model and you export it as a obj now
if you need any help
please if you need any help commment on my profile why the add me then message me.
2 Comments
dsaS May 25, 2023 @ 10:41am 
Roxtor May 18, 2023 @ 7:26am 
I didn't understand what you needed to do as soon as you said "find the game that you want models from, the open it most of the games have another file", because files aren't in the game's folder