Launching tools directly: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (added "s" to "Window")
(why the hell is literally all of the Source SDK FAQ category for Orangebox still. No one uses Orangebox and no one SHOULD use Orangebox, so I'm just going to change these pages to reflect the modern state of Sources' SDKs.)
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 Windows shortcut. Unless you run them from the SDK Launcher you will be unable to load content from GCF files and may experience crashes.
Most SDK tools, including [[Hammer]] and its compilers, [[HLMV]], and [[Faceposer]] do not work properly when run by double clicking on them as an EXE. A quick way to solve this issue is to create a shortcut or a batch file that runs the EXE with the parameter <code>-game ../yourmod</code>. Depending on the game, <code>-nop4</code> may also be required to prevent 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.
 
* In a shortcut, edit the "Start In" field.
* From the command line, use the <code>cd</code> command.
* In [[Batch Compiler]], set the BinRoot variable.
 
Not all tools require this. Most [[command-line]] ones work fine with any working directory.


[[Category:Source SDK FAQ]]
[[Category:Source SDK FAQ]]
[[Category:Tools]]
[[Category:Tools]]

Revision as of 03:11, 1 February 2019

Template:Otherlang2 Most SDK tools, including Hammer and its compilers, HLMV, and Faceposer do not work properly when run by double clicking on them as an EXE. A quick way to solve this issue is to create a shortcut or a batch file that runs the EXE with the parameter -game ../yourmod. Depending on the game, -nop4 may also be required to prevent crashes.