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
Dump info console commands #8548
Conversation
ae8603f
to
19fd463
Compare
Tested, this is great. 😺
|
What industry information would you want to be shown? The info of an individual industry or industry tile is probably more interesting than static information about industries in general. (I don't have a console command to show industry information in my branch, but I do have various things added to the debug window for industries and industry tiles).
That sounds to me like the sort of thing which should go in the doc/ folder, (or on the wiki). |
I agree, changed my mind. There are rare cases where industries aren't appearing on the map for whatever reason and it might be useful to be able to dump information about the type. But it's so rare, and so unlikely to actually help diagnose the issue, versus reading the grf code. |
This currently includes: * Rail types * Road/tram types * Cargo types See: OpenTTD#8545
19fd463
to
6db61e4
Compare
Motivation / Problem
This is a partial implementation of the suggested improvements for visibility of information useful for debugging such as road/tram/rail flags as described in #8545.
Description
This adds a console command which dumps information on a named feature.
dumpinfo roadtypes
dumps information on road/tram typesdumpinfo railtypes
dumps information on rail typesdumpinfo cargotypes
dumps information on cargo typesExample console output:
Limitations
So far this only includes road/tram types, rail types and cargo types.
This only includes a subset of available fields (those which are not otherwise indicated in the UI and have debugging implications).
More features types and/or fields could be added later as required.
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.