Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol handler to join network games #7735

nielsmh opened this issue Sep 11, 2019 · 0 comments


Copy link

commented Sep 11, 2019

It could be some good UI to support a protocol handler to join network games.
A protocol handler could allow players to make links to a server directly from a website or social service and have players join through that. It would also make the browser at more accessible.

URI scheme

Example of what an OpenTTD server link could look like:

Suggested parts:

  • openttd: because a scheme name is required
  • // because everyone else does it
  • IP address (or hostname) and port
  • ? make a HTTP-like query string
  • version=1.9.3 could in the future allow having a meta-handler that selects between multiple installed versions of the game for the required one
  • password= server password, leave out if not required (prompt user if server needs one or the provided is wrong)
  • join= join a company (leave out to spectate)
  • join=new create a new company on connect, if possible
  • companypassword= password to join company, or to set on the new company created (spectate if provided password is wrong)


Every OS has its own way of registering URI handlers, the installers/packaging would have to handle that.

The implementation in game would be a commandline parameter such as -U <uri>. The game should perhaps ask the player for confirmation before beginning to connect, so they don't accidentally connect to random servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.