Pakrat misses swamp model textures

pitto

L3: Member
Feb 17, 2009
109
73
Hi I'm trying 2 pakrat my map, and it is working fine except for the swamp pack models, any idea why this would be happening?
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Hi I'm trying 2 pakrat my map, and it is working fine except for the swamp pack models, any idea why this would be happening?

because pakrat never does model textures. end of story

You have to add them in manually using the add button.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
I've been trying to figure out a way to automate that kinda thing: I mean, the MDL files appear to have paths to the relevant VTFs inside them, but I'm not sure if there's any official documentation regarding the file format.

Edit: I may have found something useful with this code. The header looks plausible to the beginning of the MDL files.
 
Last edited:

pitto

L3: Member
Feb 17, 2009
109
73
Ok I'm still having problems with it

For adding the boat textures in pakrat I click add and navigate to:
tf/materials/models/props_swamp
and then add the files
row_boat_diffuse.vmt
row_boat_diffuse.vtf
row_boat_diffuse2.vmt
row_boat_diffuse2.vtf
row_boat_diffuse3.vmt
row_boat_diffuse3.vtf

Also pakrat automatically gets on the scan:
row_boat_ref.dx80.vtx
row_boat_ref.dx90.vtx
row_boat_ref.mdl
row_boat_ref.phy
row_boat_ref.sw.vtx
row_boat_ref.vvd

Any ideas? thanks
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
You only need the textures you're actually using, if you're using all three skins of the boat you'll need all three sets of textures

and keep the vtx mdl phy and vvd files, those ARE the model.
 

pitto

L3: Member
Feb 17, 2009
109
73
ok I found out what was going wrong ... I feel like an idiot
In the pakrat preferences I had the game root directory set as Team Fortress 2 instead of tf :facepalm:
(which lead to paths being tf/materials/models/props_swamp/row_boat_diffuse.vmt instead of materials/models/props_swamp/row_boat_diffuse.vmt etc)

Thanks to everyone for helping