Freeciv21 Manual
  • Getting
  • Playing
  • Manuals
    • Game Manual
    • Server Manual
    • Advanced Game Topics
      • Advanced Player Setup
      • Launching the Game with fc21 Links
      • Controlling the Map Generator
    • Program Manual Pages
    • Using the Modpack Installer Utility
    • Common Ruleset Reference Pages
  • Modding
  • Contributing
  • Coding
  • Glossary of Terms
Freeciv21 Manual
  • Manuals
  • Advanced Game Topics
  • Launching the Game with fc21 Links
  • View page source

Launching the Game with fc21 Links

The Freeciv21 Server accepts connection requests with a fc21:// protocol handler on all platforms. This makes it possible to include login links on the Longturn.net webserver, or for games self-hosted by players.

Here is a sample from a command line:

$ ./freeciv21-client "fc21://[username]:[password]@[server]:[port]" -a -t amplio2

In this example, a player is launching the client from a command line and including the URI as the primary input. By passing [username], [password], [server], and [port] this command provides all the details needed to connect to a game. The -a enables auto-connect and -t amplio2 tells the client to load the Amplio2 tileset.

Alternately, HTML can be used in a webpage. For example:

<a href="fc21://[username]:[password]@[server]:[port]">Game Name</a>

Notice the same 4 parameters. The [password] parameter can be obmitted. If so, the server will prompt the user for credentials before connecting.

Previous Next

© Copyright GPL-3.0-or-later, Freeciv21 and Freeciv Contributors.

Built with Sphinx using a theme provided by Read the Docs.