executable options

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Raath
New user
Posts: 4
Joined: 29 Feb 2012, 23:37

executable options

Post by Raath »

I did a search but can't find any articles that list out available start options for the executable. Is it possible to start the game using different window modes?

I play the game on a linux laptop with 1366x768 display. If I connect it up to an external monitor then I like to play in windowed mode where as if I play mobile in fullscreen. ATM I have to switch the mode type then exit the game and go back in to change the mode.

I'd idealy like to create 2 shortcuts so I can start the game either in windowed or full screen depending if I'm mobile or at one of my desks.
User avatar
Mysteryem
Global Moderator
Global Moderator
Posts: 728
Joined: 22 Sep 2008, 19:44
Location: UK

Re: executable options

Post by Mysteryem »

http://developer.wz2100.net/wiki/CommandLineOptions
:)
You'll probably want to use the --fullscreen, --windowed and --resolution WIDTHxHEIGHT flags. (all available flags and how to use them on your OS can be found at the link above)

Also moved the thread to help/troubleshooting.
"...If pure awesomeness were bricks, this would be the Great Wall of China...
The glory of this has collapsed on its self so far, that even the neutrons have collapsed."
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: executable options

Post by Berg »

Code: Select all

Usage: ./src/warzone2100 [OPTION...]
  --configdir=configuration directory   Set configuration directory
  --datadir=data directory              Set default data directory
  --debug=debug level                   Show debug for given level
  --debugfile=file                      Log debug output to file
  --flush-debug-stderr                  Flush all debug output written to stderr
  --fullscreen                          Play in fullscreen mode
  --game=game-name                      Load a specific game
  -h, --help                            Show this help message and exit
  --mod=mod                             Enable a global mod
  --mod_ca=mod                          Enable a campaign only mod
  --mod_mp=mod                          Enable a multiplay only mod
  --noassert                            Disable asserts
  --crash                               Causes a crash to test the crash handler
  --savegame=savegame                   Load a saved game
  --window                              Play in windowed mode
  --version                             Show version information and exit
  --resolution=WIDTHxHEIGHT             Set the resolution to use
  --shadows                             Enable shadows
  --noshadows                           Disable shadows
  --sound                               Enable sound
  --nosound                             Disable sound
  --join=host                           connect directly to IP/hostname
  --host                                go directly to host screen
  --texturecompression                  Enable texture compression
  --notexturecompression                Disable texture compression
  --fallback-mode                       Only use OpenGL 1.5
Raath
New user
Posts: 4
Joined: 29 Feb 2012, 23:37

Re: executable options

Post by Raath »

Der.... never checked the development section. Thanks for that guys. Exactly what I need.

Now I can play desked and mobile happily :)