Skip to content

Command Line Interfaces

Attention: Command line parameters are totally case sensitive!

Examples

CS:GO Launcher

hlae.exe -csgoLauncher -noGui -autoStart -csgoExe "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo.exe" -mmcfgEnabled true -mmcfg "C:\Users\Username\Desktop\mmcfg" -gfxEnabled true -gfxWidth 1280 -gfxHeight 720 -gfxFull false -customLaunchOptions "-console +echo \"Hello World\""

AfxHookGoldSrc (Half-Life 1 / Counter-Strike 1.6 / ...)

hlae.exe -afxHookGoldSrc -noGui -autoStart -gamePath "C:\Program Files\Steam\steamapps\common\Half-Life\hl.exe" -modification cstrike -gfxWidth 640 -gfxHeight 480 -customCmdLine "+toggleconsole +echo \"Hello World\""

CustomLoader

hlae.exe -customLoader -noGui -autoStart -hookDllPath "C:\path-to-hlae-folder\AfxHookSource.dll" -programPath "C:\Program Files\Steam\SteamApps\common\Counter-Strike Global Offensive\csgo.exe" -cmdLine "-steam -insecure +sv_lan 1 -window -console -game csgo +echo \"Hello World\""

This command-line parameter enables the following command line parameters, which are optional, meaning if not set, the default value is used (which is either the user's saved setting or if the user made no changes to the factory setting). Specifying a parameter will overwrite the user's own settings in her/his config file.

The parameters pretty much reflect the available options in the Launch CS:GO dialog.

  • : If set HLAE will automatically launch CS:GO with the specified settings.
  • : If set, HLAE will only carry out the requested operation(s) and exit without showing the HLAE GUI. The process exit code 0 indicates no failure so far, any other exit code means a failure happened.
  • : Sets the following string as path to use for the csgo.exe to be launched.
  • : Whether to enable usage of or not.
  • : location of the movie making config parent folder
  • : Whether to enable usage of , , or not.
  • : Width of the resolution.
  • : Height of the resolution.
  • : Whether to use fullscreen (true) or windowed mode (false).
  • : Whether to add launch options that help avoiding VAC bans (true) or not (false). You should not specify this option at all or if you really want to then set it to true, otherwise you might risk VAC bans.
  • : the following string is added to the custom launch options which are passed to the game executable (csgo.exe).

This command-line parameter enables the following command line parameters, which are optional, meaning if not set, the default value is used (which is either the user's saved setting or if the user made no changes to the factory setting). Specifying a parameter will overwrite the user's own settings in her/his config file.

The meaning of these parameters is covered in [[GoldSrc:Render Settings]] and [[GoldSrc:First Steps]]

  • : If set HLAE will automatically launch AfxHookGoldSrc with the specified settings.
  • : If set, HLAE will only carry out the requested operation(s) and exit without showing the HLAE GUI. The process exit code 0 indicates no failure so far, any other exit code means a failure happened.
  • : Sets the following string as path to use for the hl.exe to be launched.
  • : modification to use, e.g. cstrike
  • : the following string is added to the custom launch options which are passed to the game executable (hl.exe).
  • : Whether to force resolution or not (can be true/false).
  • : Width of the resolution.
  • : Height of the resolution.
  • : Bit depth, can be 16/24/32.
  • : Whether to force support of 8-bit alpha channel or not.
  • : This doesn't have any effect atm.
  • : Whether the game window visibility shall be optimized or not during recording (TOPMOST window if true and stuff like that), can be true/false).
  • : Whether to launch the game in fullscreen or not.
  • : 0 - Standard, 1 - FrameBuffer Object, 2 - Memory DC

This command-line parameter enables the following command line parameters, which are optional, meaning if not set, the default value is used (which is either the user's saved setting or if the user made no changes to the factory setting). Specifying a parameter will overwrite the user's own settings in her/his config file.

  • : If set HLAE will automatically launch the CustomLoader with the specified settings.
  • : If set, HLAE will only carry out the requested operation(s) and exit without showing the HLAE GUI. The process exit code 0 indicates no failure so far, any other exit code means a failure happened.
  • : Sets the following string as path to use for the DLL to be injected into the process. It is possible to use this switch multiple times, the injection will happen in left to right (reading direction) order.
  • : Sets the following string as path to use for the program (e.g. csgo.exe) to be launched.
  • : the following string is added to the launch options which are passed to the program executable (e.g. csgo.exe).
  • : The following string is added to the environment variables passed to the program executable (e.g. csgo.exe). Can be used multiple times.

Made with ❤️ by Advancedfx