The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Onion Bargee on March 09, 2017, 03:07:48 PM

Title: Brewery not consuming woodchips
Post by: Onion Bargee on March 09, 2017, 03:07:48 PM
St-exp compiled from source 6th March, pak Britain-Ex likewise.
OS: Debian

I have a brewery producing 40 units of beer per month, but not consuming any woodchips in the process.  The brewery did not start production until all reagents were delivered, but no woodchip has been used.

The brewery claims to use grain (83%) and woodchip (17%), so I would expect it to need about 35 units of grain and 7 units of woodchip per month, but it is actually consuming 10 units of grain and no woodchips according to its information window.

the attatched save contains only the one industry chain to demonstrate.

savefile (https://www.dropbox.com/s/suhawpamvv155u9/brewery%20test.sve?dl=0)
Title: Re: Brewery not consuming woodchips
Post by: jamespetts on March 18, 2017, 02:11:14 PM
Thank you for the report. I think that I have managed to fix this (it was an issue with loss of precision of small numbers) by incorporating some code from Standard. Do you think that you would be able to confirm that this is fixed when to-morrow's nightly comes out (or sooner if you are able to compile yourself)?
Title: Re: Brewery not consuming woodchips
Post by: Onion Bargee on March 19, 2017, 09:07:45 PM
I have retested this and it now seems to be working properly.

Thanks,

Tom.