Supreme Commander will accept many command line switches. You can set them up in your windows shortcut. This is a partial list, with some explanations.
You can automaticly launch a skirmish right after launching the game. To do that, you need to specify a map. The other switches are optional.
Command Line Switch | Description |
---|---|
/map map_folder | Set the map |
/faction faction | Set your faction - 1 = UEF - 2 = Aeon - 3 = Cybran - 4 = Seraphim |
/victory "victory_condition" | Set victory conditions - demoralization = Assassination - domination = Supremacy - eradication = Annihilation - sandbox = Sandbox |
/nofog | Set fog to None |
/blackfog | Set fog to Unexplored |
/predeployed | Set pre-built units to On |
Example:
SupremeCommander.exe /map SCMP_019 /faction 3 /nofog /victory "domination"
You can create your own switches :
lua/SinglePlayerLaunch.lua
Example:
if HasCommandLineArg("/gamespeed") then
options['GameSpeed'] = GetCommandLineArg("/gamespeed", 1)[1]
end
This will allow you to adjust game speed with the following switch :
/gamespeed "
gamespeed
"
Set game speed ("normal", "fast" or "adjustable")
Command Line Switch | Description |
---|---|
/aqtime | |
/audition | |
/bugreport | |
/data | |
/debug | Opens the debugging tool at startup |
/D3D10 | |
/EnableDiskWatch | The game engine will monitor all files on the disk, and if it detects a change, it will attempt to re-load that file immediately, if possible. This allows instant in-game updates of things like unit blueprints. |
/edit | |
/exitongameover | Application will exit when the game is over |
/file | |
/framerate | |
/genpath | |
/gpgnet | |
/gpgnetdev | |
/hook | |
/hostgame | |
/init | |
/interlocked | |
/joingame | |
/load | |
/loadrulesandexit | |
/log "log_file" | Logs messages to the given file. |
/mediacenter | |
/networksafe | |
/nobugreport | |
/noinitialunits | |
/nologbox | |
/nomass | |
/nomovie | Disable all pre-rendered movies |
/nomusic | Set music to Off |
/noprops | |
/nosound | Set sound to Off |
/novalidate | Do not test for minimum system requirements |
/p4yes | |
/perf | Performance test (same as /map PerfTest) |
/position X Y | Set the game window position to XxY |
/prefs prefs_file | Uses the given file for preferences instead of Game.prefs |
/profile profile | |
/purgecache | |
/replay "replay_file" | Plays the given replay file. Example: /replay "C:\My Replays\Me vs The Bad Guys.SupremeCommanderReplay" |
/savereplay "replay_file" | Save the replay to the given file. Does not work for skirmishes started with /map map_folder - you have to hook lua/SinglePlayerLaunch.lua and edit sessionInfo.createReplay = true (in function SetupCommandLineSkirmish) for this to work. |
/scenario | |
/showlog | Shows the log window at startup |
/size X Y | Set a XxY resolution. Example: /size 1024 768 |
/softwareinstancing | |
/sounds | |
/spewbp | |
/spewsound | |
/sse2 | |
/synclog | |
/tutorials | |
/waitfordebugger | |
/windowed X Y | Start game in a window, with a XxY resolution. ex: /windowed 1024 768 |
/xactdebug |
Other Switches