The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Carl on June 26, 2011, 12:38:36 PM

Title: [9.10] Revenue Problems Persist
Post by: Carl on June 26, 2011, 12:38:36 PM
I'm getting negative revenue of 3 *trillion* dollars in a fraction of a month. It seems that lines either make billions of dollars in profit or (more often) billions of dollars of losses. Previously profitable lines seem, if anything, to be effected more.
Title: Re: [9.10] Revenue Problems Persist
Post by: jamespetts on June 26, 2011, 02:24:16 PM
Carl,

hmm - I can't reproduce this one. Revenues are lower in 9.10 than they were in 9.8 because they were too high (by reason of a bug) in 9.8. I have not seen issues with negatives of trillions - can you upload a saved game?
Title: Re: [9.10] Revenue Problems Persist
Post by: Carl on June 26, 2011, 02:42:25 PM
Link: http://dl.dropbox.com/u/61716/UK-Latestt.sve
(sorry it's dropbox -- can't get simutrans-germany to work for .sve at the moment)

This doesn't appear to happen in *all* of my saves, actually. But I have been able to produce it in more than one.

The trouble is not just highly negative revenues: rather, it is that every transaction seems to be in the hundreds of millions, and the majority are negative. Running the game for just a short time yields some vehicles with 8 billion profit and also vehicles with 167 billion loss.

I suspect that there's some parameter in the save that's interacting badly with the updates.
Title: Re: [9.10] Revenue Problems Persist
Post by: jamespetts on June 26, 2011, 02:53:33 PM
Might I ask - with which version of Simutrans-Experimental was this game saved?
Title: Re: [9.10] Revenue Problems Persist
Post by: Carl on June 26, 2011, 02:55:17 PM
It's saved -- and created, if I remember correctly -- in 9.3.
Title: Re: [9.10] Revenue Problems Persist
Post by: jamespetts on June 26, 2011, 03:02:42 PM
Hmm - have you had this difficulty with any game saved in a later version?
Title: Re: [9.10] Revenue Problems Persist
Post by: Brambo on June 26, 2011, 05:14:16 PM
I have this same problem with a game started in 9.5 and most recently saved in 9.8 :(
Title: Re: [9.10] Revenue Problems Persist
Post by: jamespetts on June 27, 2011, 12:00:13 AM
Thank you both for your reports: I have found the problem, and fixed it on the 9.x branch. The fix should be released in the next version.
Title: Re: [9.10] Revenue Problems Persist
Post by: AvG on June 27, 2011, 10:15:33 AM
I also loose Millions per day. (24 bits_per_month)
A quick observation tells me:
- A running train is loosing money every tile like it should. OK.
- At station arrival (with quite a load) it should gain money. However it is loosing a lot. Looks like a sign plus a comma error.
This happens in an existing scenario as well as a new map.

Exp-9.10 still unuseable.

AvG
Title: Re: [9.10] Revenue Problems Persist
Post by: Carl on June 27, 2011, 11:14:11 AM
Hi James,

Thanks for this -- sorry I wasn't able to get back to you in time yesterday with more information!
Title: Re: [9.10] Revenue Problems Persist
Post by: inkelyad on June 27, 2011, 11:52:25 AM
Quote from: AvG on June 27, 2011, 10:15:33 AM
Looks like a sign plus a comma error.
Looks like unsigned/signed mixed arithmetic AND integer overflow. AND it can be different on 64/32 bit platforms. Brr...
Title: Re: [9.10] Revenue Problems Persist
Post by: jamespetts on July 01, 2011, 11:59:16 PM
This should now be fixed in 9.11.