Model not showing in map, why?
Post Reply
Quote
Re: Model not showing in map, why?
Posted by javierdl on Tue Oct 20th at 11:20pm 2009


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"
}
}

-------------------------------------------




Quote
Re: Model not showing in map, why?
Posted by haymaker on Wed Oct 21st at 1:37pm 2009


Im fairly green on .qc use but I've never entered that "fps 1" line in any working one



Quote
Re: Model not showing in map, why?
Posted by javierdl on Wed Oct 21st at 5:41pm 2009


Thanks and hi Haymaker! smiley
I'll remove that and see what happens then.

Boshed (from the HL2DM University web site) kindly suggested to check the Source SDK Model Viewer info tabs, so I did. Except there's nothing of importance being different between the pumpkin that loads in the game and the table that doesn't (see image below). 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.


I also compared their Hammer 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 smiley

Any ideas?

P.S. looking forward to see ya in HL2DM smiley

JDL




Quote
Re: Model not showing in map, why?
Posted by javierdl on Wed Oct 21st at 6:11pm 2009


Ok, did it, and... didn't cut the mustard smiley
I even duplicated the pumpkin entity and changed the model to my model, and still nothing! :-

JDL




Quote
Re: Model not showing in map, why?
Posted by javierdl on Wed Oct 21st at 7:51pm 2009


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 smiley
So I decided to create a brand new entity and the model loaded in game as expected!

JDL




Quote
Re: Model not showing in map, why?
Posted by Le Chief on Thu Oct 22nd at 1:58am 2009


Oh, I thought it was because the model you made was a static object and you're using a prop_physics. I was going suggest you use the entity prop_static.






Post Reply