[16.51] Productivity Module, Pollution dependency

Bugs that are actually features.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1459
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

[16.51] Productivity Module, Pollution dependency

Post by TheSAguy »

I'm not sure if this is a bug or game requirement I missed.
But it seems like an entity can't use a Productivity Module without also being able to use Pollution Module.

I wanted to give my entity the ability to use a productivity module, and left out the Pollution part and it could not accept a productivity module.

Not working code for Productivity Module:

Code: Select all

	module_specification =
    {
      module_slots = 3
    },
	allowed_effects = {"consumption", "speed", "productivity"},
Working:

Code: Select all

    module_specification =
    {
      module_slots = 3
    },
    allowed_effects = {"consumption", "speed", "productivity", "pollution"}
So the above code allows Productivity modules in the entity by adding Pollution, even though I did not want pollution.

Thanks.
Allaizn
Long Handed Inserter
Long Handed Inserter
Posts: 90
Joined: Sat Mar 03, 2018 12:07 pm
Contact:

Re: [16.51] Productivity Module, Pollution dependency

Post by Allaizn »

Isn't this working as intended, since the usual productivity modules also increase pollution?
By disallowing pollution to be modified, you'd therefore also prevent the usual productivity modules.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16102
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [16.51] Productivity Module, Pollution dependency

Post by Rseding91 »

Allaizn wrote:Isn't this working as intended, since the usual productivity modules also increase pollution?
By disallowing pollution to be modified, you'd therefore also prevent the usual productivity modules.
Correct.

If you want to use productivity but not pollution then you need to make a new module that doesn't include pollution or remove pollution from the normal productivity module.
If you want to get ahold of me I'm almost always on Discord.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1459
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: [16.51] Productivity Module, Pollution dependency

Post by TheSAguy »

Got it, thought it might be something like that.
Post Reply

Return to “Not a bug”