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

"number of attempts" variable for Industry location permissibility callback (28) #5450

Closed
DorpsGek opened this issue Jan 27, 2013 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Pikka opened the ticket and wrote:

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.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/5450
@DorpsGek
Copy link
Member Author

Alberth wrote:

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.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5450#comment11910

@DorpsGek
Copy link
Member Author

andythenorth closed the ticket.

Reason for closing: Won't implement

Nah :)


This comment was imported from FlySpray: https://bugs.openttd.org/task/5450

@DorpsGek DorpsGek added NewIndustries flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant