Author Topic: 8.5 billion cows in Transit  (Read 350 times)

0 Members and 1 Guest are viewing this topic.

Offline zook2

8.5 billion cows in Transit
« on: April 04, 2017, 05:37:12 PM »
I downloaded the latest windows package last night, and found this bug (with a slaughterhouse in 1780). I can upload the savegame, if you need it.

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15260
  • Total likes: 361
  • Helpful: 159
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: 8.5 billion cows in Transit
« Reply #1 on: April 04, 2017, 05:56:24 PM »
I should b grateful if you could upload the saved game: that would be most helpful.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Offline DrSuperGood

Re: 8.5 billion cows in Transit
« Reply #2 on: April 04, 2017, 06:05:56 PM »
Looks like a typical signed vs unsigned mathematics error. Standard used to have tons of these until more correct fixed point logic was implemented.

Offline zook2

Re: 8.5 billion cows in Transit
« Reply #3 on: April 04, 2017, 07:34:53 PM »

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15260
  • Total likes: 361
  • Helpful: 159
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: 8.5 billion cows in Transit
« Reply #4 on: April 06, 2017, 12:34:50 AM »
Thank you for that. This problem is hard to trace because it occurred in the past, and its creation cannot be reproduced in the saved game: only its numerical consequence in the in transit figure, which is saved.

I have pushed a possible fix to prevent this issue from recurring, but this will not modify the incorrect (saved) in transit figure in this particular saved game, I am afraid.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.