Certain custom models fail to pakrat

tovilovan

L6: Sharp Member
Jul 23, 2008
391
104
When my map is compiled, everything seems to work, except one thing: the skin of the buttress_tree_small (or whatever its name is) purple-black checkered. All the other custom content is working, and neither pakrat or packbsp shows any errors. I've also tried amanually adding the files to the pak, but it didn't help. The file isn't missing, it shows up correctly on my computer but not on those who haven't got the swamp pack installed.

Any help you can give me?
 

Icarus

aa
Sep 10, 2008
2,245
1,210
Pakrat won't hold your hand. You need to look through it and manually add in any missing files.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
PackBSP will eventually hold you hand ;)

The problem is that packing the MDL file is not sufficient, because the skins themselves are not stored inside the model. (Although I can see why it would be easy to assume so.)

You also need to pack the materials the model uses as separate line-items. Ex:

  • models/mymodel.mdl
  • models/mymodel.phy
  • models/mymodel.vvd
  • models/mymodel.sw.vtx
  • models/mymodel.dx80.vtx
  • models/mymodel.dx90.vtx
  • materials/models/mymodelskinred.vmt
  • materials/models/mymodelskinred.vtf
  • materials/models/mymodelskinorange.vmt
  • materials/models/mymodelskinorange.vtf
 
Last edited: