Page 1 of 1

Accepted_cargos: [[PASS, 8], [MAIL, 2], [GOOD, 2]];

Posted: 10 Apr 2022 14:33
by temporal8
Can someone explain the following numbers to me?

Accepted_cargos: [[PASS, 8], [MAIL, 2], [GOOD, 2]];

For example, if pass is 2 instead of 8 what changes in the game, does it generate more passengers or less?

In few words... how do I adjust the number of passengers generated by each building, for example a house generates fewer passengers (let's say 4 people) than a building (30 people)

Thanks in advance.

Re: Accepted_cargos: [[PASS, 8], [MAIL, 2], [GOOD, 2]];

Posted: 10 Apr 2022 15:42
by jfs
Town houses, I assume.
Under default rules, they generate passengers based on their population contribution. A house where more people live (or work) generates more passengers. Similar each building also has a mail generation property, that work exactly the same as the population in how much mail the building generates.
The alternative is to use the cargo_production callback to directly control how the building generates cargo.

The accepted_cargos property is used when cargo is delivered to a nearby station, to determine whether companies can unload different cargo types at the station and get paid for the delivery. If all tiles together within the station's catchment area have a cargo acceptance of 8 or more for a cargo type, then the station will accept that cargo for delivery.

Re: Accepted_cargos: [[PASS, 8], [MAIL, 2], [GOOD, 2]];

Posted: 11 Apr 2022 01:12
by Eddi
in short: "8" means one house suffices for a station to accept passengers, "2" means you need 4 houses in the catchment area.

the number has nothing to do with passenger generation. that's determined by population (different property)

Re: Accepted_cargos: [[PASS, 8], [MAIL, 2], [GOOD, 2]];

Posted: 14 Apr 2022 20:25
by temporal8
Thanks to both for reply guys, so the question now would be, what are appropriate population values for population? (I'm still working on my town set)

What would be the correct numbers based on an adequate gameplay for:

- A simple house
- A 4-story building.
- A skyscraper.

(asking a few examples to have a reference...)

The value is similar to reality? if 4 people live in a house = population: 4; ?

Thanks in advance.

Re: Accepted_cargos: [[PASS, 8], [MAIL, 2], [GOOD, 2]];

Posted: 14 Apr 2022 20:35
by Eddi
check this list for comparable houses in the default set:
https://newgrf-specs.tt-wiki.net/wiki/DefaultHouseProps

Re: Accepted_cargos: [[PASS, 8], [MAIL, 2], [GOOD, 2]];

Posted: 14 Apr 2022 20:50
by jfs
The population and mail generation properties are byte values, so their range is only 0 to 255.

Re: Accepted_cargos: [[PASS, 8], [MAIL, 2], [GOOD, 2]];

Posted: 16 Apr 2022 19:39
by temporal8
Thanks again guys. :bow: