Cargodistrubisjon

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
Auge
Chief Executive
Chief Executive
Posts: 662
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Cargodistrubisjon

Post by Auge »

Hello

Take a route in three parts as example. It starts in the city A with a bus to airport B, from there by plane to airport C and from there as last part by bus to city D.

The game pays for the transport on the complete route from A to D. When you split the line from A to D into the three parts of the example, the game pays a virtual sum for the parts A to B and B to C. When the payment for these parts exceeds the sum for the complete route (A to D), the last vehicle (route part C to D) gets a negative income at the end but the transport from A to D (the complete route) nevertheless has a positive income.

So even the bus from C to D looks unprofitable with its red numbers, it isn't. The bus is simply necessary to make profit for the complete route from A to D. No bus, no route.

Tschö, Auge
User avatar
jfs
Tycoon
Tycoon
Posts: 1869
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Cargodistrubisjon

Post by jfs »

For an example:
Let's say that the distance from bus stop A to airport B is 10 tiles, from airport B to airport C is 200 tiles, and from airport C to bus stop D is 10 tiles.
The bus travel from A to B is 10 days, the aircraft from B to C is also 10 days, and the bus from C to D is also 10 days.
For simplicity, let's assume everything is in a straight line forward, no "going backwards".

We follow one passenger from A to D via B and C.
When the passenger transfers at B, after taking the first bus, they have travelled 10 tiles in 10 days. The bus for that part gets credited a virtual profit for how much would be paid for that part on its own. Say this pays out £10.
When the passenger transfers at C, after having taken the plane, they have travelled 210 tiles in 20 days. That's a pretty big distance in short time, maybe it would pay out £500. The virtual profit from the first part is subtracted from this, so the aircraft is credited for a virtual profit of £490, and the passenger's total fare price so far is the £500.
When the passenger arrives at D, after having taken the second bug, they have travelled 220 tiles in 30 days. That's not nearly as impressive, maybe only worth a fare of £300 if it was done with a single vehicle without transfers. That's a difference of minus £200 from the previous total fare, so when the passenger pays the final fare of £300 at the destination, the bus for that part is actually credited a loss of £200, because the virtual profit of the first two vehicles has already been recorded. The total fare of £300 is only paid to the company when the passenger arrives at the destination, but the vehicles have to try to share the profit each time the passenger transfers, despite not knowing what will happen in the future.

The total profit recorded to each of the vehicles, £10 + £490 - £200 still add up to the total fare paid to the company of £300.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 44 guests