[VIDEO] Creating, texturing and importing a simple object into a Source game.

ShroudedSiege

L1: Registered
Oct 3, 2008
26
6
Ok i made this tutorial before i bought Orange Box, well about a month before. I made it for DeathMatch but the principle is the exact same for TF2, it just involves saving the files into different folders for example for TF2 you'd save to:

C:\Program Files\Steam\steamapps\armoured_fury\sourcesdk_content\tf\models (for models to use in TF2)
For this you would need to create a folder called models for it to compile like so:
C:\Program Files\Steam\steamapps\armoured_fury\team fortress 2\tf\MODELS\YOURMODELSFOLDERNAME

and

C:\Program Files\Steam\steamapps\armoured_fury\team fortress 2\tf\materials\models\YOURMODELSFOLDERNAME (for the textures you wish to use in TF2)

Same files but a different location to that which i state in the tutorials. I will probably make some more tutorials for TF2 but i'm not sure yet lol.

Youtube links:
Part 1
http://www.youtube.com/watch?v=bEz0Gvx_FUY
(hi-rez)
http://www.fileden.com/files/2007/3/25/923698/Part_1.wmv

Part 2
http://www.youtube.com/watch?v=n1R4Wu5F6NY&feature=related
(hi-rez)
http://www.fileden.com/files/2007/3/25/923698/Part_2.wmv

Part 3
http://www.youtube.com/watch?v=VdIvfO35sKc&feature=related
(hi-rez)
http://www.fileden.com/files/2007/3/25/923698/Part_3.wmv

Part 4
http://www.youtube.com/watch?v=XnOX-aIMAno&feature=user
(hi-rez)
http://www.fileden.com/files/2007/3/25/923698/Part_4.wmv

Before i posted this tutorial i made sure that the model i used in the video would actually import into TF2, just to be on the safe side.. It all works fine so yeh :)
 

DOMINATOR

L1: Registered
Jun 20, 2009
11
0
this doesn't work for me. i can't get it to import into the orange box/tf2 engine.

heres the .qc file:
$modelname "models\custombox\custombox.mdl"

$body "Box" "custombox.smd"

$cdmaterials "custom\custombox\"


$staticprop

$scale 1.0

$surfaceprop "Metal"


$sequence "idle" "custombox" fps 30


$collisionmodel “custombox.smd”

{
$concave
}




and compiler output
Code:
Created command line: "C:Program Files (x86)Steamsteamappslakehockey05sourcesdkbinorangeboxbinstudiomdl.exe" -game "c:program files (x86)steamsteamappslakehockey05team fortress 2tf" -nop4 -nox360 "C:Program Files (x86)Steamsteamappslakehockey05sourcesdk_contenttfmodelscustombox.qc"

all paths:c:program files (x86)steamsteamappslakehockey05team fortress 2tf;c:program files (x86)steamsteamappslakehockey05sourcesdkbinorangeboxtf;c:program files (x86)steamsteamappslakehockey05sourcesdkbinorangeboxhl2;c:program files (x86)steamsteamappslakehockey05sourcesdkbinhl2
qdir:    "c:program files (x86)steamsteamappslakehockey05sourcesdk_contenttfmodels"
gamedir: "c:program files (x86)steamsteamappslakehockey05team fortress 2tf"
g_path:  "C:Program Files (x86)Steamsteamappslakehockey05sourcesdk_contenttfmodelscustombox.qc"
Building binary model files...
Working on "custombox.qc"
SMD MODEL custombox.smd
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Error with convex elements of custombox.smd, building single convex!!!!
Model has 1 convex sub-parts
Collision model completed.
---------------------
writing c:program files (x86)steamsteamappslakehockey05team fortress 2tfmodels/modelscustomboxcustombox.mdl:
Error opening c:program files (x86)steamsteamappslakehockey05team fortress 2tfmodels/modelscustomboxcustombox.mdl! (Check for write enable)


where is it supposed to send the compiled .mdl file?
 

pl

L5: Dapper Member
Mar 6, 2009
248
55
I've only watched a little of the first one, but I'll watch the rest later. Looks great up to what I've watched so far :)
 

ShroudedSiege

L1: Registered
Oct 3, 2008
26
6
this doesn't work for me. i can't get it to import into the orange box/tf2 engine.

heres the .qc file:
$modelname "models\custombox\custombox.mdl"

$body "Box" "custombox.smd"

$cdmaterials "custom\custombox\"


$staticprop

$scale 1.0

$surfaceprop "Metal"


$sequence "idle" "custombox" fps 30


$collisionmodel “custombox.smd”

{
$concave
}




and compiler output
Code:
Created command line: "C:Program Files (x86)Steamsteamappslakehockey05sourcesdkbinorangeboxbinstudiomdl.exe" -game "c:program files (x86)steamsteamappslakehockey05team fortress 2tf" -nop4 -nox360 "C:Program Files (x86)Steamsteamappslakehockey05sourcesdk_contenttfmodelscustombox.qc"

all paths:c:program files (x86)steamsteamappslakehockey05team fortress 2tf;c:program files (x86)steamsteamappslakehockey05sourcesdkbinorangeboxtf;c:program files (x86)steamsteamappslakehockey05sourcesdkbinorangeboxhl2;c:program files (x86)steamsteamappslakehockey05sourcesdkbinhl2
qdir:    "c:program files (x86)steamsteamappslakehockey05sourcesdk_contenttfmodels"
gamedir: "c:program files (x86)steamsteamappslakehockey05team fortress 2tf"
g_path:  "C:Program Files (x86)Steamsteamappslakehockey05sourcesdk_contenttfmodelscustombox.qc"
Building binary model files...
Working on "custombox.qc"
SMD MODEL custombox.smd
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Error with convex elements of custombox.smd, building single convex!!!!
Model has 1 convex sub-parts
Collision model completed.
---------------------
writing c:program files (x86)steamsteamappslakehockey05team fortress 2tfmodels/modelscustomboxcustombox.mdl:
Error opening c:program files (x86)steamsteamappslakehockey05team fortress 2tfmodels/modelscustomboxcustombox.mdl! (Check for write enable)


where is it supposed to send the compiled .mdl file?



Sorry it took me sooo long to respond i've not even used Source for months lol.

You need to create a folder called "models" in that location, it doesn't make it for you...