YOU WILL NEED.
MDLdecompiler
Download MDLdecompiler Here
Get the MDLdecompiler, not studiocompiler.
GCFscape
Next, you will need a skin. You can get default CSS skins in your GCF files, you will need GCFscape.Here
VTF edittting
You will also need a program to edit VTFs VTFEDIT or paintdotnet+vtf plugin works.
[vtfedit]Here
[Paint.net]Here
[PDN's VTF editplugin Here
I use paintdotnet for all my skinning, PDN supports VTF and all sorts of cool types of compressions and formats of VTF.
A compiler
[YOU MUST HAVE THE SDK INSTALLED. Its free, its in the tools section of your steam client]
I use the SDK compiler for my models, its a batch file.
Code:
"Z:\Program Files\Steam\SteamApps\Valve\sourcesdk\bin\ep1\bin\studiomdl.exe" D:\SDKR\akvalier*/css_models\mdldecompiler
pause
I suggest you create a folder in your STEAMapps/yourname folder.
Entitle it SDKR, and have two folder inside of it, Named Decompile and Recompile.
[code] hierchy Steam/steamapps/yourname/ SDKR (two folders in here, decompile and recompile[code]
Create a batch file, (open notepad, save a txt document as a .bat)
Place this .bat in your decompile directory.
The Code
IF you are using C as your main, all you will have to do is add your accountname.
Code:
"C:\Program Files\Steam\SteamApps\yourname\sourcesdk\bin\ep1\bin\studiomdl.exe" C:\Program Files\Steam\SteamApps\yourname\SDKR\decompile
pause
The works.
Using GCFscape (its siple, open it, navigate to the GCF with your mdls in it.. Counterstrikesource GCF for css; Teamfortress GCF fort teamfortess, etc
Or you can download a model from whereever.
Open MDLdecompiler.
* select the folder decompile (steamapps/yourname/SDKR/decompile) as the output directory.
Paste the path to the models .MDL in the top line, and click extract/decompile
Navigate to the decompile directory.
Open the QC with notepad, OR notepadd++ or context. I use context, as its a programmers notepad.
Edit the model name
Code:
$modelname "player/khaotik/boomgaming/cvipgi/ct_gign.mdl"
To your own skin path
*NOTE. Anything not in players/models will show up as errors unless the paths are added to the whitelist if server is running pure 1 or 2*
Edit tis line to show the path to your materials
Code:
$cdmaterials "models\player/khaotik/boomgaming/cvipgi\"
*NOTE. cdmaterials denotes the materials directory, and cdmodelsname denotes the models folder.
*Note2*You will have to place the VTF and VTM's in the models materials folder, stdlmdl doesnt create these.
If you are working in SDKR/decompile, once you have the paths corrected,
add this set of lines right above the "collision joints*
Code:
$bonemerge "ValveBiped.Bip01_Pelvis"
$bonemerge "ValveBiped.Bip01_L_Thigh"
$bonemerge "ValveBiped.Bip01_L_Foot"
$bonemerge "ValveBiped.Bip01_L_Calf"
$bonemerge "ValveBiped.Bip01_R_Thigh"
$bonemerge "ValveBiped.Bip01_R_Foot"
$bonemerge "ValveBiped.Bip01_R_Calf"
$bonemerge "ValveBiped.Bip01_L_Toe0"
$bonemerge "ValveBiped.Bip01_R_Toe0"
$bonemerge "ValveBiped.Bip01_Spine"
$bonemerge "ValveBiped.Bip01_Spine2"
$bonemerge "ValveBiped.Bip01_Spine3"
$bonemerge "ValveBiped.Bip01_Spine4"
$bonemerge "ValveBiped.Bip01_Neck1"
$bonemerge "ValveBiped.Bip01_Head1"
$bonemerge "ValveBiped.Bip01_L_Clavicle"
$bonemerge "ValveBiped.Bip01_L_UpperArm"
$bonemerge "ValveBiped.Bip01_L_Hand"
$bonemerge "ValveBiped.Bip01_L_Forearm"
$bonemerge "ValveBiped.Bip01_R_Clavicle"
$bonemerge "ValveBiped.Bip01_R_UpperArm"
$bonemerge "ValveBiped.Bip01_R_Hand"
$bonemerge "ValveBiped.Bip01_R_Forearm"
$bonemerge "ValveBiped.weapon_bone"
$bonemerge "ValveBiped.weapon_bone_Clip"
Save
select your bat file and let it run.
To edit the materials.
First open the VTM, and correct the paths to the materials.
Next open the VTF's in paint,net or VTFedit and modify them to your liking.
Save.
Your asking, what about recompile?
The folder recompile is for all of your tools.
\Anyway, if you followedeverything correctly, you can now open your model in HLMV.
*I give nat permission to edit this post to fix any errors i might have left.*
Originally Posted by
DoT
Nat, if you could make a guide or teach me how to decompile and port models it would be helpful :3
Also how to just re-skin decompiled models (Adding request logos etc. to requests
Because my mapping skills are way too shitty for doing this.
I can't even get studio compiler to work properly.
And don't even ask me to script...
Bookmarks