for some reason the productivity bonus in my smelters aren't working properly i have deconstructed them and reconstructed them to reset the productivity bonus so they start at 0% but for some reason some of them are getting stuck at 99% which shouldn't be happening (doing multiples of 5 actions at 20% productivity). any help is appreciated as I'm well and truely stumped.
It seems random as to which smelters do this and stop at 99% but it means that my trains are between 0 and 4 plates off. I have tried it with and without set stack bonus to check that its not an input issue. it would appear to be a maths issue in the code where some are counting to 100% and some are getting stuck on 99.99999%
http://imgur.com/a/g5x0e
Productivity in smelters issue
-
- Manual Inserter
- Posts: 1
- Joined: Thu Jul 06, 2017 3:01 pm
- Contact:
Re: Productivity in smelters issue
Thanks for the report. This is most likely due to the nature of floating point numbers and that adding n = n + 1/89th 100 times is not the same as n = 0.89. It works well enough across a normal game but when you try to sit and measure it at such small levels you see it show up.
We don't have any plans to change how crafting machines work so the setup you've created just won't work as you want.
We don't have any plans to change how crafting machines work so the setup you've created just won't work as you want.
If you want to get ahold of me I'm almost always on Discord.
- ickputzdirwech
- Filter Inserter
- Posts: 794
- Joined: Sun May 07, 2017 10:16 am
- Contact:
Re: Productivity in smelters issue
This seems to be a duplicate of 49936.
Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write