[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: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.15.37] Negative productivity bonus doesn't work

Post by eradicator »

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 3432 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: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
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: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post by Klonan »

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: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post by Klonan »

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: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

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

Post by eradicator »

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: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
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: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post by Klonan »

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”