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

block brake close to station causes long trains to overlap on ride startup #22049

Open
cheweytoo opened this issue May 17, 2024 · 5 comments
Open
Labels
bug Something went wrong.

Comments

@cheweytoo
Copy link

cheweytoo commented May 17, 2024

Operating System

Ubuntu Linux 22.04.4

OpenRCT2 build

8b51112 develop, Linux AppImage

Base game

RollerCoaster Tycoon 2

Area(s) with this issue?

No response

Describe the issue

With a block brake directly behind close to a station and trains longer than the station (via cheat) that reach beyond that block brake, a ride will initially start with overlapping trains.

overlapping_trains

See attached park.

In general, the handling of block lengths shorter than train length works fine, and a track "fills up" leaving approprite gaps. This case here seems to somehow circumvent that logic.

Also: When the ride is running, everything works as expected.

Steps to reproduce

Not sure exactly.

  • build ride with block brake directly touching the back of the station
  • use cheat to have trains longer than station
  • see trains overlap when starting ride

I've seen it happen with a block brake close to but not directly touching the station as well now (thanks, @astraylife1).

Attachments

overlapping_trains.zip

@cheweytoo cheweytoo added the bug Something went wrong. label May 17, 2024
@cheweytoo
Copy link
Author

cheweytoo commented May 17, 2024

I figured out a reduced testcase: It seems to be caused by the block brake directly touching the station.

I've updated the issue description and steps to reproduce.

Park with reduced testcase:

overlapping_trains_1_station.zip

@cheweytoo cheweytoo changed the title long trains overlap on ride startup in certain conditions block brake directly behind station causes trains to overlap on ride startup May 17, 2024
@astraylife1
Copy link

I've noticed this as well. It isn't inherent to touching the station. You are using a cheat to make the trains longer than the station allows. So when the game spawns the vehicles, they may overlap if the trains are so long that they overlap the preceding block brake. The ride will correct itself once you cycle the trains. I wouldn't say this is a bug but more of a result of using cheats. And the said cheat used even gives a warning tot take extra caution.

@cheweytoo
Copy link
Author

Well: If the block brake does not touch the station, trains don't overlap and an appropriate amount of block sections are skipped when filling the ride with trains, even with "long-cheated" trains.

Same as when block sections are shorter than trains, which can and does happen without using any cheats at all.

@astraylife1
Copy link

I just tried it and was able to get the trains to overlap using one straight track piece between the block and the station.

@cheweytoo
Copy link
Author

cheweytoo commented May 17, 2024

I just tried it and was able to get the trains to overlap using one straight track piece between the block and the station.

Oh, interesting. Yes, so have I now. Weird, that didn't happen in my initial tests. Time to update the bug description. Again.

@cheweytoo cheweytoo changed the title block brake directly behind station causes trains to overlap on ride startup block brake close to station causes long trains to overlap on ride startup May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something went wrong.
Projects
None yet
Development

No branches or pull requests

2 participants