Getting SFM models into the game

Discussion in 'Mapping Questions & Discussion' started by Pocket, Jul 3, 2014.

  1. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    So here's the deal. I don't like the trashcan model that came in the Bulletcrops pack. And I found another, better-looking one in the Source Filmmaker workshop. Copypasting the files from where they reside in SFM to the obvious location in the /tf/ folder worked... but only in Hammer. In-game, even on the same computer, they just don't show up at all. Not even a flashing red ERROR where they ought to be; zippo.

    Is there something I'm missing here? The only difference is that in SFM they go under /workshop/models/ instead of /tf/models/.
     
  2. Micnax

    aa Micnax I maek map

    Messages:
    2,065
    Positive Ratings:
    1,522
    Might be a very simple mistake... but check the model if it's static or dynamic. A dynamic-only prop won't show if it's prop_static.
     
  3. xzzy

    aa xzzy

    Messages:
    815
    Positive Ratings:
    500
    That would give a console error in game, so check there. It might show up in the compile log too, I can't remember for sure. I've had no problems dragging SFM props into TF2 last time I tried, try loading it in HLMV and see if the textures and everything loads okay.

    Remember that the directory structure matters, it has to have the same layout under materials and models as it did under the SFM tree.

    It's also possible the model was built with a newer version number than TF2 supports. I would think you'd get an error for that but am not sure where.
     
  4. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    This seems the most likely candidate, since Hammer is likely to have received "engine" updates that the games themselves don't get. I'm not getting any errors in the TF2 console, though.

    I'll see what happens when I try to pack the model and material files into my map.

    EDIT: Nothing, is what.
     
    Last edited: Jul 3, 2014
  5. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,920
    False. props without $staticprop in the qc are removed at compile time so the only error would be in vbsp's log.
     
    • Thanks Thanks x 1
  6. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    Yep, the lack of $staticprop was the culprit. Just as well; it turns out that it also lacks a collision model. So I'm going to try to get in touch with the creator and see if they'd be willing to produce a game version and post it here.