The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: zook2 on April 04, 2017, 05:37:12 PM

Title: 8.5 billion cows in Transit
Post by: zook2 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.
Title: Re: 8.5 billion cows in Transit
Post by: jamespetts on April 04, 2017, 05:56:24 PM
I should b grateful if you could upload the saved game: that would be most helpful.
Title: Re: 8.5 billion cows in Transit
Post by: DrSuperGood 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.
Title: Re: 8.5 billion cows in Transit
Post by: zook2 on April 04, 2017, 07:34:53 PM
Here's the file:
http://www22.zippyshare.com/v/fyRQk06u/file.html
Title: Re: 8.5 billion cows in Transit
Post by: jamespetts 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.