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

[Bug]: Articulated Vehicles not showing correct capacity in buy menu #10032

Closed
GarlicBread42 opened this issue Sep 14, 2022 · 2 comments
Closed
Labels
bug Something isn't working component: NewGRF This issue is related to NewGRFs good first issue Good for newcomers

Comments

@GarlicBread42
Copy link

Version of OpenTTD

12.2

Expected result

When a non-default cargo is chosen from the buy menu, vehicle should show the actual capacity of the whole vehicle.

Actual result

If a non-default cargo is chosen from the buy menu, buy menu shows two lines of capacity.
One is displaying a wrong result for the default cargo the vehicle is coded in, the other line shows a different capacity.

grafik
grafik

When bought, the cargo capacity is as intended by the newgrf.
grafik

Steps to reproduce

  1. Choose any articulated vehicle in the buy menu
  2. Switch Cargo in buy menu to any refittable cargo.
@andythenorth
Copy link
Contributor

One clarification to repro steps. The bug doesn't manifest when the filtered cargo matches the default cargo for the units of the articulated vehicle.

@glx22
Copy link
Contributor

glx22 commented Sep 14, 2022

Weight is wrong too.
#9954 is a related issue.

JGRennison added a commit to JGRennison/OpenTTD-patches that referenced this issue Sep 16, 2022
@2TallTyler 2TallTyler added good first issue Good for newcomers component: NewGRF This issue is related to NewGRFs bug Something isn't working labels Oct 19, 2022
JGRennison added a commit to JGRennison/Upstream-OpenTTD that referenced this issue Jan 6, 2023
JGRennison added a commit to JGRennison/Upstream-OpenTTD that referenced this issue Jan 6, 2023
JGRennison added a commit to JGRennison/Upstream-OpenTTD that referenced this issue Jan 7, 2023
JGRennison added a commit to JGRennison/Upstream-OpenTTD that referenced this issue Jan 7, 2023
michicc pushed a commit to michicc/OpenTTD that referenced this issue Jan 27, 2023
michicc pushed a commit to michicc/OpenTTD that referenced this issue Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: NewGRF This issue is related to NewGRFs good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants