HLAE Interfaces - advancedfx/advancedfx GitHub Wiki

Command Line Parameters

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\""

-csgoLauncher

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.

  • -autoStart : If set HLAE will automatically launch CS:GO with the specified settings.
  • -noGui: 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.
  • -csgoExe <String> : Sets the following string as path to use for the csgo.exe to be launched.
  • -mmcfgEnabled <Boolean> : Whether to enable usage of mmCfg or not.
  • -mmcfg <String> : location of the movie making config parent folder
  • -gfxEnabled <Boolean> : Whether to enable usage of -gfxWidth, -gfxHeight, -gfxFull or not.
  • -gfxWidth <UInt16> : Width of the resolution.
  • -gfxHeight <UInt16> : Height of the resolution.
  • -gfxFull <Boolean> : Whether to use fullscreen (true) or windowed mode (false).
  • -avoidVac <Boolean> : 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.
  • -customLaunchOptions <String> : the following string is added to the custom launch options which are passed to the game executable (csgo.exe).

-afxHookGoldSrc

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

  • -autoStart : If set HLAE will automatically launch AfxHookGoldSrc with the specified settings.
  • -noGui: 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.
  • -gamePath <String> : Sets the following string as path to use for the hl.exe to be launched.
  • -modification <String> : modification to use, e.g. cstrike
  • -customCmdLine <String> : the following string is added to the custom launch options which are passed to the game executable (hl.exe).
  • -gfxForce <Boolean> : Whether to force resolution or not (can be true/false).
  • -gfxWidth <UInt16> : Width of the resolution.
  • -gfxHeight <UInt16> : Height of the resolution.
  • -gfxBpp <Byte> : Bit depth, can be 16/24/32.
  • -forceAlpha <Boolean> : Whether to force support of 8-bit alpha channel or not.
  • -optimizeDesktopRes <Boolean> : This doesn't have any effect atm.
  • -optimizeVisibilty <Boolean> : Whether the game window visibility shall be optimized or not during recording (TOPMOST window if true and stuff like that), can be true/false).
  • -fullScreen <Boolean> : Whether to launch the game in fullscreen or not.
  • -renderMode <Byte> : 0 - Standard, 1 - FrameBuffer Object, 2 - Memory DC

-customLoader

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.

  • -autoStart : If set HLAE will automatically launch the CustomLoader with the specified settings.
  • -noGui: 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.
  • -hookDllPath <String> : 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.
  • -programPath <String> : Sets the following string as path to use for the program (e.g. csgo.exe) to be launched.
  • -cmdLine <String> : the following string is added to the launch options which are passed to the program executable (e.g. csgo.exe).
  • -addEnv <String>: The following string is added to the environment variables passed to the program executable (e.g. csgo.exe). Can be used multiple times.
⚠️ **GitHub.com Fallback** ⚠️