Pakrat misses swamp model textures

Discussion in 'Mapping Questions & Discussion' started by pitto, Oct 26, 2009.

  1. pitto

    pitto L3: Member

    Messages:
    109
    Positive Ratings:
    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?
     
  2. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,739
    because pakrat never does model textures. end of story

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

    pitto L3: Member

    Messages:
    109
    Positive Ratings:
    73
    ah thanks youme, I didn't know that (first time using custom models)
     
  4. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    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: Oct 26, 2009
  5. pitto

    pitto L3: Member

    Messages:
    109
    Positive Ratings:
    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
     
  6. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,739
    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.
     
  7. pitto

    pitto L3: Member

    Messages:
    109
    Positive Ratings:
    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