Compiling Problem

jheaddon

Newbie
Joined
Jan 1, 2004
Messages
517
Reaction score
0
EDIT - Crap wrong forum sorry!

Yes i know there are a few around, but couldn't find any with this specific problem.

I am working off of the tutorial from the SDK:

http://www.valve-erc.com/srcsdk/models/compiling_models.html

But at stage 3:

cd "%sourcesdk%"
bin\studiomdl cstrike_sample_content\model_sources\mymodel.qc

I get no luck, the cd "%sourcesdk%" doesn't work in the slightest, is an unrecognised parameter apparently.

Any ideas? Have had a friend try with no luck, have also tried updated and reset'ing SDK files. Is it to do with the directory changes or something?
 
it isn't

cd "%sourcesdk%"

, it is just

cd %sourcesdk%

It is a DOS SET variable (yes boys and girls it is a throwback to old DOS ways of doing things, sigh).

Open a CMD prompt and type SET, you'll see all your current variables. This one is created during the steam install. You can do a set in a batch file or set them through CONTORL PANEL->SYSTEM->ADVANCED tab->Enviromental variable button.

In CMD line you create a set by

"SET sourcesdk=c:\program files\valve\steam\steamapps\steamuser\sourcesdk"

All on one line, no quotes. That's what the souresdk looks like, but your use of quotes around the recall (%souresdk%) would mes up the syntax.

BTW a l;ot of tuts and even Valve documentation isn't properly quoting directory/filenames. VBSP, VVIS, VRAD, VTEX, XWAD, and most other command line tools that need to reference long filenames, however command lines recognize spaces as brreaks. So ALWAYS enclose directory/filenames in quotes when passing it to a program, like so...

directory/programbeingrun.exe -parameter1 "c:\directory\filename.ext"

A number of tutorials failed for me (particularly the SDKs docs on creating textures and converting wads) because of lacks of quotes.
 
Back
Top