Vehicles generate negative profit per turn

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
zypa
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 30 Mar 2006 12:05
Location: Germany
Contact:

Vehicles generate negative profit per turn

Post by zypa »

I've got a small problem. (See attached image)

I transfer sand from a sandpit (1) to the coast (2)
My ships carry the sand to the very end of the map and drop it there. (3)
Lorries transport the sand to a glassworks (4)

The lorries from 1 to 2 do not generate any profit. The just drop the cargo there. (however, some profit is displayed. It's called "TRANSFER" in the german version. It displayed in yellow. (Not green like profit, not red like costs, it's yellow)
The ships do not generate any profit. However, it says ~50k TRANSFER. (Yellow color)
The lorries from 3 to 4 generate negative income.
Every turn costs ~1k.

What's wrong here?
Why do the lorries generate negative profit?

I do not think that the transfer time is too high. The ships get ~50k "yellow"money.


I use nightly r11985.
I use a lot of GRFs. (ECS, dbtrainset, longvehicles, ...)
I could post a savegame, but I use that much GRFs. So it wouldn't be very helpful, would it?
Attachments
sand from 1 to 2 to 3 to 4<br />3 to 4 costs money per turn
sand from 1 to 2 to 3 to 4
3 to 4 costs money per turn
problem.png (295.15 KiB) Viewed 332 times
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Vehicles generate negative profit per turn

Post by Yexo »

zypa wrote:I've got a small problem. (See attached image)

I transfer sand from a sandpit (1) to the coast (2)
My ships carry the sand to the very end of the map and drop it there. (3)
Lorries transport the sand to a glassworks (4)

The lorries from 1 to 2 do not generate any profit. The just drop the cargo there. (however, some profit is displayed. It's called "TRANSFER" in the german version. It displayed in yellow. (Not green like profit, not red like costs, it's yellow)
The ships do not generate any profit. However, it says ~50k TRANSFER. (Yellow color)
The lorries from 3 to 4 generate negative income.
Every turn costs ~1k.

What's wrong here?
Why do the lorries generate negative profit?

I do not think that the transfer time is too high. The ships get ~50k "yellow"money.


I use nightly r11985.
I use a lot of GRFs. (ECS, dbtrainset, longvehicles, ...)
I could post a savegame, but I use that much GRFs. So it wouldn't be very helpful, would it?
There are making profit. The problem is the 'transfer' money. If you transport goods directly, you get paid for the cargo you transport. If you transport it indirectly, the first bus and ship in your case, are getting virtual money for transporting the distance they do. Now in the last track (in your layout) the cargo is transported back (in the direction of the source) so the total distance transported is getting smaller. Then when your busses have to be paid, you've already gotten more 'income' (yellow money) then you get for the total transport. You'll notice that even while they display a negative profit, you'll get a lot of money when they arrive.
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Re: Vehicles generate negative profit per turn

Post by richk67 »

Ships are slow. This means it may not be very economical anyway (a truck may get there quicker by road).

The calculation of the delivery will be:

company is paid (CP) = payment for x tons of cargo from (1) to (4), in the time taken

To make everything balance, the final vehicle is paid:

VP = (payment for x tons of cargo from (3) to (4)) minus (money paid so far in transfer credits for x tons)

Check the info panel for the final truck. It should show the transfer credits it is carrying. It is a short haul - so is probably paid very little, but may be carrying a lot of credits already paid for. The main thing is the CP should be positive. The final vehicle is "earning" virtual loss, in the same way the yellow Transfer: vehicles are earning a "virtual" profit.

When I first (re)wrote the transfer system, I had the final vehicle show the amount the ROUTE was paid, and the amount the VEHICLE is paid. It is then obvious what you earn from transfers, and clear why one part is negative. The devs vetoed that, and it just shows the VEHICLE profit - and we have this question every week. Go figure. :roll:
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
zypa
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 30 Mar 2006 12:05
Location: Germany
Contact:

Re: Vehicles generate negative profit per turn

Post by zypa »

Yexo wrote:[...]
You'll notice that even while they display a negative profit, you'll get a lot of money when they arrive.
You're right. I didn't notice that. Thank you!


richk67 wrote:[...]
Check the info panel for the final truck. It should show the transfer credits it is carrying. It is a short haul - so is probably paid very little, but may be carrying a lot of credits already paid for. The main thing is the CP should be positive. The final vehicle is "earning" virtual loss, in the same way the yellow Transfer: vehicles are earning a "virtual" profit.
Ah! I've found the transfer-money info. That's good! Thank you!
richk67 wrote:When I first (re)wrote the transfer system, I had the final vehicle show the amount the ROUTE was paid, and the amount the VEHICLE is paid. It is then obvious what you earn from transfers, and clear why one part is negative. The devs vetoed that, and it just shows the VEHICLE profit - and we have this question every week. Go figure. :roll:
This question every week? Uuups - I'm sorry. I've tried to search for a similar question, but it seems that I'm too stupid to use the forum search...

I think the devs vetoed correctly. Coded as it is all vehicles get their part of the profit. If only the last vehicle would get money some vehicles wouldn't make any profit ever.
Now every vehicle in the transport-chain has the possibility to generate profit.

@richk and yexo:
Thank you for your quick and helful responses!
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Re: Vehicles generate negative profit per turn

Post by richk67 »

zypa wrote:This question every week? Uuups - I'm sorry. I've tried to search for a similar question, but it seems that I'm too stupid to use the forum search...
No probs. Its my personal frustration.
I think the devs vetoed correctly. Coded as it is all vehicles get their part of the profit. If only the last vehicle would get money some vehicles wouldn't make any profit ever.
Now every vehicle in the transport-chain has the possibility to generate profit.
Ah - not quite what I meant. When the final delivery was made, it showed the two values - vehicle profit and transfer profit. For "consistency", the current way of doing it just shows the vehicle profit.
Attachments
A good transfer (both yellow transfer credit positive, and green vehicle profit)
A good transfer (both yellow transfer credit positive, and green vehicle profit)
RichK Transport, 21st Oct 2019.png (71.08 KiB) Viewed 2567 times
A bad transfer route (for the final vehicle)
A bad transfer route (for the final vehicle)
Wuntfingfield Transport, 10th Jan 1951.png (47.03 KiB) Viewed 2566 times
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
zypa
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 30 Mar 2006 12:05
Location: Germany
Contact:

Re: Vehicles generate negative profit per turn

Post by zypa »

Ah. I think I got it now.
And I ask myself: "Why did they vetoed it?"

What a pitty.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 15 guests