Importing custom models.

Baldrick

Spy
Joined
May 31, 2003
Messages
127
Reaction score
0
Hello.
I was wondering how you get a custom model into half life 2?
Like if you create the model in 3ds max (or an equivalent program), what file do you need to export it to?
How do you get it into the map?
Do you need to place the compiled model in some special directory?
 
Baldrick said:
Hello.
I was wondering how you get a custom model into half life 2?
Like if you create the model in 3ds max (or an equivalent program), what file do you need to export it to?
How do you get it into the map?
Do you need to place the compiled model in some special directory?
you need to setup its animation sequences, if any. Convert it to the correct format. setup a qc file. update the fgd so you can select it (doesn't matter if its just a static prop)

if its got extra physics info you need to mess around a little more with it too.

Check http://www.valve-erc.com/srcsdk/ (at the bottom) for better info on how to do it.
 
Edit time expired. :x

Ok, i need some help.
I have gotten up to the compiling part with my test object i have named "box"

C:\Documents and Settings\Tim> cd "%sourcesdk%"

C:\Program Files\Steam\SteamApps\XXXXXXX\sourcesdk>bin\studiomdl c
strike_sample_content\model_sources\box.qc
c:\program files\steam\steamapps\XXXXXX\sourcesdk\cstrike_sample_
content\model_sources\, c:\program files\steam\steamapps\XXXXXX\h
alf-life 2\hl2\, path box
Working on "box.qc"
SMD MODEL ./box.smd
SMD MODEL box.smd
Collision model completed.
---------------------
writing c:\program files\steam\steamapps\XXXXXX\half-life 2\hl2\m
odels/custom/box.mdl:
Error opening c:\program files\steam\steamapps\XXXXX\half-life 2
\hl2\models/custom\box.mdl! (Check for write enable)

I am pretty sure i have the custom folder set up.
I think the error may be in the /custom part (the slash is the wrong way around)

Anyone else have any ideas?
 
Error opening c:\program files\steam\steamapps\XXXXX\half-life 2
\hl2\models/custom\box.mdl!

you need to create that folder - models/custom in your hl2 directory
oldfaq
 
baldrick im currently working on a script which will allow you to just place all the files you need to compile in one folder. and all you have to do is edit 1 file to say what the models name is and what game its for.
its a really pretty simple way of compiling compared to working out all the folders n stuff, if you do it manually.

its nearly finished and il post it on these forums when im done.
 
Cool, i am looking forward to it.
That will make things so much easier, i wonder why valve didnt have a program like that. :)

Thanks for your help oldfaq, i got my model working now.
I created the folder in the wrong directory. :LOL:
 
that's what was always bothering me too... lol until I finally stopped and read the error... talk about frustrating.. lol, and no prolbem, ifyou want some more help just add me on msn [email protected]
 
Back
Top