Search
Username:
Password:

Register or Reset Password

SUBMISSIONS
Counter Strike
   New Maps
   New Tutorials
   New Skins
   New GUI's
   New Sounds
   New Threads
Other
   Media
   Gamers
   Clans
   Studios
Compiling Models Using Custom Skins
Difficulty: Beginner
Category: CS:S > CompilingAuthor(s): Spearmeat

Updated Again!!!



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 agoTags: server side, models, compiling, custom, skins
Feedback (31)
Page of 4   1 2 3 4 Next Page
Spearmeat .
Bacon!Y2M
Posted 7 days ago
Posted by BANANARAMA

When i install the compiler, it doesn't appear in my bin folder



For Studio Compiler, use the browse key during installation to find your bin folder. ie.
C:\Program Files\Valve\Steam\SteamApps\YourAccount\sourcesdk\bin\ep1\bin folder.

That is the same folder you must put the extracted mdldecompiler.exe application also.


The default location for installing the StudioCompiler isn't correct, that is why there is a browse button there.
BANANARAMA .
I do userpics/sigs/banners/flags pm meY2M
Posted 8 days ago
When i install the compiler, it doesn't appear in my bin folder
Spearmeat .
Bacon!Y2M
Posted 1 month ago
Posted by BrainZ

Oh nevermind my problem. I already fixed it. Nice update anyways.



Thanks man, I made a PDF file of it with updated pictures but when I went to upload it there was no option to upload it for Tutorials... LawL, I worked a while on it too.
.
Wears glasses now.Y2M
Posted 1 month ago
Oh nevermind my problem. I already fixed it. Nice update anyways.
KevlarFox .
BananiteY2M
Posted 1 month ago
Pros: Very detailed
Cons: Hard, but thats inevidable when compiling server side models.
Notes: Overall a very nice tutorial, well done. Approved.
- Bananite
.
Wears glasses now.Y2M
Posted 4 months ago
I'm getting this error. And I'm clueless!

C:\Compiles>"C:\Program Files\Steam\SteamApps\pictizm\sourcesdk\bin\ep1\bin\stud
iomdl.exe" C:\Compiles\mdldecompiler.qc
Warning: falling back to auto detection of vproject directory.
qdir: "c:\compiles\"
gamedir: "C:\Compiles\"
g_path: "mdldecompiler"
Working on "mdldecompiler.qc"
SMD MODEL C:\Compiles/knife_t_reference.smd
SMD MODEL C:\Compiles/hands_reference.smd
SMD MODEL C:\Compiles/idle.smd
SMD MODEL C:\Compiles/draw.smd
SMD MODEL C:\Compiles/stab.smd
SMD MODEL C:\Compiles/stab_miss.smd
SMD MODEL C:\Compiles/midslash1.smd
SMD MODEL C:\Compiles/midslash2.smd
ERROR: cannot find bone v_weapon.knife_Parent for bbox
ERROR: Aborted Processing on 'weapons\v_knife_t.mdl'

C:\Compiles>pause
Press any key to continue . . .
tincan91 .
WatermelonacY2M
Posted 4 months ago
I LOVE THIS GUY!!!!! FREE MONIES ON WOOF SERVER :))))))))))))))))))))))))
- Watermelonac
tincan91 .
WatermelonacY2M
Posted 4 months ago
I love the tut. worked really well the first time but in order for me to make the skin server side i need to put it in ics folder. now when i make the skin on the model looks like the default one. help plz! add me on xfire plz. scrapingwatermelon <===== xfire
- Watermelonac
Spearmeat .
Bacon!Y2M
Posted 5 months ago
Posted by 4SkinRanger

I did it again all by myself and it worked ^^ hooray


Thats great, glad I could help you out.
4SkinRanger .
BananiteY2M
Posted 5 months ago
I did it again all by myself and it worked ^^ hooray
- Bananite
Page of 4   1 2 3 4 Next Page
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.
Assessment
The community's verdict.
User Rating [+]
9.9/10
bScore
9.9/10
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.
Stamps
This Tutorial in a nutshell...
Handy & Helpful
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.






Added by...
Ranked 1278th ( 1) with 1,315 points.

[+] Donate
Vote for Submitter
Like this tut? Vote Spearmeat . for one or more monthly awards.
You must login or register to access this!
Related Tutorials