Difference between revisions of "Glossary:Command line arguments"
m (→GOG Galaxy: GOG Galaxy 2.0) |
|||
Line 74: | Line 74: | ||
# Under features tab enable '''Custom executables / arguments'''. | # Under features tab enable '''Custom executables / arguments'''. | ||
# Duplicate the entry that leads to game's executable that you want to apply custom command-line arguments for (in most cases File 1) or Add another executable. | # Duplicate the entry that leads to game's executable that you want to apply custom command-line arguments for (in most cases File 1) or Add another executable. | ||
− | # Scroll down to a new position and provide custom arguments in Arguments | + | # Scroll down to a new position and provide custom arguments in '''Arguments''' field. |
− | # Modify My label field if needed to more easily differentiate it. | + | # Modify '''My label''' field if needed to more easily differentiate it. |
− | # Check Default executable field, if you want this position to be used when launching the game from GOG Galaxy (alternatively, it can be launched manually by Right Clicking on the game in library and choosing it from Additional Executables. | + | # Check '''Default executable''' field, if you want this position to be used when launching the game from GOG Galaxy (alternatively, it can be launched manually by Right Clicking on the game in library and choosing it from Additional Executables. |
}} | }} | ||
Revision as of 15:16, 30 April 2020
Key points
- Commonly used to force windowed modes, custom specific resolutions or certain hidden settings.
General information
- Command-line argument at Wikipedia
A command line argument/parameter/option is additional data provided to an application at launch that might affect how the application behaves. They usually follow at the end of a launch command, after the name of the executable being run. For example, while many Windows users might be familiar with ipconfig /all
or ping google.com
for network diagnostics, those "commands" are made up of the application to run as well as the appropriate command-line argument to affect how the application runs. The full launch command used behind-the-scene in those examples are in reality:
"C:\Windows\System32\ipconfig.exe" /all "C:\Windows\System32\PING.EXE" google.com
Many games and software exposes certain parameters and options for command-line use to allow developers or users to configure the application in a certain way directly at launch, without requiring what might otherwise be rather cumbersome ways to do the same thing. This is often used to enable or configure settings not exposed through the built-in configuration menu of the application, or to load specific configurations (such as benchmark runs, listening servers, etc). While many command line arguments might be the same across multiple games, these are often the result of using the same engine or similar internal naming schemes among separate developers.
An application only supports the command line arguments it have been developed to support, and ignores those it does not recognize how to handle. Supported command line arguments must either be revealed by the developer or found by users by data mining the application. One such way of finding supported command lines involves using Process Explorer to extract all found strings of the executable and then going through those to find and test what might be applicable as an argument, parameter, or option.
Command line arguments often supported by games includes:
-fullscreen
,-windowed
, or a variation thereof to specify display mode to use.-resolution
,-width
or-height
to specify resolution to use.-console
to enable the built-in console if the application have one.
Windows
- Follow the instructions for the desired environment.
Desktop shortcuts
- For generic Windows desktop shortcuts.
Instructions[1] |
---|
"<path-to-game>\game.exe" -command Notes
|
Battle.net
Instructions[2] |
---|
|
Epic Games Store
Instructions |
---|
|
GOG Galaxy
Instructions[3] |
---|
|
- Command line arguments are missing from the Galaxy 2.0 beta and will be brought back in a future version of the client.[4]
GOG Galaxy 2.0
Instructions[5] |
---|
|
Origin
Instructions[6] |
---|
|
Steam
Instructions[7] |
---|
|
Uplay
Instructions[2] |
---|
|
References
- ↑ How to Add a Command Line Parameter to a Windows Shortcut
- ↑ 2.0 2.1 Verified by User:Dr4Wm4N on 2016-12-15
- ↑ Verified by User:Orzelek303 on 2018-02-01
- ↑ [1] - last accessed on 2019-11-27
- "it will be brought back - it's one of the regressions from 1.2 - apologies"
- ↑ Verified by User:Suicide machine on 2020-04-30
- ↑ Verified by User:Blackbird on 2016-11-02
- ↑ Verified by User:Hawaii_Beach on 2017-01-09