Compiling models through ConTEXT

Tutorial collection, comprehensive listings on main site.

Compiling models through ConTEXT

Postby Tutorial on Mon Jun 23, 2008 11:47 am

category
Modelling

description
How to see studiomdl.exe error messages after compiling.

keywords
model, models, modelling, qc, file, creating, compile, studiomdl, studio, error, message, context.

What does this tutorial teach me?
I'll show you how to set up a helpful text editor called "ConTEXT", to see you're studiomdl compiling process.
If you're handwriting your .qc file like me, you'll just need to open the .qc file for your model in the future and press F9, it will automatically compile. (no more browsing to the bin folder and drag- and dropping)

Why would i need to see it?
If your model doesn't compile correctly, the studiomdl window usually just disappears and you have no idea, what happened. With ConTEXT you'll be able to see the error-message.

What do I need?
ConTEXT (freeware)
and know how to place you're model files correctly

1. After you downloaded it, you should right-click any .qc file you recently made and go to
Properties.
For the "Open with..." option you should browse to "ConTEXT Programmers Editor" and click Ok.

2. For this tutorial I will compile a static prop model for Counterstrike:source.
After you place your .qc file and .smd files in the correct folder
(in my case: C:\Programme\Steam\SteamApps\[ACCOUNT]\counter-strike source\cstrike\models\Tutorial)
open you're MODEL.qc file (with ConTEXT, of course).

Image

The settings in ConTEXT

3. Make sure that you can see the "Console Output" window under you're .qc file.
If you cannot see it, go to the View-tab and make sure, that "Console Output" is activated.

4. Now go the Options-> Environment Options.
Click the Execute Keys tab.

Click Add below the white box.
You should be requested to enter extensions now. Type qc and click Ok.
You're window should look like this now:

Image

5. Move on by left-clicking on F9.

Following settings are required:

Execute: Paste you're path to the studiomdl.exe in there.
For me compiling for episode 1 it is
C:\Programme\Steam\SteamApps\[ACCOUNT]\sourcesdk\bin\ep1\bin\studiomdl.exe

Start in:
%p

Parameters:
%n

Hint:
Compile

And turn on the Capture console output and Scroll console to the last line options.

You're final setting should look like this
Image

Compiling
Just open the .qc file
(C:\Programme\Steam\SteamApps\[ACCOUNT]\counter-strike source\cstrike\models\Tutorial\model.qc in my case) with ConTEXT and press F9.

The model is being compiled.

Image

Nauz
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Re: Compiling models through ConTEXT

Postby warlord on Mon Jun 01, 2009 6:18 pm

theres a way to make the studiomdl stay open after compiling.

go thru your startmenu and bring up a command prompt.
now drag studiomdl to the cmd prompt window and after the line of studiomdl add a (SPACE)
now drag your qc to that same window and hit enter.

it will compile it and stay open
warlord
Member
Member
 
Joined: Sun May 17, 2009 9:42 pm

Re: Compiling models through ConTEXT

Postby Nauz on Sat Jun 13, 2009 10:33 am

It's still handy to use ConTEXT, pressing F9 every time is just a way faster and more comfortable methode. But thanks for the info ;-)
User avatar
Nauz
Regular
Regular
 
Joined: Sat Mar 08, 2008 10:13 pm

Re: Compiling models through ConTEXT

Postby Jorg40 on Mon Jul 20, 2009 10:03 am

That is just so sweeeath! :D
User avatar
Jorg40
Regular
Regular
 
Joined: Tue Sep 13, 2005 3:04 pm
Location: Norway

Re: Compiling models through ConTEXT

Postby Nauz on Mon Jul 20, 2009 11:38 am

I'm glad someone else finds this as useful as I do
User avatar
Nauz
Regular
Regular
 
Joined: Sat Mar 08, 2008 10:13 pm

Re: Compiling models through ConTEXT

Postby Duke Nukem on Sun Dec 12, 2010 4:34 pm

The paths have to be changed. Source is using more compiling syntaxes since 2007 like the "$jigglebone"-syntax.

path is: ...\sourcesdk\bin\source2007\bin\studiomdl.exe

if you use the old studiomdl.exe, context cant find the new syntaxes and puts out an error.
Enjoy your Kartoffelsuppe!

ModDB Profile
User avatar
Duke Nukem
Pheropod
Pheropod
 
Joined: Thu Aug 28, 2008 7:06 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users