OpenRCT2 / OpenRCT2/OpenRCT2

[Bug] openrct2-cli `--verbose` flag prevents master server registration -> clients can't connect

Open
#16,421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
16.2k
Forks
1.9k
Avg merge
1d 20h
Merged PRs (30d)
80

Description

Operating System

[Linux (x86-64)] debian:bullseye-slim

OpenRCT2 build

OpenRCT2, v0.3.5.1 (1085a30 on develop) provided by GitHub

Describe the issue

The --verbose flag seems to prevent a dedicated server from registering, or even attempting to register, with the master server. It also prevents clients from connecting at all.

May be related to #16401.

Granted, this has only been tested on a non-typical setup/build (see OS and OpenRCT2 build).

Area(s) with issue?

This bug is specific to multiplayer

Steps to reproduce
  1. Run ./OpenRCT2/openrct2-cli host Data/save/save.sv6 --port 25579 --user-data-path /home/container/Data/ --verbose on non-interactive Docker container.
  2. "Registering server on master server" almost never appears (I've only seen it appear once), and "Server successfully registered on master server" never appears. However, "Listening for clients on *:25579" does appear everytime.
  3. Try connecting with a client manually (mine is Windows x64) with: openrct2.com join <IP address> --port 25579. Client will try to authenticate for a second, and then disconnect (very similar behavior to issue #16396; maybe related?).
Attachments

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproduced openrct2-cli host command and compare registration and client-connection behavior with and without --verbose. Read the related issues #16401 and #16396, then trace the master-server registration and client authentication paths. Done means a verbose dedicated server registers successfully and accepts client connections.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.