Old Question

-Psy-

Walking round in women's underwear
Joined
Mar 9, 2005
Messages
4,805
Reaction score
0
No idea why but the texture on my model is not loading...even the texture on the example model doesnt load...
Example
http://www . hl2 world . com/wiki/index.php/Importing_Custom_Models

(Get rid of the spaces)

This is my .qc code

Code:
$modelname metal_sheet/metal_sheet.mdl

$cdmaterials models/metal_sheet
$staticprop

$scale 1.0

$body studio "models/metal_sheet/metal_sheet.smd"

$sequence idle "models/metal_sheet/idle" fps 1

$collisionmodel "models/metal_sheet/tree_phys.smd" {
        $Mass 100
    $concave
}

I followed everything it says in the tutorial.

Any reason as to why its not working?
 
It should be...

Code:
$modelname metal_sheet/metal_sheet.mdl

$cdmaterials models/metal_sheet
$staticprop

$scale 1.0

$body studio "models/metal_sheet/metal_sheet"

$sequence idle "models/metal_sheet/idle" fps 1

$collisionmodel "models/metal_sheet/tree_phys" {
        $Mass 100
    $concave
}

you don't put the file extension in...

and Cremator...that was no help whatsoever
 
Sorry mate, but it's not even compiling it...
 
Wellllllllll....

I've placed;

metalsheet.smd
idle.smd
metalsheet_phys.smd

,in sourcesdk_content/modelsrc/metal_sheet

I go to compile and it doesn't do it. aka doesn't show the compiling info...

Code:
// Output .MDL
$modelname modelsrc/metalsheet.mdl


// Write textures into a ???T.mdl
//$externaltextures

$scale 1.0

// whole body
$body studio "metalsheet"

// sequences: all sequences are in $cd
$sequence idle "idle" loop fps 1

$collisionmodel "metalsheet_phys.smd" {
     // Mass in kilograms
     $Mass 100
   $concave
}

I'm a real n00b at the Source engine..
 
GonzoBabbleshit said:
and Cremator...that was no help whatsoever

In case you didnt notice, it's spam :p
Plus, I'm trying to help(or depress) him via MSN for 3 friggin hours now :|
 
try following this tutorial...
http://www. hl2 world . com/wiki/index.php/3ds_max_to_hl2_or_cs:s

but obviously without the making the model in 3dsmax bit.

I think you're running studiomdl wrong. It's really difficult to get right cause all the directories have to be perfectly set out and if they're not you're not really given an error message.

If you're making a model for HL2 make sure the smd's are in sourcesdk_content\hl2\modelsrc

then run studiomdl as it explains in that tutorial but change the directory/file paths to suit your situation.

Make sure you're qc file doesn't have the file extension for the smd files though, make sure it looks like I stated above.
 
I love you Gonzo. It works :angel:
 
try...
Code:
C:\Program Files\Valve\Steam\SteamApps\psychofreak001\sourcesdk\bin\studiomdl.exe "C:\Program Files\Valve\Steam\SteamApps\psychofreak001\sourcesdk_content\cstrike\modelsrc\custom_models\metalsheet.qc"

copy that exactly as it is into the 'target' box in the shortcut properties.
 
Question: How do I make a prop_physics model?
 
PsychoFreak said:
Question: How do I make a prop_physics model?

just make an entity called "prop_physic" and attach your model to it ?
if the mass is low enough you will be able to move it
 
GonzoBabbleshit said:
Did this work then?

Yes it did :)

just make an entity called "prop_physic" and attach your model to it ?
if the mass is low enough you will be able to move it

So I don't have to fiddle around with the .qc file?
 
That didn't help at all...

Here's my new .qc file...

Code:
// Output .MDL
$modelname custom_models/computerdesk1.mdl

// refers to "D:\Program Files\Valve\Steam\SteamApps\psychofreak001\sourcesdk_content\cstrike\materialsrc\"
// this will be saying where yer texture is and in it should be in "sourcesdk_content\cstrike\materialsrc\models\
$cdmaterials models

$staticprop

$scale 1.0

// it's just ./(name of model)
$body studio "./computerdesk1"

// sequences: all sequences are in $cd    must have an animation sequence if theres animation or not
$sequence idle "computerdesk1" loop fps 15

//Surface Type
$surfaceprop "wood"

$keyvalues { "prop_data" { "base" "wood" } }
// you can make a seperate model for colisions if it's a realy complicated model and put name of it here
// otherwise just use the same model
$collisionmodel "computerdesk1.smd"
{
// Mass in kilograms for when model is used as a prop_phys
$Mass 100
$concave
}

It says this in the console;
prop_physics 'models/custom_models/computerdesk1.mdl' has a base specified as 'wood', but there is no matching entry in propdata.txt.
 
i don't know why you make the .qc so complicated, here is one of mine as a reference:

Code:
$modelname /props/trailer_flat
$cdmaterials models/ol_stack
$surfaceprop "metal"
$staticprop
$scale "1"
$body studio "models/props/trailer_flat.smd"
$sequence idle "models/props/trailer_flat_idle.smd" fps 1
$collisionmodel "models/props/trailer_flat_phys.smd"
{
$Mass 4500
$concave
}

change the path's to how yours are set up and it should work, if it doesn't your paths arn't correct

and my .qc file works: http://users.pandora.be/simon.wt/dire/ol_stack0004.jpg
 
Calm Down everyone, everything is working fine.....
 
Back
Top