Commandline options

Commandline options

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Locked
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Commandline options

Post by Argh » 15 Jan 2010, 15:10

Where's a list / documentation? I can't seem to find that anywhere.
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: Commandline options

Post by koshi » 15 Jan 2010, 15:14

Code: Select all

spring --help
Spring 0.80.5.2
This program is licensed under the GNU General Public License
Allowed options:

  -h [ --help ]            This help message
  -V [ --version ]         Display program version
  -f [ --fullscreen ]      Run in fullscreen mode
  -w [ --window ]          Run in windowed mode
  -x [ --xresolution ] arg Set X resolution
  -y [ --yresolution ] arg Set Y resolution
  -m [ --minimise ]        Start minimised
  -s [ --server ]          Run as a server
  -c [ --client ]          Run as a client
  -p [ --projectiledump ]  Dump projectile class info in projectiles.txt
  -t [ --textureatlas ]    Dump each finalized textureatlas in textureatlasN.tg
                           a
  -n [ --name ] arg        Set your player name
  -C [ --config ] arg      Configuration file
  --list-ai-interfaces     Dump a list of available AI Interfaces to stdout
  --list-skirmish-ais      Dump a list of available Skirmish AIs to stdout
0 x

User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Commandline options

Post by Argh » 15 Jan 2010, 15:24

Cool thanks!
0 x

tulipe
Posts: 3
Joined: 30 Mar 2018, 10:17

Re: Commandline options

Post by tulipe » 05 Jun 2018, 16:24

Some of theses commands don't work since at least spring 104 version. (For example --help doesn't display the list of arguments).
0 x

User avatar
Silentwings
Moderator
Posts: 3594
Joined: 25 Oct 2008, 00:23

Re: Commandline options

Post by Silentwings » 05 Jun 2018, 21:57

That's to be expected when you necro an 8 year old thread related to Spring 80.5.2.

However, --help does work on 104.0 (at least for me...)

Code: Select all

*************:/mnt/c/Users/******/Documents/My Games/Spring/engine/104.0$ ./spring.exe --help
spring.exe: Usage: C:\Users\******\Documents\My Games\Spring\engine\104.0\spring.exe [options] [path_to_script.txt or demo.sdfz]

  Flags from ../../rts/System/SpringApp.cpp:
    -benchmark (Enable benchmark mode (writes a benchmark.data file). The given
      number specifies the timespan to test.) type: int32 default: -1
    -benchmarkstart (Benchmark start time in minutes.) type: int32 default: -1
    -config (Exclusive configuration file) type: string default: ""
    -fullscreen (Run in fullscreen mode) type: bool default: false
    -game (Specify the game that will be instantly loaded) type: string
      default: ""
    -hidden (Start in background (minimised, no taskbar entry)) type: bool
      default: false
    -isolation (Limit the data-dir (games & maps) scanner to one directory)
      type: bool default: false
    -isolation-dir (Specify the isolation-mode data-dir (see --isolation))
      type: string default: ""
    -list-ai-interfaces (Dump a list of available AI Interfaces to stdout)
      type: bool default: false
    -list-ceg-classes (Dump a list of available projectile classes to stdout)
      type: bool default: false
    -list-config-vars (Dump a list of config vars and meta data to stdout)
      type: bool default: false
    -list-def-tags (Dump a list of all unitdef-, weapondef-, ... tags and meta
      data to stdout) type: bool default: false
    -list-skirmish-ais (Dump a list of available Skirmish AIs to stdout)
      type: bool default: false
    -map (Specify the map that will be instantly loaded) type: string
      default: ""
    -menu (Specify a lua menu archive to be used by spring) type: string
      default: ""
    -name (Set your player name) type: string default: ""
    -nocolor (Disables colorized stdout) type: bool default: false
    -oldmenu (Start the old menu) type: bool default: false
    -safemode (Turns off many things that are known to cause problems (i.e. on
      PC/Mac's with lower-end graphic cards)) type: bool default: false
    -server (Set listening IP for server) type: string default: ""
    -sync-version (Display program sync version (for online gaming)) type: bool
      default: false
    -test-creg (Test if all CREG classes are completed) type: bool
      default: false
    -textureatlas (Dump each finalized textureatlas in textureatlasN.tga)
      type: bool default: false
    -window (Run in windowed mode) type: bool default: false
    -write-dir (Specify where Spring writes to.) type: string default: ""
Feel free to report any that don't work to mantis, or to start a non-necro'ed thread.

Locked.
0 x

Locked

Return to “Engine”