OpenRCT2 / OpenRCT2/OpenRCT2

Deleted station still part of coaster

Open
#25,415 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

Windows 10, 64-bit

OpenRCT2 build

OpenRCT2, v0.4.27 (dbb9fd9dec) provided by GitHub

Base game

RollerCoaster Tycoon 2

Area(s) with this issue?

This bug is specific to multiplayer

Describe the issue

During a multiplayer session with a friend (in a high-ping [taking nearly a second for my actions to be seen by me], probably very low bandwidth connection - we'd suffered outright disconnects a couple times), we were both editing a station of a roller coaster (both adding/removing pieces to the front and/or back); I am unsure if the station was split at one point. In any case, we only intended for there to be 1 station and that's what it looked like it had. But once the ride was built (we both added & removed pieces during that process), it started demanding a 2nd entrance and/or exit. Test results only came in after 2 laps. The graphs (altitude/velocity/G-forces) only show a duration of 1 lap. Destroying the station and rebuilding it had no effect (we both tried). Guests will line up using the 2nd entrance, but will not enter the ride, no matter which lap the coaster trains are on. Deleting the station shows that there's still a station left (see "steps to reproduce").

I have several plugins installed, but I didn't intentionally use any of them (and to my knowledge the only ones that make changes automatically are price-related and randomizing colours of items sold by stalls). My friend, who was hosting, had no plugins installed. We didn't use any cheats or the Tile inspector; I opened the Tile inspector when the bug occurred and found only a single "Track" listed on each tile (and no Track after removing the station, despite the ride insisting there is still a station somewhere).

Steps to reproduce
  1. In the attached park file, find Flying Roller Coaster 1
  2. Observe that there are 2 entrances, 2 stations (in the main view) and that the Test Results show 2 sections
  3. Delete its station and observe that there are still buttons for building an Entrance/Exit (though they aren't allowed to be placed anywhere)

To recreate from scratch, I suspect the multiplayer conditions I described might be relevant (i.e. high ping allowing an action to be taken from a client that seems reasonable but causes a bug by the time it's run by the host?)

Attachments

Rollercoaster Heaven Glitched.zip

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 by loading the attached Rollercoaster Heaven Glitched.zip and follow the listed steps for Flying Roller Coaster 1. Investigate how multiplayer station edits are applied and how a deleted station remains represented. Done means deleting the station removes the phantom station, entrance/exit controls, and extra test section without affecting valid rides.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
distributed-systems, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.