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]: Town GUI shows amount of Mail produced and transported, even when no Mail cargo type exists in GRF #9714

Closed
2TallTyler opened this issue Nov 24, 2021 · 2 comments

Comments

@2TallTyler
Copy link
Member

2TallTyler commented Nov 24, 2021

Version of OpenTTD

12.1

Expected result

When using a NewGRF industry set which does not define a Mail cargotype (Action0, Property 18 = 02) or have a cargo in the typical mail cargo ID of 2, the Town GUI does not list the amount of Mail produced and transported last month.

Actual result

The GUI displays an amount of "Nothing" produced and transported last month.

(Note: It appears that the game is still calculating mail generation based on the mail multiplier house property, which displays as <invalid cargo> when I use the tile inspector on a house. I'll create a separate issue for this).

mail

Steps to reproduce

  1. Use an industry set which doesn't define a Mail cargo, like Minimalist Industries, attached: minimalist_industries.zip.
  2. Open the Town GUI for any town.
@nielsmh
Copy link
Contributor

nielsmh commented Nov 25, 2021

As I also commented in the other issue, in my opinion it's the NewGRF that's faulty when it undefines one of the core cargo types the game is built around.

@TrueBrain
Copy link
Member

Similar to #9715, closing this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants