Uplay Command Line Arguments List
- C Programming Tutorial
- C Programming useful Resources
- Selected Reading
How to find a programs available Command Line Arguments. Now that you know how to use a command line argument, you may be wondering how you can get a list of arguments that are available in a program. These command-line parameters will work with any Source engine games (Half-Life 2, Counter-strike: Source, etc.). Note: Command parameters are described inside the characters. Syntax: hl2.exe.
It is possible to pass some values from the command line to your C programs when they are executed. These values are called command line arguments and many times they are important for your program especially when you want to control your program from outside instead of hard coding those values inside the code.
The command line arguments are handled using main() function arguments where argc refers to the number of arguments passed, and argv[] is a pointer array which points to each argument passed to the program. Following is a simple example which checks if there is any argument supplied from the command line and take action accordingly −
When the above code is compiled and executed with single argument, it produces the following result.
When the above code is compiled and executed with a two arguments, it produces the following result.
When the above code is compiled and executed without passing any argument, it produces the following result.
It should be noted that argv[0] holds the name of the program itself and argv[1] is a pointer to the first command line argument supplied, and *argv[n] is the last argument. If no arguments are supplied, argc will be one, and if you pass one argument then argc is set at 2.
You pass all the command line arguments separated by a space, but if argument itself has a space then you can pass such arguments by putting them inside double quotes ' or single quotes '. Let us re-write above example once again where we will print program name and we also pass a command line argument by putting inside double quotes −
When the above code is compiled and executed with a single argument separated by space but inside double quotes, it produces the following result.
Command-Line Arguments are strings of keywords that you can pass when running the executable via the command line or a shortcut to the executable. Their purpose is to customize the manner in which the engine runs to suit the needs of the developer or user. This can be as simple as causing the editor to run instead of the game, or it can be much more involved such as starting up the game with a certain map running at a specified resolution and framerate while dumping out each frame to individual image files.
Modes
These arguments are used to force the main editor executable (UE4Editor.exe
) to run as the game or a server using uncooked content.
Example:
Examples:
General Options
Argument | Description |
---|---|
Example:
Developer
ABSLOG
: Same as LOG= but without a filename length check.ALLUSERS
: Add the game for all users when INSTALLGE is specified.AUTO
: Assume yes on all questions. (for example during compile)AUTOCHECKOUTPACKAGES
: Automatically checkout packages that need to be saved.AutomatedMapBuild
: Perform an automated build of a specified map.BIASCOMPRESSIONFORSIZE
: Override compression settings with respect to size.BUILDMACHINE
: Set as build machine. Used for deciding if debug output is enabled.BULKIMPORTINGSOUNDS
: Use when importing sounds in bulk. (Content Browser specific.)CHECK_NATIVE_CLASS_SIZES
: Enable checking of native class sizes. Note: Native classes on console platforms will cause native class size checks to fail even though they are assumed to be correct.CODERMODE
: Enables Coder mode.COMPATSCALE
: Set compatibility settings manually to override PCCompat tool settings.CONFORMDIR
: Directory to use when conforming packages.COOKFORDEMO
: Specify as cooking packages for the demo.COOKPACKAGES
: Tag to specify cooking packages.CRASHREPORTS
: Always report crashes of the engine.D3DDEBUG
: Use a d3d debug device.
DEVCON
: Disable secure connections for developers. (Uses unencrypted sockets.)DUMPFILEIOSTATS
: Track and log File IO statistics.
FIXEDSEED
: Initialize the random number generator with a fixed value, 0.FIXUPTANGENTS
: Fix legacy tangents in distributions automatically.FORCELOGFLUSH
: Force a log flush after each line.FORCEPVRTC
: Force pvrtc texture compression for mobile platform.FORCESOUNDRECOOK
: Force a complete re-cook of all sounds.GENERICBROWSER
Akashadoothu release date. : Use the Generic Browser.INSTALLED
: For development purposes, run the game as if installed.INSTALLFW
/UNINSTALLFW
: Set whether the handling of the firewall integration should be performed.INSTALLGE
: Add the game to the Game Explorer.CULTUREFORCOOKING
: Set language to be used for cooking.LIGHTMASSDEBUG
: Launch lightmass manually with -debug and allow lightmass to be executed multiple times.LIGHTMASSSTATS
: Force all lightmass agents to report detailed stats to the log.LOG
: When used as a switch (-log), opens a separate window to display the contents of the log in real time. When used as a setting (LOG=filename.log), tells the engine to use the log filename of the string that immediately follows.LOGTIMES
: Print time with log output. (Default, same as setting LogTimes=True in the [LogFiles] section of *Engine.ini.)NOCONFORM
: Tell the engine not to conform packages as they are compiled.NOCONTENTBROWSER
: Disable the Content Browser.NOINNEREXCEPTION
: Disable the exception handler within native C++.NOLOADSTARTUPPACKAGES
: Force startup packages not to be loaded. You can use this if objects in a startup package must be deleted from within the editor.NOLOGTIMES
: Do not print time with log output. (Same as setting LogTimes=False in the [LogFiles] section of *Engine.ini.)
NOPAUSE
: Close the log window automatically on exit.NOPAUSEONSUCCESS
: Close the log window automatically on exit as long as no errors were present.NORC
: Disable the remote control. Used for dedicated servers.NOVERIFYGC
: Do not verify garbage compiler assumptions.NOWRITE
: Disable output to log.
SEEKFREELOADING
: Only use cooked data.SEEKFREEPACKAGEMAP
: Override the package map with the seekfree (cooked) version.SEEKFREELOADINGPCCONSOLE
: Only use cooked data for PC console mode.SEEKFREELOADINGSERVER
: Only use cooked data for server.SETTHREADNAMES
: (Xbox only) Force thread names to be set. This can mess up the XDK COM API which is why it must be explicitly set to be performed if desired.SHOWMISSINGLOC
: If missing localized text, return error string instead of English text.SILENT
: Disable output and feedback.TRACEANIMUSAGE
: Trace animation usage.TREATLOADWARNINGSASERRORS
: Force load warnings to be treated as errors.UNATTENDED
: Set as unattended. Disable anything requiring feedback from user.UNINSTALLGE
: Remove the game from the Game Explorer.USEUNPUBLISHED
: Force packages in the Unpublished folder to be used.VADEBUG
: Use the Visual Studio debugger interface.VERBOSE
: Set compiler to use verbose output.VERIFYGC
: Force garbage compiler assumptions to be verified.WARNINGSASERRORS
: Treat warnings as errors.
Rendering
ConsoleX
: Set the horizontal position for console output window.ConsoleY
: Set the vertical position for console output window.WinX
: Set the horizontal position of the game window on the screen.WinY
: Set the vertical position of the game window on the screen.ResX
: Set horizontal resolution for game window.ResY
: Set vertical resolution for game window.VSync
: Activate the VSYNC via command line. Pprevents tearing of the image but costs fps and causes input latency.)NoVSync
: Deactivate the VSYNC via command line.BENCHMARK
: Run game at fixed-step in order to process each frame without skipping any frames. This is useful in conjunction with DUMPMOVIE options.DUMPMOVIE
: Dump rendered frames to files using current resolution of game.EXEC
: Executes the specified exec file.FPS
: Set the frames per second for benchmarking.FULLSCREEN
: Set game to run in fullscreen mode.SECONDS
: Set the maximum tick time.WINDOWED
: Set game to run in windowed mode.
Network
LANPLAY
: Tell the engine to not cap client bandwidth when connecting to servers. Causes double the amount of server updates and can saturate client's bandwidth.Limitclientticks
: Force throttling of network updates.MULTIHOME
: Tell the engine to use a multihome address for networking.NETWORKPROFILER
: Enable network profiler tracking.NOSTEAM
: Set steamworks to not be used.PORT
: Tell the engine to use a specific port number.PRIMARYNET
: Affect how the engine handles network binding.
User
NOHOMEDIR
: Override use of My Documents folder as home directory.NOFORCEFEEDBACK
: Disable force feedback in the engine.NOSOUND
: Disable any sound output from the engine.NOSPLASH
: Disable use of splash image when loading the game.NOTEXTURESTREAMING
: Disable texture streaming. Highest quality textures are always loaded.ONETHREAD
: Run the engine using a single thread instead of multi-threading.PATHS
: Set what paths to use for testing wrangled content. Not used for shipping releases.PREFERREDPROCESSOR
: Set the thread affinity for a specific processor.USEALLAVAILABLECORES
: Force the use of all available cores on the target platform.
Server Switches
LOGIN
: Set username to use when logging in.PASSWORD
: Set password to use when logging in.
Game Stats/Database
NODATABASE
: Do not use database, and ignore database connection errors.NOLIVETAGS
: Skip loading unverified tag changes from SQL database. Only load for current user.
INI/Config Files
ENGLISHCOALESCED
: Revert to the default (English) coalesced .ini if the language-localized version cannot be found.NOAUTOINIUPDATE
: Suppress prompts to update .ini files.NOINI
: Do not update the .ini files.REGENERATEINIS
: Forces .ini files to be regenerated.
Use Aaother command-line argument to temporarily override which INIs are loaded by the game or editor. For example, if a custom 'MyGame.ini' is to be used instead of 'MyOldGame.ini', the argument would be -GAMEINI=MyGame.ini. This table lists the arguments used to override the different INI files used in UE4:
Argument | Description |
---|---|
Argument | Description |
Command-Line Argument | INI Override |
---|---|
![]() |