We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OpenTTD/NML provides two ways of setting industry probability: via property and by callback.
The specs say both are range 0..255, but using the same value in otherwise-identical industries results in different industry counts.
I created a test GRF which clearly illustrates this: https://github.com/2TallTyler/industry_probabilities
The text was updated successfully, but these errors were encountered:
First a hint for you: "prob_random" is deprecated and has the same meaning as "prob_map_gen". You probably meant "prob_in_game".
About the issue: This is a bug in OpenTTD. GetScaledIndustryGenerationProbability() treats property and callback differently.
Sorry, something went wrong.
Thanks, that is indeed what I meant. I've updated the code and confirmed that it does not change the reported behavior.
Fix OpenTTD#8311, b98c776: Industry probability at map generation was…
e544f8b
… scaled differently when set via property or callback.
df5362a
Revert "Fix OpenTTD#8311, b98c776: Industry probability at map genera…
e875b68
…tion was scaled differently when set via property or callback." This reverts commit df5362a.
No branches or pull requests
OpenTTD/NML provides two ways of setting industry probability: via property and by callback.
The specs say both are range 0..255, but using the same value in otherwise-identical industries results in different industry counts.
I created a test GRF which clearly illustrates this:
https://github.com/2TallTyler/industry_probabilities
The text was updated successfully, but these errors were encountered: