| .: Hostitron:Source >> Model Conversion Tutorial |
Prologue
Just before anyone starts to flame this tutorial, I don't have alot of time at the moment so if anyone would like to re-write this, or add to it, then don't hesitate to contact me.
What do I need?
To be able to convert models to be used with the Hostitron, you will need the following..
For this example I will be using the Elexis Model by Predator
Before you continue..
Due to the latest beta valve engine, you must use this workaround to get the SDK Tools to work with CS:S content.
Ok, where do I start?
The difference between models and skins is that skins are applied to the current models, and do not alter the actual contours of the models, where as a model changes everything.
You can tell which is which by the content of the zip/rar file. If it is all vmt and vtf files then what you have is only a skin and cannot be converted.
Models should have six actual model files, and can have anything from 0 to 100 material files.
- Start by making a new folder on your C: drive, call it MdlTmp for example.
- Extract the contents of your downloaded model to this folder keeping the folder structure intact.
- Open MDLDecompiler from its location, and select the model you wish to convert. In this case its 'C:\MdlTmp\models\Characters\Hostage_01.mdl'
- Set the Ouput Directory in MdlDecompiler to C:\MdlTmp and hit Extract.
- Once its finished, it should leave you with some .smd files and a mdldecompiler.qc file. All we are interested in is the .qc file.
- Open this file in your favourite text editor and find the line containing $modelname.
You need to rename this so that the model name and folder are unique.
- Change this to be $modelname "hostitron/sin/elexis.mdl".
This will compile the model to cstrike/models/hostitron/sin/elexis.mdl.
- Now, if you browse to 'C:\MdlTmp\materials\models\characters\elexis\' you will see all kinds of materials.
You need to move these to your cstrike/materials folder, they can be left in the elexis sub folder but its a better practice to move them to the cstrike/materials/models/hostitron/elexis folder to save confusion.
- You need to open each of the vmt files in the materials folder and change "$basetexture" "models/Characters/Elexis/..." to "$basetexture" "models/hostitron/elexis/..."
- Now find the line containing '$cdmaterials' in the .qc file.
- Change this to reflect where you placed them inside your cstrike/materials folder.
Ex:$cdmaterials "models\hostitron\elexis\"
- Now you're ready to compile. To compile, enter this at the command prompt..
"E:\Path\To\Steam\SteamApps\user@domain.com\sourcesdk\bin\studiomdl.exe" C:\Models\mdldecompiler.qc
- If all goes well it should compile the model and place it as E:\Path\To\Steam\SteamApps\user@domain.com\Counter-Strike Source\cstrike\models\hostitron\sin\elexis.mdl
- To make sure the conversion worked, browse to your 'E:\Path\To\Steam\SteamApps\user@domain.com\sourcesdk\bin' directory and run hlmv.exe. Select the new model and it should display it with textures.
- Lastly you need to create a cfg file so the hostitron knows to load your model. Follow the same pattern as the original model packs and you should be fine.
|
|