Hi,
I have a couple recipe's that can't use Productivity Modules in them, because it's saying it's not an Intermediate Product.
Was just wondering how this get's defined, since the one is just a variation of a vanilla recipe that does allow productivity modules.
Is there a flag or something I need to set on the recipe level?
Thanks.
[Done] Productivity Module / Intermediate Product
[Done] Productivity Module / Intermediate Product
Last edited by TheSAguy on Wed Aug 01, 2018 3:52 pm, edited 3 times in total.
Re: Productivity Module / Intermediate Product
It's set per module: https://wiki.factorio.com/Prototype/Module#limitation
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: [Done] Productivity Module / Intermediate Product
I thought I had it figured out, but not quite.
So recipe's that use vanilla entities work now, I can now use Productivity Modules on them, but my custom entities don't accept Productivity Modules.
I've added the code below to the entities:
Speed and Consumption work, but not Productivity.
I added the productivity with below code, giving it the recipes.
What am I missing.
So recipe's that use vanilla entities work now, I can now use Productivity Modules on them, but my custom entities don't accept Productivity Modules.
I've added the code below to the entities:
Code: Select all
module_specification =
{
module_slots = 3
},
allowed_effects = {"consumption", "speed", "productivity"},
I added the productivity with below code, giving it the recipes.
Code: Select all
function BI_Functions.lib.allow_productivity(recipe_name)
if data.raw.recipe[recipe_name] then
for i, module in pairs(data.raw.module) do
if module.limitation and module.effect.productivity then
table.insert(module.limitation, recipe_name)
end
end
end
end
What am I missing.
Re: [Done] Productivity Module / Intermediate Product
For some reason, you need to include "Pollution" module support for the Productivity module to be inserted.
Added pollution below to make it work:
Added pollution below to make it work:
Code: Select all
module_specification =
{
module_slots = 3
},
allowed_effects = {"consumption", "speed", "productivity", "pollution"},
Re: [Done] Productivity Module / Intermediate Product
The module also has the pollution effect, so the entity needs to allow that.TheSAguy wrote:For some reason, you need to include "Pollution" module support for the Productivity module to be inserted.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: [Done] Productivity Module / Intermediate Product
Got it,
Thanks.
Thanks.