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

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
temporal8
Route Supervisor
Route Supervisor
Posts: 429
Joined: 17 May 2019 14:15

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

Post 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.
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
User avatar
jfs
Tycoon
Tycoon
Posts: 1757
Joined: 08 Jan 2003 23:09
Location: Denmark

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

Post 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.
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

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

Post 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)
temporal8
Route Supervisor
Route Supervisor
Posts: 429
Joined: 17 May 2019 14:15

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

Post 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.
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

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

Post by Eddi »

check this list for comparable houses in the default set:
https://newgrf-specs.tt-wiki.net/wiki/DefaultHouseProps
User avatar
jfs
Tycoon
Tycoon
Posts: 1757
Joined: 08 Jan 2003 23:09
Location: Denmark

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

Post by jfs »

The population and mail generation properties are byte values, so their range is only 0 to 255.
temporal8
Route Supervisor
Route Supervisor
Posts: 429
Joined: 17 May 2019 14:15

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

Post by temporal8 »

Thanks again guys. :bow:
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 15 guests