Jump to content

How to get Valve's props out of package?


Recommended Posts

Posted

Hey guys! I want to use Valves model tractor01.mdl and I want to give it another texture. I think the only way it's possible to do is to take the whole .mdl and texturefile from Valves packed form and then customize it. Any ideas how to do this? Or any better ways?

Posted

You first have to extract the files from the VPK archives in your /csgo folder (using GCFScape for example). Open the file pak01_dir.vpk with GCFScape, you'll recognise a folder tree similar to what is in your /csgo folder, follow the folders according to where hammer tells you where the model is.

For your example of model (tractor01.mdl), you'll find :

- In the folder models/props_vehicle, the files :

  • tractor01.dx90.vtx
  • tractor01.mdl
  • tractor01.phy
  • tractor01.vtx
  • vvd

- In the folder materials/models/props_vehicle, the files :

  • tractor01.vmt
  • tractor01.vtf
  • tractor01_ref.vtf

 

Extract all of them (with a drag and drop) in folders with the same names in your csgo directory (follow the exact same folder tree as in the VPKs).

 

So, now you have the files of the compiled model, but you will not be able to just edit it (neither the geometry or the texture), firstly because it's a compiled model and secondly, if you change the texture, the one from the VPK will be loaded first anyway, so your own texture won't work.

You have to decompile the model. Squad gave me recently a very nice software to do that : Crowbar. It will give you all the files you need : 2 SMD files (one for the geometry and another one for the collision model). It will also give you other things that can be useful (the .qc file to compile the model once again and animation files if needed).

 

If you just want to change the texture, you'll need to recompile the model, with a different name and/or in a different folder, using a texture with a different name and/or different folder.

 

The question now is : do you know 3D modeling or not, that is the question !

 

 

To be continued ...

Posted

Vinneri if you could please put the steps you used in the thread so anyone searching the forum can find them.

 

you have no idea how frustrating it is searching for help for every thread to end with 

 

'NVM sorted myself'  :lol:

Posted

I don't know 3d modeling and I used GCFscape to get those out. Then I think I made mistake. I exported .vtf texture to .tga and customized it. Then I imported it back with new name and new folder etc. I can now find the model in my new folder by hammer, but it still has normal texture. So one part right, something wrong.

Posted

I don't know 3d modeling and I used GCFscape to get those out. Then I think I made mistake. I exported .vtf texture to .tga and customized it. Then I imported it back with new name and new folder etc. I can now find the model in my new folder by hammer, but it still has normal texture. So one part right, something wrong.

 

leplubodeslapin explained perfectly what you need to do. It won't work if you don't decompile, give it a different material name, rename the model and recompile.

Posted (edited)

When I try to compile with Crowbar, it says 

 

Crowbar ERROR: Missing file: C:Program Files (x86)SteamsteamappscommonCounter-Strike Global Offensivebinstudiomdl.exe
 
It obviously missing but..?
 
E: I needed to change setting from Crowbar, so that the path is correct. Now it worked!
Edited by Vinneri

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...