Smart warning for negative income

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
odisseus
Director
Director
Posts: 568
Joined: 01 Nov 2017 21:19

Smart warning for negative income

Post by odisseus »

The negative income warning shows a yearly message for every vehicle that has had negative total income in the previous year. However, this warning is very often triggered when:
  • the vehicle takes longer than one year to complete its round trip;
  • the vehicle is part of a transfer route, and the income gets awarded to another vehicle.
For example, if the player has a long-distance route with slow boats, he is guaranteed to receive lots of these notifications, and if something serious happens (such as train deadlock or industry closure), the warning will be lost in the flood of false alarms.

This problem can be greatly reduced if the logic that decides when to show the negative income warning is made a little more sophisticated. I suggest that the warning should not be shown if one of the following conditions holds:
  • the expected time for the round trip is longer than one year
    and the vehicle is not empty
    and the vehicle didn't unload during the previous year (except transfers)
or
  • all orders in the order list which permit unloading are transfer orders.
Keep in mind that the common "full load" order does allow unloading. For example, a passenger plane may have full load orders at both destinations, and it will still be unloading at both. If such plane suddenly starts making losses, the player should get a warning.
User avatar
jfs
Tycoon
Tycoon
Posts: 1758
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Smart warning for negative income

Post by jfs »

Another alternative would be to consider the average yearly income of all vehicles with shared orders, instead of only the individual vehicles.
User avatar
Chrill
Moderator
Moderator
Posts: 15979
Joined: 18 Dec 2004 17:35
Location: Stockholm, Sweden
Contact:

Re: Smart warning for negative income

Post by Chrill »

jfs wrote: 01 Jun 2020 10:19 Another alternative would be to consider the average yearly income of all vehicles with shared orders, instead of only the individual vehicles.
If a single train has gotten lost, for example, it could remain lost forever whilst its shared friends continue racking in profit.
Image
My Scenarios:
Archipiélago Hermoso (Latest Release: Version 3.2)
Turnpike Falls (Latest Release: Version 0.91)
User avatar
odisseus
Director
Director
Posts: 568
Joined: 01 Nov 2017 21:19

Re: Smart warning for negative income

Post by odisseus »

I don't think that's a real problem, because a lost train already generates a different kind of warning. However, the idea of taking the total income of a vehicle group into account has a different shortcoming.

Consider what happens if you send 50 ships to a weak oil field. At any time, most of these ships will be stuck waiting for their turn to load. Yet every once in a while one of the ships will earn some cash, which might be sufficient to keep the entire group just above zero profitability. Sure this situation doesn't pose a threat of bankruptcy (as there is net income, however small), but the vehicle maintenance might consume a large part of the income, and I think most players would want to be warned about such situations.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 25 guests