[0.15.37] Negative productivity bonus doesn't work

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 3178
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.15.37] Negative productivity bonus doesn't work

Post by eradicator » Tue Nov 07, 2017 2:30 pm

What?
Productivity modules with negative bonuses show correctly on tooltip/hover over, but the productivity is not actually reduced below 100%. Additionally the progress bar display sneaks out of the window :P
negative_productivity_display_bug.png
negative_productivity_display_bug.png (141.8 KiB) Viewed 1067 times

Code: Select all

data.raw.module['productivity-module'].effect.productivity = {bonus = -0.5}
Expected behavior
The bonus progress bar shouldn't be rendered at all. Instead the normal progress bar should move slower. And at -50% productivity the machine should consume more resources (i.e. 2 plates to make 2 copper cables in the example).

This bug is related to my interface request Assembling-machine with built-in productivity.
Author of: Hand Crank Generator, Screenshot Hotkey 2.0
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3648
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.15.37] Negative productivity bonus doesn't work

Post by Klonan » Tue Nov 07, 2017 2:39 pm

Negative total productivity will probably not happen,
The whole system is not designed to 'eat' extra resources

Modules reducing productivity make some sense, they can reduce the bonus from other modules or effects

So I would say that when the bonus production is calculated, its always either the value or 0

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3648
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.15.37] Negative productivity bonus doesn't work

Post by Klonan » Tue Nov 07, 2017 4:07 pm

For 0.16 the bonus bar and GUI etc. won't show for negative productivity values

The rest of it 'not working' isn't a bug

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 3178
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.15.37] Negative productivity bonus doesn't work

Post by eradicator » Tue Nov 07, 2017 5:35 pm

Klonan wrote:Negative total productivity will probably not happen,
The whole system is not designed to 'eat' extra resources
Yea. I feared as much. Would you mind fixing the "hover-over-tooltip" for entities with total negative productivity to:

"Productivity: -0% (-0% = limit)"

like it does for electricity when you have more than -80% consumption bonus?
Author of: Hand Crank Generator, Screenshot Hotkey 2.0
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3648
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.15.37] Negative productivity bonus doesn't work

Post by Klonan » Tue Nov 07, 2017 8:28 pm

eradicator wrote:
Klonan wrote:Negative total productivity will probably not happen,
The whole system is not designed to 'eat' extra resources
Yea. I feared as much. Would you mind fixing the "hover-over-tooltip" for entities with total negative productivity to:

"Productivity: -0% (-0% = limit)"

like it does for electricity when you have more than -80% consumption bonus?
Okay, it will show 'Productivity: -0% = limit'

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users