You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How many times, when building an industry, does the game try to place it before giving up?
A counter of attempts made so far would be VERY useful for the industry placement callback. Rather than hard-and-fast industry placement rules, it would allow industries to be given "desirable" placement criteria, which could then be gradually relaxed if the game can't find a suitable spot.
eg, an industry that is ideally placed on a high mountain. Callback says "must be placed higher than 12". What if nowhere on the map is higher than 12? Currently, you get no industry. With this var, the grf author could say "can't find a spot higher than 12 after x attempts? Try higher than 9", etc, and can keep relaxing the conditions until the industry is built.
Having the newgrf return the desirability to build at a given location instead would be another option. The downside is that the program must always keep trying for the maximum number of times, as further attempts may yield a better location.
Pikka opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/5450
The text was updated successfully, but these errors were encountered: