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

Mechanic will inspect lift/boat hire even though it cannot break down #18121

Open
beam41 opened this issue Sep 27, 2022 · 8 comments
Open

Mechanic will inspect lift/boat hire even though it cannot break down #18121

beam41 opened this issue Sep 27, 2022 · 8 comments
Labels
alteration A change to an existing feature. discussion Some input from team members is wanted.

Comments

@beam41
Copy link
Contributor

beam41 commented Sep 27, 2022

Operating System

Windows 11 64 bit

OpenRCT2 build

OpenRCT2, v0.4.1-361-ga8073f6 (a8073f6 on develop) provided by GitHub

Describe the issue

In original rct2 and openrct2 mechanic does ignore the ride that cannot break down like crooked house.

However, they still inspect lift and boat hire (rowing boats, swans, and canoes boat hire cannot break).

Screenshot (1)
In original rct2

Screenshot 2022-09-28 000411
In openrct2

I suspect that because lift and boat hire have breakdown type, the mechanic will inspect them, but they do not check if the ride can actually break.

Area(s) with issue?

The bug also exists in RCT2 (vanilla)

Steps to reproduce

  1. has a park with enough mechanic to inspect all ride and unbreakable ride with lift and boat hire (rowing boats, swans, and canoes)
  2. Run the park for very long time
  3. check the ride that cannot break (Marcel has video for them)
  4. All unbreakable ride will have very high time since last inspection, except lift and boat hire which has time within inspection range.

Attachments

My park use in testing
Testbreak.zip

@beam41 beam41 added the bug Something went wrong. label Sep 27, 2022
@Gymnasiast
Copy link
Member

The lift can most certainly break down, and so can Boat Hire, although only if it’s using motorised boats (Bumper Boats, Jet Skis).

@Gymnasiast Gymnasiast closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2022
@Gymnasiast Gymnasiast added invalid/incomplete Not applicable or missing information. and removed bug Something went wrong. labels Sep 28, 2022
@beam41
Copy link
Contributor Author

beam41 commented Sep 28, 2022

@Gymnasiast and I think that means we have to check if we have to check if ride need inspection base on vehicle type, but it might not worth fixing, I understand why you close.

I never seen lift break without cheat tho.

@Gymnasiast Gymnasiast added alteration A change to an existing feature. and removed invalid/incomplete Not applicable or missing information. labels Sep 28, 2022
@Gymnasiast Gymnasiast reopened this Sep 28, 2022
@Gymnasiast Gymnasiast added the discussion Some input from team members is wanted. label Sep 28, 2022
@ocalhoun6
Copy link
Contributor

Just to be sure, I ran a quick test:
Barony Bridge 2022-09-28 10-03-15
Ran 7 lifts for over 10 in-game years, with no inspections -- none of them ever broke down.

@Gymnasiast
Copy link
Member

I did some digging and found this out: while the Lift ride can break down, its vehicle, for a reason I don’t understand, set a flag that prevents them.

I can’t say I understand it, seems like an error to me.

@beam41
Copy link
Contributor Author

beam41 commented Oct 1, 2022

As Marcel said in his video. If it can breakdown, we need mechanic at the top if path not connects to the below, but he also points out it might be a bug.

Maybe Chris Sawyer make lift breakdown like other ride first, then realized that the problem could happen. So he decided to kinda band aid fix by set flag to never break.

@beam41
Copy link
Contributor Author

beam41 commented Oct 1, 2022

I change the check from ride->GetRideTypeDescriptor().AvailableBreakdowns == 0 to !ride->CanBreakDown() and it fix the issue and work fine even when I force breakdown using cheat

image

Should I make the pull request for this now?

@Gymnasiast Gymnasiast changed the title Mechanic will inspect lift/boat hire even though it cannot break down. Mechanic will inspect lift/boat hire even though it cannot break down Oct 1, 2022
@Gymnasiast
Copy link
Member

@beam41 Yes, that seems sensible to me.

@beam41
Copy link
Contributor Author

beam41 commented Oct 2, 2022

Ok, might set Inspection never and make it grayed out as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alteration A change to an existing feature. discussion Some input from team members is wanted.
Projects
None yet
Development

No branches or pull requests

3 participants