Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very large company values are not graphed correctly #8253

Open
James103 opened this issue Jul 2, 2020 · 0 comments
Open

Very large company values are not graphed correctly #8253

James103 opened this issue Jul 2, 2020 · 0 comments

Comments

@James103
Copy link
Contributor

@James103 James103 commented Jul 2, 2020

Version of OpenTTD

master (2020-07-01)

Expected result

  • Company value of 2^63-1 is recorded on the company value graph.
  • Company value of e.g. 2^63-10000 is recorded on the company value graph, with data points being visible.
  • The scale in these cases runs from 0 to 2^63-1.

Actual result

  • Company value of 2^63-1 is not recorded on the company value graph at all (scale still runs from -5 to 4).
    image

  • Company value of e.g. 2^63-10000 is still recorded on the company value graph, but the points do not appear.
    image

  • The scale runs from 0 to (2^63-1)/10 (~922 billion million) instead of from 0 to 2^63-1 (~9.22 trillion million).
    (see above images)

Steps to reproduce

  1. Load the attached savegame.
  2. Fast forward a few years. The money (and company value) will max out.
  3. Open the company value graph. It appears blank.
  4. Open your company finances window, and hit the "Borrow £10,000" button a couple of times.
  5. Fast forward a few months.
  6. Take a look at the company info window and company value graph.
  7. Hit the "Repay £10,000" button until the loan has been repaid.
  8. Take a look at the company info window and company value graph.

Savegame

Gronnway Transport, 363576-09-15.zip
(The savegame contains a single company with maxed-out (2^63-1) company value and cash, and has been optimized to run at up to several in-game years per second on high-end modern hardware.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.