The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: River on July 14, 2017, 09:51:04 AM

Title: [r26bdfa9] Factory bug with storage and production
Post by: River on July 14, 2017, 09:51:04 AM
i'm using the brittian-ex map pak.

my coalmine stopped supping good to the coal power station while it still had demand. while investigating i found out that the factory was showing plenty of coal in the main screen (972), but when i looked at the graph it only showed a stored amount of 4. at the same time production was 0. images of the graphs are attached.

*edit* something stopped the train from loading while the power station was empty. if i send the train halve loaded to the powerstation the train fills up again full but after 1-2 runs it has the same problem again.

save game:
https://www.dropbox.com/s/79shrtyv4tgttr7/experimental%20game.sve?dl=1
Title: Re: [r26bdfa9] Factory bug with storage and production
Post by: Jando on July 14, 2017, 10:07:02 AM
Greetings, River!

It's a known bug, I'm sure James will deal with it when he finds the time for it. Currently all storage graphs of all industries are wrong, the numbers stated above the graph are correct though. Also: the other graphs about delivery and production are correct. I'm sure the coal mine in your case stopped production because the connected power station has no demand currently.
Title: Re: [r26bdfa9] Factory bug with storage and production
Post by: River on July 14, 2017, 10:11:50 AM
That was the first thing i checked but the power station is empty, see the attached image
Title: Re: [r26bdfa9] Factory bug with storage and production
Post by: Jando on July 14, 2017, 11:42:17 AM
Ah, River, you have a train at the coal mine waiting for full load, that are 208 tons of coal in your case. The power station however only demands 160 tons of coal, thus the train will never depart. I'd suggest specifying a max. waiting time for the train, so that it can depart after a certain time without full load.
Title: Re: [r26bdfa9] Factory bug with storage and production
Post by: River on July 14, 2017, 12:48:13 PM
has this changed in extended (compared to standard) and how? isn't the demand ajusted upward if nothing has arrived yet? i'm far from the max in transit.

isn't the first number the amount in the powerstation, the 2th the amount inroute and 3th between brackets the maximum in transit.
Title: Re: [r26bdfa9] Factory bug with storage and production
Post by: Jando on July 14, 2017, 01:33:40 PM
Quote from: River on July 14, 2017, 12:48:13 PM
has this changed in extended (compared to standard) and how? isn't the demand ajusted upward if nothing has arrived yet? i'm far from the max in transit.

isn't the first number the amount in the powerstation, the 2th the amount inroute and 3th between brackets the maximum in transit.

Aye, first number before the slash is amount currently in stock at industry, 2nd number after the first slash is amount in transit (in your case the 160 tons on the train). As to the 3rd number between brackets I don't know what it stands for :), 4th number is a "maximum" amount to be ordered I believe, but I have seen industries demanding more than that as well as industries never demanding as much.

Needs a more experienced person than me to give more details, sorry.
Title: Re: [r26bdfa9] Factory bug with storage and production
Post by: jamespetts on July 28, 2017, 12:04:12 AM
I have just pushed a fix to the master branch which I believe should address this issue. Would anyone be able to re-test with to-morrow's nightly to confirm whether this is fixed? Thank you for the report.