Search |
| |
|
|
Compiling Models Using Custom Skins Difficulty: Beginner |
| Category: CS:S > Compiling | Author(s): Spearmeat |

Spearmeat’s Tutorial for Compiling Models Using Custom Skins

How to use custom skins and recompile them for use as server side models, for use
as admin or public custom models in skin choosing programs like mani-admin-plugin.
What you will need for this tutorial:
1. Cannonfodders MDLDecompiler Here
2. Cannonfodders StudioCompiler Here
3. Nem’s Tools GCFScape Here
4. Valve’s Source SDK, instructions Here
Put both of Cannonfodders applications into your SDK folder like this.
(Hard drive letter):\Program Files\Valve\Steam\SteamApps\(your steam account)\sourcesdk\bin\ep1\bin\
Install GCFScape to your computer.
Start Steam and then start your Source SDK.
I don’t have the Orange Box so on the Source SDK menu, In the drop down boxes
I have selected ‘Half-Life 2 Episode 1' and ‘Counter-Strike Source’. After you’ve
got your selections made you can close the SDK. Your settings will be
remembered after it’s closed.
Lets get started:
You need to find a custom skin that you would like to compile onto your model.
I used:
Custom Reskin: by Battle Cat Here
Custom Orange Transparent Glasses: by v137pr1d3 Here
Urban model: Valve and Turtle Rock Studios
Place the skin .vtf files that you want to use in your server side model into:
\Steam\SteamApps\USERNAME\counter-strike source\cstrike\materials\models\player\YourName\custom_model_name_and_version_number
Mine was placed here:
\Steam\SteamApps\USERNAME\counter-strike source\cstrike\materials\models\player\spearmeat\spearmeat_urban_v2
Note: If you ever update the model with custom glass or because of a Valve update,
the version should be changed so clients will download the newer version.
Most Skins don't come with .vmt files so you will have to extract them from the
GCF files using GCFScape.
Run GCFScape then click File > Open and browse to your
(Hard drive letter):\Program Files\Valve\Steam\SteamApps\ folder and open the file called:
counter-strike source shared.gcf
Once open (as it pertains to my example) go to:
root\cstrike\materials\models\player\ct_urban
folder and extract the .vmt files from there to the same folder you have the custom
skins you are going to compile. This is because the custom skin I used was for the
ct_urban model.
Now open the .vmt files you have just extracted and adjust so it points to your .vtf
files. You can use Notepad to open your .vmt files.
Screenshot 1.
This is what the original ct_urban.vmt file is set up like.
Screenshot 2.
The custom ct_urban.vmt file should look like this.
Now as you know I used v137pr1d3's custom orange transparent glass. So I had to change the ct_urban glass.vmt file to point at my custom skin file also.
Screenshot 3.
Here's how the original ct_urban_glass.vmt file looks:
Now to point it to the custom glass skin file that I’m going to compile.
Screenshot 4.
The custom ct_urban_glass.vmt file should look like this:
I did not change the folder setting for ct_urban_glass_spec because there was no custom .vtf file for that, if there were I would have.
Create your modding folder:
For me I created a folder in D: drive called modding and looked like this:
D:\modding
Inside I had a folder called decompiled.
D:\modding\decompiled
Inside the modding folder create shortcuts to these files:
GameInfo.txt
Which can be found in:
driveletter:\Program Files\Valve\Steam\SteamApps\your_email\counter-strike source\cstrike folder.
hlmv.exe (which is your half-life model viewer)
Which can be found in:
driveletter:\Program Files\Valve\Steam\SteamApps\your_email\sourcesdk\bin\ep1\bin folder.
mdldecompiler.exe (which is your model decompiler)
Which can be found in:
driveletter:\Program Files\Valve\Steam\SteamApps\your_email\sourcesdk\bin\ep1\bin folder.
StudioCompiler.exe (which is your model compiler)
Which can be found in:
driveletter:\Program Files\Valve\Steam\SteamApps\your_email\sourcesdk\bin\ep1\bin folder.
Decompiling and Compiling your model:
Now before you can decompile your model use the GameInfo.txt shortcut created
in your modding folder and delete the word ‘Tools’
as I will show you here:
Screenshot 5.
Now save the GameInfo.txt file.
To decompile your model, use the mdldecompiler.exe shorcut in your modding
folder, and input folder options like this:
Screenshot 6.
Press the Extract button and it will dump your model files into your
D:\modding\decompiled folder.
Go to the D:\modding\decompiled folder and open with notepad the
mdldecompiler.qc file.
Change the line:
$modelname "player/ct_urban.mdl"
to:
$modelname "player/spearmeat/spearmeat_urban_v2/ct_urban.mdl"
Then find the line:
$cdmaterials "models\player\ct_urban\"
and type above it:
$cdmaterials "models\player\spearmeat\spearmeat_urban_v2\"
and type below it: ( this removes those red error lines in console)
$bonemerge "ValveBiped.Bip01_R_Hand"
$bonemerge "ValveBiped.Bip01_L_Hand"
$bonemerge "ValveBiped.weapon_bone"
$bonemerge "ValveBiped.weapon_bone_Clip"
and save the file.
To compile your model with your custom skin use the StudioCompiler.exe shortcut
in your modding folder.
Once the application is running, click the button ‘Compile w/ Existing QC’ and use
the small window below it to browse to the mdldecompiler.qc file you’ve just
finished adjusting.
Click on the compile button just below the small window. If you get an error saying you cannot
write to the specified file, you have to go into your
‘driveletter:\Program Files\Valve\Steam\SteamApps\your_email\counterstrike source\cstrike\models\player\’
folder and create the folders:
‘spearmeat\spearmeat_urban_v2\’
there before you click the compile button.
Once the compiling is finished you have to open your GameInfo.txt using your
shortcut in the modding folder and replace the ‘Tools’ that you removed earlier.
Now use the hlmv.exe shortcut to open your Model Viewer. Once the application
is running you go to File > Load Model and browse to
‘player\spearmeat\spearmeat_urban_v2' folder and double-click the model file
there to view your newly skinned model.
Now you can set up your admin program on your server and use the custom model
for Admins or whatever.
Don’t forget to assess and comment on the tutorial.
Go Here to see the finished product.
Enjoy!! |
| Added: 11 months ago | Tags: server side, models, compiling, custom, skins |
 Add Feedback Feedback Instructions: Tell me of any errors you encounter so I can edit this tutorial and add work arounds. You cannot post yet!Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop. To post in this submission register or login. |
 You cannot assess yet!Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure. To vote on this submission register or login. This Tutorial in a nutshell... Handy & Helpful 3 x Handy 3 x Helpful 2 x Detailed 1 x Informative 1 x Useful You cannot stamp yet!Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login. Want more? Find related tuts. |
|
|