Launching tools directly: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (added "s" to "Window")
(badly moved multipage)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{otherlang2|
{{LanguageBar}}
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.


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.
Most SDK tools, including {{hammer|1}} and its compilers, {{hlmv|1}}, and {{hlfaceposer|1|nt=0}} 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.


* In a shortcut, edit the "Start In" field.
Furthermore, since the {{src13|1}} and with the {{src13|1|nt=0}}, the Source SDK launcher no longer works. In order to launch these tools for that branch, double click on the .BAT file on the {{code|(game directory)\bin}} folder instead.
* 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]]

Latest revision as of 05:31, 14 July 2024

English (en)Русский (ru)中文 (zh)Translate (Translate)

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.

Furthermore, since the Source 2013 and with the Source SDK Base 2013, the Source SDK launcher no longer works. In order to launch these tools for that branch, double click on the .BAT file on the (game directory)\bin folder instead.