Talk:Compiling a model

From Valve Developer Community
Revision as of 09:58, 11 June 2009 by Nom1nator (talk | contribs)
Jump to: navigation, search

Programmer's Notepad use

Is there any way to use Programmer's Notepad ( for work with .qc-files? Meaning, is it possible without really great efforts. I checked it's profiles ("schemes") already and - they are not compatible with those of Notepad++ (so if one wants to use PN, then creating a scheme is necessary).

Glitchy Model

I created a model, you know, modelled it, exported SMD's, compiled, etc., but when I try to put it in hammer as a prop_static it just doesn't show up, and when I place it as a prop_physics (which it really shouldn't be) it won't let me pick it up. In addition, when I touch it so as to "wake" it, the game crashes. I'm stunped as to what's going on. Please help!

Below is my qc file in case it helps:

$modelname Elevator_Button/Elevator_Button.mdl
$cdmaterials models/Elevator_Button
$scale 2.0
$body studio "Elevator_button_ref.smd"
$texturegroup "Elevator_button"
   { "Elevator_button" }
   { "Elevator_button_skin_01" }
   { "Elevator_button_skin_02" }
   { "Elevator_button_skin_03" }
   { "Elevator_button_skin_04" }
   { "Elevator_button_skin_05" }
   { "Elevator_button_skin_06" }
   { "Elevator_button_skin_07" }
   { "Elevator_button_skin_08" }
   { "Elevator_button_skin_09" }
   { "Elevator_button_skin_10" }
   { "Elevator_button_skin_11" }
   { "Elevator_button_skin_12" }
   { "Elevator_button_skin_13" }
   { "Elevator_button_skin_14" }
   { "Elevator_button_skin_15" }
   { "Elevator_button_skin_16" }
$sequence idle "Elevator_button_idle.smd"  fps 15

First thing I'd try is removing $texturegroup there. I've never seen a model with that many. --TomEdwards 14:32, 5 May 2009 (UTC)
Well, I need all of them because it's an elevator button, and I want a specific one for each floor, with on and off skins. It would take too long to make an individual model for each, and I have no idea if there's a way other than skinning to make them appear "on." Subject15837 20:00, 5 May 2009 (UTC)
Can't you run a test compile just to see what happens? --TomEdwards 14:27, 6 May 2009 (UTC)
A test compile? Of the map, or the model? Because if you mean the model, then my problem is not that I don't want to compile it, it's that I don't know qc commands well enough to find a way to do it.
Make a new QC and paste this into it:
$modelname Elevator_Button/Elevator_Button.mdl
$cdmaterials models/Elevator_Button
$scale 2.0
$body studio "Elevator_button_ref.smd"
$sequence idle "Elevator_button_idle.smd"  fps 15
Then see if that works. --TomEdwards 13:23, 7 May 2009 (UTC)

NoGameDir error

When I try to compile my model with the studiomdl.exe it just gives this error:

Unable to find gameinfo.txt. Solutions:

1. Read 2. Run vconfig to specify which game you're working on. 3. Add -game <path> on the command line where <path> is the directory that gameinfo.txt is in.

Samekind of error comes with Studiocompiler. Please can anyone help me? --nom1nator 16:56, 11 June 2009 (UTC)