Page 1 of 1

Client command line: avoid typing same thing every time?

Posted: Sun Jan 18, 2015 6:50 pm
by Corbeau
Howdy. Is there a way to put the server address, port and player name into the Client command line (in order to put it into the shortcut) so that I don't have to type it in every time I join the server? I'm playing LongTurn at the moment, which means I'll be connecting to it a few hundred times and I'm trying to avoid having to type "lt34.longturn.org 5034 Corbeau" every single time.

Re: Client command line: avoid typing same thing every time?

Posted: Sun Jan 18, 2015 8:02 pm
by cazfi

Code: Select all

> freeciv-gtk3 --help
Usage: freeciv-gtk3 [option ...]
Valid option are:
  -A, --Announce PROTO  Announce game in LAN using protocol PROTO (IPv4/IPv6/none)
  -a, --autoconnect     Skip connect dialog
  -d, --debug NUM       Set debug log level (0 to 4, or 4:file1,min,max:...)
  -F, --Fatal [SIGNAL]  Raise a signal on failed assertion
  -f, --file FILE       Load saved game FILE
  -H, --Hackless        Do not request hack access to local, but not spawned, server
  -h, --help            Print a summary of the options
  -l, --log FILE        Use FILE as logfile (spawned server also uses this)
  -M, --Meta HOST       Connect to the metaserver at HOST
  -m, --music FILE      Read music tags from FILE
  -n, --name NAME       Use NAME as username on server
  -P, --Plugin PLUGIN   Use PLUGIN for sound output [none, sdl]
  -p, --port PORT       Connect to server port PORT (usually with -a)
  -r, --read FILE       Read startup script FILE (for spawned server only)
  -S, --Sound FILE      Read sound tags from FILE
  -s, --server HOST     Connect to the server at HOST (usually with -a)
  -t, --tiles FILE      Use data file FILE.tilespec for tiles
  -v, --version         Print the version number
      --                Pass any following options to the UI.
                        Try "freeciv-gtk3 -- --help" for more.
Report bugs at http://gna.org/projects/freeciv/
You're after "-s", "-p", and "-n"

Re: Client command line: avoid typing same thing every time?

Posted: Sun Jan 18, 2015 9:27 pm
by Corbeau
Indeeed. Thanks.