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

Station catching area corrupted #7198

Closed
George-VB opened this issue Feb 9, 2019 · 10 comments
Closed

Station catching area corrupted #7198

George-VB opened this issue Feb 9, 2019 · 10 comments

Comments

@George-VB
Copy link

master 20190207
image
Station should not get food from industry
Looks like station catching area is calculated not as shown, but a ship station (the ship station is connected, but on the other side)

@nielsmh
Copy link
Contributor

nielsmh commented Feb 9, 2019

Total catchment area is not quite as you'd imagine from the visualisation of a single station part's catchment area.

The "base" station area is the orthogonal bounding box for all station parts (i.e. min and max X/Y bounds), and the catchment radius around that is the largest radius for any one station part. Meaning if you place an international airport outside a city, and then link a single bus stop to it, up to 16 tiles away (or however settings are set), that bus stop will not just have the same catchment radius as the airport, but all the empty tiles between the two parts will also be considered.

@Eddi-z
Copy link
Contributor

Eddi-z commented Feb 9, 2019

Short version: if you add a dock to a station, all station tiles get a radius of 5, not just the dock tiles.
(there's also a discrepancy between delivering and receiving cargo for non-rectangular stations)

@nielsmh
Copy link
Contributor

nielsmh commented Feb 9, 2019

I tried making an illustration of the concept:
image
image

The white outline is the combined station area, the purple is the catchment radius. The total catchment area is the sum of those.

@Eddi-z
Copy link
Contributor

Eddi-z commented Feb 9, 2019

Here's an illustration of the deliver/receive discrepancy, the station accepts vehicles, but does not get any coal
bardingham transport 24 feb 1965

reason is, for delivering vehicles, the rectangle around the station is considered, like in nielsm's picture, and there is an industry tile in that rectangle (radius 4)

but for receiving coal, the rectangle around the industry is considered, and there is no station tile in the rectangle (radius 4)

@Eddi-z
Copy link
Contributor

Eddi-z commented Feb 9, 2019

if you add another station tile, the train now loads coal
bardingham transport 3 jun 1965

@George-VB
Copy link
Author

Can drawing of the catchment area be improved in such a way, that allows to see the real area of the station? May be some button "show catchment area"?

@Eddi-z
Copy link
Contributor

Eddi-z commented Feb 9, 2019

i believe someone tried that on the forum once, but gave up when he noticed this discrepancy

@George-VB
Copy link
Author

Is it documented on the wiki (with pictures like nielsmh's)?

@planetmaker
Copy link
Contributor

planetmaker commented Feb 9, 2019

Extensively and for years and under a clear title: https://wiki.openttd.org/Catchment_area

@nielsmh nielsmh closed this as completed Feb 9, 2019
@J0anJosep
Copy link
Contributor

J0anJosep commented Feb 9, 2019

Can drawing of the catchment area be improved in such a way, that allows to see the real area of the station? May be some button "show catchment area"?

i believe someone tried that on the forum once, but gave up when he noticed this discrepancy

There are several patches and patchpacks that have a "Show catchment are" feature.
About the discrepancy about in/out areas, I wrote a patch with a new setting to make them equal long ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants