Launching tools directly: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (added "s" to "Window")
Line 1: Line 1:
{{otherlang2|
{{otherlang2|
ru = Launching_tools_directly:ru}}
ru = Launching_tools_directly:ru}}
Some SDK tools, including [[Hammer]] and its compilers, [[HLMV]] and [[Faceposer]] are liable to not work properly when launched from a Window shortcut. Unless you run them from the SDK Launcher you will be unable to load content from GCF files and may experience crashes.
Some SDK tools, including [[Hammer]] and its compilers, [[HLMV]] and [[Faceposer]] are liable to not work properly when launched from a Windows shortcut. Unless you run them from the SDK Launcher you will be unable to load content from GCF files and may experience crashes.


There is a very easy solution to this problem: '''make the application's working directory <code>"%sourcesdk%\bin\orangebox\"</code>''' (or <code>\ep1</code>). You may have to type the path to the SDK folder out in full in some places.
There is a very easy solution to this problem: '''make the application's working directory <code>"%sourcesdk%\bin\orangebox\"</code>''' (or <code>\ep1</code>). You may have to type the path to the SDK folder out in full in some places.

Revision as of 14:57, 11 April 2012

Template:Otherlang2 Some SDK tools, including Hammer and its compilers, HLMV and Faceposer are liable to not work properly when launched from a Windows shortcut. Unless you run them from the SDK Launcher you will be unable to load content from GCF files and may experience crashes.

There is a very easy solution to this problem: make the application's working directory "%sourcesdk%\bin\orangebox\" (or \ep1). You may have to type the path to the SDK folder out in full in some places.

  • In a shortcut, edit the "Start In" field.
  • From the command line, use the cd command.
  • In Batch Compiler, set the BinRoot variable.

Not all tools require this. Most command-line ones work fine with any working directory.