Profit last year bug!?

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
ilt
Engineer
Engineer
Posts: 18
Joined: 03 Oct 2008 17:49

Profit last year bug!?

Post by ilt »

My AI has 7 trains. If I look at the "profit last year" in the list of trains, I see

26110+13414+9462+6900+5882+5325+1020

This is not equal last year "train income" 101951! :shock:

Screenshoot:
GT_1st_Jan_1964.jpg
Which figure here is incorrect?

P.S. Difficulty level - hard, version 1.0.2.
Morloth
Transport Coordinator
Transport Coordinator
Posts: 378
Joined: 07 Feb 2008 14:06
Location: Glasgow

Re: Profit last year bug!?

Post by Morloth »

The income displayed in the train list is netto income, so the income - running costs.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Profit last year bug!?

Post by Rubidium »

As Morloth said: profit != income, profit = income - running costs.
In this case you would still get a difference of 4 pounds, but that can easily be explained by the use of fractal numbers for the running costs and the associated rounding.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 6 guests