Model not showing in game, why?

javierdl

2009-10-21 06:05:46

Hi guys, this is my first post here :)
I am somewhat new to maps making.

The problem:
I can load my model in ModelViewer & Hammer, but it doesn't load/show when I open the map. What are the typical reasons for this?
I'm using GUIStudioMdl 2.2 to compile.
This is for HL2DM.
This is my qc file, for whatever it's worth:

-------------------------------------------
$modelname /custom_models/concave_test_02c.mdl
$cdmaterials "models/custom_models/"
$scale 1
$staticprop
$surfaceprop "Wood_Furniture"
$body studio "concave_test_02c.smd"
$sequence idle "concave_test_02c_idle.smd" fps 1

$collisionmodel "concave_test_02c_col.smd"
{
$mass 10
}

$keyvalues
{
"prop_data"
{
"base" "Wood.Large"
}
}

Thanks in advance guys,

JDL

boshed

2009-10-21 09:44:21

Welcome to the U!

Since it's showing fine in model viewer and hammer that suggests the problem is not with the model itself.

Using the wrong entity type for a model can cause it to vanish ingame, for example using prop_physics on a model that can only be static or vice versa.

You can check allowed prop types by selecting your model in hammer's model viewer then choosing the info tab.

javierdl

2009-10-21 10:01:08

Thank you so much for the info boshed :)
I'll look into that then.

JDL

javierdl

2009-10-21 21:25:36

Ok I've had the chance to open hlmv and see what you were saying...
except there's nothing of importance different between the pumpkin that loads in the game and the table that doesn't. Except for the fact that the pumpkin uses "Body" for the bodypart dropdown menu in the Model tab, whereas the table uses "studio" (don't know why...I didn't know studio was a bodypart). Which corresponds to the $body command in the qc file.

Here you can see the pumpking and the table, only the former shows in game.
Image

I also compared their ImageHammer Obj Properties window. They are both "prop_physics", and every single parameter is the same.
I am following this tutorial as a guideline, and although I have read it many times now, I still can't spot anything I've missed and/or done wrong :(

Any ideas?

JDL

boshed

2009-10-21 22:40:00

Wahey, another blender user. There's a few of us about on here.
javierdl wrote:Ok I've had the chance to open hlmv and see what you were saying...
Just to confirm, I meant the model browser in hammer as that will show you tickboxes for what's valid for that model.

Thinking about it the easy way is just add your model to the map 3 times, one prop_physics, one prop static and one prop_dynamic and see if any/none of those show up ingame. If that doesn't give any clue then we need to look at something else.

Also check your console ingame for any red errors that are occurring related to models.

Nice pumpkin btw, thought about making the interior texture glow like its candle lit? :)

javierdl

2009-10-21 22:58:57

model browser in hammer? If it's not the Object Properties window (the one showing in my image), then could you tell me exactly where to find it? I have browsed every single menu in Hammer without avail :(

I'll follow your suggestions in the meantime...

JDL

boshed

2009-10-21 23:16:25

On your pic -> click that Browse button :) (then info tab on the right after selecting your model)

javierdl

2009-10-21 23:46:36

YES!!!
Finally it worked!
The culprit:

The entity I had been using, was a copy of another one that at some point before I made it to be a "weapon". And now although the model is no longer the same, one of its many tabs still was configured as the "Anabelle rifle weapon"!
I caught that in the game console, THANKS TO YOU, boshed :)
So I decided to create a brand new entity and the model loaded in game as expected!

Well, thank you kindly for sticking around patiently, and above all for your help :)

See ya around,

JDL

javierdl

2009-10-22 00:11:12

Before I forget, again...

For the record, that Halloween pumpkin is not mine. I found it in a folder called props_outland in HL2DM.

J

boshed

2009-10-22 00:17:58

Good good, would love to see a preview pic of the finished model in action ;)

javierdl

2009-10-22 01:06:09

Sure!

Image

It's nothing one could use really.

I failed to mention that the keyvalue in my qc file: "wood.large" was wrong. It had to be "wooden.large".

JDL