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

Non-player NewObjects #5424

Closed
DorpsGek opened this issue Jan 1, 2013 · 3 comments
Closed

Non-player NewObjects #5424

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

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Jan 1, 2013

Pikka opened the ticket and wrote:

Currently, NewObjects can be built only by players. I would like a callback, to be run during map generation, which could populate the map with non-player-owned NewObjects, in a similar fashion to the default lighthouse and transmitter. The callback would select a random location to try and build the object, and have four possible results afaict: Build the object and go again; Build the object and finish; Don't build and go again; and Don't build and finish.

Additionally, a NewObject equivalent of callback 143 (Protect building conditionally) would be useful. Some NewObjects (eg rocky outcrops) may be appropriately removable by the players, others (eg ancient monuments) would not.

Reported version: trunk
Operating system: All


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

DorpsGek commented Jan 1, 2013

Pikka wrote:

how does openttd know to try and build this object?
perhaps newobjects have a special "cargo" in action 3 for the map generation callback?
that's for whoever's actually programming it to work out
and that ain't me :)
one per town, one per map, only build on mountains, only build near coastlines, only build etc etc :]
although I don't think we have all the necessary variables yet ;)


This comment was imported from FlySpray: https://bugs.openttd.org/task/5424#comment11834

@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 1, 2013

Pikka wrote:

hrm
I want a version that runs during game
sure
it would look for industries :P
and plant overbuildable fields
maybe it could run at the beginning of the month, or year, or whatever :]


This comment was imported from FlySpray: https://bugs.openttd.org/task/5424#comment11835

@DorpsGek
Copy link
Member Author

planetmaker closed the ticket.

Reason for closing: Implemented

In r25878


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

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) enhancement 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