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
2 years ago
0.17 - 1.1
797
Fluids Manufacturing

b [Done] Productivity

4 years ago
(updated 4 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.

4 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.

4 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.

4 years ago

Ah, ok. Didn’t know that existed.

2 years ago

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

This is now done.

New response