• How to compile models for the source engine.
    174 replies, posted
Not true.
Make this a Sticky :D
i get an error. heres my log [code]GUIStudioMDL 2.2/Source - ?2007 Neil 'Jed' Jedrzejewski - http://www.wunderboy.org/ *ERROR* Orange Box tools path is not valid - use "Config" then "Set EP1 Tools Path..." from the menu to set it. Loaded QC file - "C:\Documents and Settings\Kenneth\Desktop\folder\shit.qc" Created command line: "C:\Program Files\Steam\SteamApps\*********\sourcesdk\bin\ep1\bin\studiomdl.exe" -game "c:\program files\steam\steamapps\*********\counter-strike source\cstrike" -notxbox "C:\Documents and Settings\Kenneth\Desktop\folder\shit.qc" qdir: "c:\documents and settings\kenneth\desktop\folder\" gamedir: "c:\program files\steam\steamapps\*********\counter-strike source\cstrike\" g_path: "shit" Working on "shit.qc" SMD MODEL shit_idle.smd SMD MODEL shit_reference.smd ERROR: 'EXCEPTION_ACCESS_VIOLATION' (assert: 1) ERROR: Aborted Processing on 'models\custom\shit.mdl' Created command line: "C:\Program Files\Steam\SteamApps\*********\sourcesdk\bin\ep1\bin\studiomdl.exe" -game "c:\program files\steam\steamapps\*********\counter-strike source\cstrike" -notxbox "C:\Documents and Settings\Kenneth\Desktop\folder\shit.qc" qdir: "c:\documents and settings\kenneth\desktop\folder\" gamedir: "c:\program files\steam\steamapps\*********\counter-strike source\cstrike\" g_path: "shit" Working on "shit.qc" SMD MODEL shit_idle.smd SMD MODEL shit_reference.smd ERROR: 'EXCEPTION_ACCESS_VIOLATION' (assert: 1) ERROR: Aborted Processing on 'models\custom\shit.mdl' [/code] heres my .qc [code]$modelname "models\custom\shit.mdl" $cdmaterials "models\custom" $scale .5 $surfaceprop "flesh" $sequence idle "shit.smd" fps 1 $collisionmodel "shit.smd" { $mass 10.0 $inertia 1.00 $damping 0.00 $rotdamping 0.00 } [/code]
I get the same error. Valve's wiki says to have the model viewer open, but it does nothing. eh, domo kun: you forgot to take your username out of the -game parameter.
[QUOTE=Q42]I get the same error. Valve's wiki says to have the model viewer open, but it does nothing. eh, domo kun: you forgot to take your username out of the -game parameter.[/QUOTE] i don't care if people know my name :)
My qc: $modelname "models\voltlight\cooker.mdl" $cdmaterials "voltlight\" $scale 1 $surfaceprop "plastic" $sequence idle "Object.smd" fps 1 $collisionmodel "Object.smd" { $mass 100.0 $inertia 1.00 $damping 0.00 $rotdamping 0.00 } ERROR: c:\documents and settings\------\desktop\object compile\mdldecompiler.qc(9): - bad command { ERROR: Aborted Processing on 'models\voltlight\cooker.mdl' Any idea how i would fix this? It seems i can't compile anything anymore without an error. Also, i'm compiling for garrysmod, just incase you need to know.
Everyone's getting that error. This is my error: [code] WARNING: AppFramework : Unable to load module p4lib.dll! qdir: "f:\documents and settings\the gamer\desktop\mynewmodel\" gamedir: "f:\program files\steam\steamapps\raekwonthechef2580\half-life 2 episode two\ep2\" g_path: "F:\Documents and Settings\The Gamer\Desktop\mynewmodel\camperboard.qc" Building binary model files... Working on "camperboard.qc" SMD MODEL camperboard.smd ERROR: f:\documents and settings\the gamer\desktop\mynewmodel\camperboard.qc(10): - bad command $mass ERROR: Aborted Processing on 'models\camper\camperboard.mdl' [/code] This is stupid how no one can help us. :( [b]Edit:[/b] And my .qc [code] $modelname "models\camper\camperboard.mdl" $cdmaterials "camper\" $scale 1 $surfaceprop "metal" $sequence idle "camperboard.smd" fps 1 $collisionmodel "camperboard.smd" { $mass 100.0 $inertia 1.00 $damping 0.00 $rotdamping 0.00 } [/code] [b]Edit:[/b] [QUOTE=voltlight]I heard you must compile stuff in the new source engine with a .bat file... Is this true? Because i had problems compiling for css.[/QUOTE] That [b]IS[/b] true. [url=http://developer.valvesoftware.com/wiki/Compiling_Models]Look here[/url]. It says you need to run the cmd to compile your model.
You need $concave
[QUOTE=Jaanus]You need $concave[/QUOTE] Wait... So i must add $concave in the qc for it to compile?
Try adding it in the collision section somewhere.
What is that? All I made was a little box and exported to .smd and made a .qc using your video. What should I add and where?
[QUOTE=Jaanus]You need $concave[/QUOTE] That makes no sense, but alright. I can't try it until monday though.
Jannus, you made this simple tutorial, but it didn't help anyone seeing how everyone is having the same problem. I tried that $concave and I still get the same error. You gotta help us somehow.
I think this isn't jaanus's fault so much as valve's. I've noticed some quirks, like that this works fine on my laptop and dies in a fire on my PC (which is where I make models :argh:)
[QUOTE=PC Camp]Jannus, you made this simple tutorial, but it didn't help anyone seeing how everyone is having the same problem. I tried that $concave and I still get the same error. You gotta help us somehow.[/QUOTE] Bitch at valve, not me. They're the ones who are fucking this all up with their new SDK. Remember the launch of OB? Nobody could compile anything for a week.
Hey, great tutorial, really helped :D
For people with the problem: ERROR: Aborted Processing on 'models\camper\camperboard.mdl' I've gone through this tutorial but after following one on interlopers mine compiled Where: $modelname "models\camper\camperboard.mdl" $cdmaterials "camper\" remove the quotation marks so it is: $modelname models\camper\camperboard.mdl $cdmaterials camper\ and it should compile EDIT: Only remove the quotation marks from those two lines
Haha, mine failed. I hate modelling because 98.7% of the time it always fails. :(
I am a failure. It just isn't working out for me. WHY GOD?
i found that adding this line to your QC file then changing ModelName to what ever your model is called fixed my errors [code] $body "Body" "ModelName.smd" [/code] also having this line link to the collision model not the model model like it says in the tutorial [code] $collisionmodel "CollisionModelname.smd" [/code] hope this helps anyone
finally a clear tutorial stating the exact steps needed.
This worked out very well! The only problem I had (only one, that's godly) is when I try to open it in model viewer it says no verticies. It's just an extruded cube so should I have done something to it first before exporting it? (it's a book:))
How do i change the extension on a file? e.g. changing a .txt file to a qc
Its asking for a password for the tut!?!?!
This sounds cool I tried compiling models a fe times but I always failed. Too bad it doesn't work :emo:
[QUOTE=nixtar]Its asking for a password for the tut!?!?![/QUOTE] yeah i tried it and got the same result
I PMed Jaanus.
gdgd hopefully he will fix it.
thanks been looking all over
God damnit Jaanus. RAVE BREAK SCARED ME. ._.
Sorry, you need to Log In to post a reply to this thread.