Getting SFM models into the game

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,696
2,580
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/.
 

xzzy

aa
Jan 30, 2010
815
531
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.

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.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,696
2,580
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.
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:

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
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.

False. props without $staticprop in the qc are removed at compile time so the only error would be in vbsp's log.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,696
2,580
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.