Sulfur Production from Oils


Changes which fluids sulfur production uses and balances the efficiency of them towards heavy oil. Concept is to move uses of the oil byproduct fluids around so the system is less demanding on petroleum gas and gives outlets for everything else.

Content
3 years ago
0.17 - 1.1
1.05K
Fluids Manufacturing

b [Done] Productivity

5 years ago
(updated 5 years ago)

Light and heavy oil to sulfur can't use productivity modules.

Add this to the end of your data-update.lua to register the new recipes with productivity modules.

for k,v in pairs(data.raw.module) do
  if v.limitation then  
    if data.raw["recipe"]["heavy-sulfur"] then 
      table.insert(v.limitation, "heavy-sulfur") 
    end
    if data.raw["recipe"]["light-sulfur"] then 
      table.insert(v.limitation, "light-sulfur") 
    end
  end
end

 
PS: You toggle light-sulfur on and off so often it's hard to make changes to your code.

5 years ago

I won’t be able to take a look until Monday, but the light and heavy recipes should be direct copies of the vanilla recipe.

5 years ago

Productivity module restrictions are in a table separate from recipes.
You have to whitelist each recipe by name in it for prod modules to be allowed.

5 years ago

Ah, ok. Didn’t know that existed.

3 years ago

Cripes... completely forgot about this. Must've been about the time I stopped playing.

This is now done.

New response