• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
Sign in to follow this  
Followers 0
RoboTyphoon

.smd to .mdl help!

12 posts in this topic

I'm getting rather frustrated because I have my qc file and my .smd model, but I can't for the life of me figure out how to compile it.

I'm trying to use GUIStudio but I don't really understand why it wont work, I would like some step by step instructions, would really help me out.

Does anybody know any simpler ways to compile an .smd with another program?

I've been trying to figure this out on and off for a few months now, and every time I get to the compiling stages I give up, and I have some decent models waiting... :(

Share this post


Link to post
Share on other sites

create a shortcut to studiomdl on your desktop, and drag you QC on to that shortcut. I don't use whateverthefuckfancydoodads you kids use today. Post your QC.

Also, topic moved to appropriate section.

Share this post


Link to post
Share on other sites

My qc is for a static prop, it's a simple rectangle brush that represents a lego brick (I figured I would start simple to learn the process).

I'm not 100% on this, but here's what I got:

$staticprop

$modelname "legobrick2x4_01"

$scale "1.00"

$body "Body" "legobrick2x4_01_ref"

$cdmaterials "materials/props/lego/legobrick2x4_01"

$sequence idle "legobrick2x4_01_ref"

$surfaceprop "no_decal"

I created a shortcut to the studiomdl.exe, and dragged the qc over it and I get a system error 'The program can't start because tier.0.dll is missing from your computer. Try reinstalling the program to fix this problem.' I get that error when I try both the ep1 and orangebox stuidomdl.exe's, and I don't even know WHAT to try and reinstall..

EDIT: Alright so, I fixed it somehow, now it accepts my qc but I have no idea what happens after I drag the qc over the shortcut, where's my model? How do I know it worked? I search my whole Steam folder for 'legobrick2x4_01' and nothing turns up, which leads me to believe something didn't go right but how am I supposed to know if the compile window goes so fast I can't even read the text.

Share this post


Link to post
Share on other sites

Alright so after some research on my own and a ton of trial and error, I learned my qc was worthless; here's the new

$modelname props_lego/cube.mdl

$cdmaterials props/cube

$scale 1

$body studio "cube.smd"

$origin 0 0 0

$staticprop

$surfaceprop "brick"

$sequence idle "cube_still" loop fps 1

I learned you need not only the cube.smd but the cube_still.smd

I went back and learned GUIStudio (couldn't figure out the studiomdl process) and here's what I got:

2368558-T1200800.jpg

Anybody know why my texture isn't showing up? Maxx?

What should I use for the model texture, should it be a .vtf or a .png, or?

I have both a .png and a .vtf in the materials\models\props folder so I dunno what's going on.

Share this post


Link to post
Share on other sites

I'm pretty familiar with vtf/vmt's so I slapped them in there, pretty basic;

"VertexlitGeneric"

{

"$basetexture" "models/props/cube"

"$envmap" "env_cubemap"

}

...and it's still a no go, pink and black checkers. I'm not sure what's going on, I checked all the file paths over and over, everything is in place. I think I'll just start all over tomorrow with all new everything and see how that goes, maybe my .smd's are corrupt <_<

I appreciate your guys help though, I don't know why it's so hard to find documentation on this stuff, it's like an easter egg hunt, finding out little parts here and there just to move on to the next step... even more frustrating is I'm using Blender which isn't as user friendly as these thousand dollar programs..

Share this post


Link to post
Share on other sites

What's the name of the texture on your model?

"$cdmaterials props/cube" in the QC means it's looking in the materials/props/cube directory for materials, but the vmt you just posted points to materials/models/props/cube.vtf -- seems like this probably isn't what you want.

You can open the reference .smd in notepad++ or something and look for "triangles" -- the next line should tell you the name of the (first) texture. So if it says 'my_texture.bmp', you'll need a 'my_texture.vmt' in whatever directories you list with $cdmaterials.

Share this post


Link to post
Share on other sites

The name of the material being called by the model is EXACTLY THE NAME OF THE MATERIAL that is applied to the model in 3ds Max prior to SMD export.

So if your material applied to the model is "env_Dinks_HugeCocks01a_d.tga", then the name of the VMT needs to be env_Dinks_HugeCocks01a_d.vmt

Share this post


Link to post
Share on other sites

I've titled everything 'Cube' since I've started this model, so the texture for my model is titled 'cube'

I checked in model viewer and in the model tab it says '*** ERROR *** Model attempted to load one or more VMTs it can't find.' I don't know why it can't find it, it's titled cube and is in my materials/models/props folder... does this not match my qc or? I dunno ssba.

I open my .smd and it just reads

version 1

nodes

0 "root" -1

end

skeleton

time 0

0 0 0 0 0 0 0

end

triangles

Material

0 1.000000 0.999999 1.000000 0.000000 1.000000 0.000000 0.333333 0.333333 0

0 1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 0.333333 0.666667 0

0 -1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 0.000000 0.666667 0

Material

0 1.000000 0.999999 1.000000 0.000000 1.000000 0.000000 0.333333 0.333333 0

0 -1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 0.000000 0.666667 0

0 -1.000000 1.000000 1.000000 0.000000 1.000000 0.000000 0.000000 0.333333 0

Material

0 -1.000000 -1.000000 -1.000000 -1.000000 0.000000 -0.000000 0.333333 1.000000 0

0 -1.000000 -1.000000 1.000000 -1.000000 0.000000 -0.000000 0.333333 0.666667 0

0 -1.000000 1.000000 1.000000 -1.000000 0.000000 -0.000000 0.666667 0.666667 0

Material

0 -1.000000 -1.000000 -1.000000 -1.000000 0.000000 -0.000000 0.333333 1.000000 0

0 -1.000000 1.000000 1.000000 -1.000000 0.000000 -0.000000 0.666667 0.666667 0

0 -1.000000 1.000000 -1.000000 -1.000000 0.000000 -0.000000 0.666667 1.000000 0

Material

0 1.000000 -1.000000 -1.000000 -0.000000 -1.000000 -0.000000 0.666667 0.000000 0

0 0.999999 -1.000001 1.000000 -0.000000 -1.000000 -0.000000 0.666667 0.333333 0

0 -1.000000 -1.000000 -1.000000 -0.000000 -1.000000 -0.000000 0.333333 0.000000 0

Material

0 0.999999 -1.000001 1.000000 -0.000000 -1.000000 0.000000 0.666667 0.333333 0

0 -1.000000 -1.000000 1.000000 -0.000000 -1.000000 0.000000 0.333333 0.333333 0

0 -1.000000 -1.000000 -1.000000 -0.000000 -1.000000 0.000000 0.333333 0.000000 0

Material

0 1.000000 1.000000 -1.000000 1.000000 0.000000 -0.000000 0.666667 0.333333 0

0 1.000000 0.999999 1.000000 1.000000 0.000000 -0.000000 0.666667 0.666667 0

0 1.000000 -1.000000 -1.000000 1.000000 0.000000 -0.000000 0.333334 0.333333 0

Material

0 1.000000 0.999999 1.000000 1.000000 -0.000001 0.000000 0.666667 0.666667 0

0 0.999999 -1.000001 1.000000 1.000000 -0.000001 0.000000 0.333333 0.666667 0

0 1.000000 -1.000000 -1.000000 1.000000 -0.000001 0.000000 0.333334 0.333333 0

Material

0 1.000000 0.999999 1.000000 -0.000000 -0.000000 1.000000 0.333333 0.333333 0

0 -1.000000 1.000000 1.000000 -0.000000 -0.000000 1.000000 0.000000 0.333333 0

0 0.999999 -1.000001 1.000000 -0.000000 -0.000000 1.000000 0.333333 0.000000 0

Material

0 -1.000000 1.000000 1.000000 0.000000 -0.000000 1.000000 0.000000 0.333333 0

0 -1.000000 -1.000000 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 0

0 0.999999 -1.000001 1.000000 0.000000 -0.000000 1.000000 0.333333 0.000000 0

Material

0 1.000000 1.000000 -1.000000 0.000000 0.000000 -1.000000 0.333333 1.000000 0

0 1.000000 -1.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 1.000000 0

0 -1.000000 -1.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.666667 0

Material

0 1.000000 1.000000 -1.000000 0.000000 -0.000000 -1.000000 0.333333 1.000000 0

0 -1.000000 -1.000000 -1.000000 0.000000 -0.000000 -1.000000 0.000000 0.666667 0

0 -1.000000 1.000000 -1.000000 0.000000 -0.000000 -1.000000 0.333333 0.666667 0

end

EDIT: Alright, so I replaced every time it said 'Material' with 'Cube' and it works now... I think it wasn't working right in my .smd because I didn't correctly assign the texture in blender before I exported ;) because I'm not even sure how to assign it once the texture's loaded, I just assume it's assigned, aha.

Thanks harryhoot1, but I'm trying to learn this so it wouldn't benefit me to just have you do my models, after all it's not like I'm gonna come to you every time I need something compiled, lol, that's just not practical.

It looks like I have everything working now, I appreciate the help everyone! If I make anything good in the future I'll be sure to post it!

Share this post


Link to post
Share on other sites

2371367-T1200800.jpg

Alright, just made this for my L4D map (http://www.l4dmaps.com/details.php?file=9440)

I realize how simple it is, but I just feel so ecstatic because ever since I started playing Source I imagined the time when I would finally learn to model, like I learned to map, and it's all starting to take shape :lol:

But alright, I'm done posting on this thread, thanks again guys!

Share this post


Link to post
Share on other sites

Glad it worked out!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0