[MOD 0.10.x] Coal liquefaction

Topics and discussion about specific mods
Chris987
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Jul 05, 2014 7:15 am
Contact:

[MOD 0.10.x] Coal liquefaction

Post by Chris987 »

This modification enables the production of heavy oil, light oil and petroleum gas with water and coal in the oil refinery. Coal liquefaction must be researched before.

Content:
  • "Liquefaction" technology
  • "Coal liquefaction" recipe
Example:
coal_liquefaction.jpg
coal_liquefaction.jpg (103.36 KiB) Viewed 8015 times
I hope it helps someone and have fun with it. ;)
coal-liquefaction.zip
(7.46 KiB) Downloaded 625 times
Last edited by Chris987 on Sat Jul 12, 2014 9:32 am, edited 1 time in total.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [MOD 0.10.x] Coal liquefaction

Post by bobingabout »

That sounds pretty useful.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Turtle
Fast Inserter
Fast Inserter
Posts: 240
Joined: Sat May 31, 2014 9:45 pm
Contact:

Re: [MOD 0.10.x] Coal liquefaction

Post by Turtle »

This is nice for when you find yourself in a map that's lacking oil. I noticed you can't put productivity modules in the refinery though. Bug maybe?
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [MOD 0.10.x] Coal liquefaction

Post by bobingabout »

you'd need to edit the production modules to add the new recipe to their allow list.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Turtle
Fast Inserter
Fast Inserter
Posts: 240
Joined: Sat May 31, 2014 9:45 pm
Contact:

Re: [MOD 0.10.x] Coal liquefaction

Post by Turtle »

With the help of this thread, I was able to add it to the mod itself. If you want to update your mod, just add these lines to the data.lua:

Code: Select all

for k, v in pairs(data.raw.module) do
  if v.name:find("productivity%-module") and v.limitation then
    for _, recipe in ipairs({"coal-liquefaction"}) do
      table.insert(v.limitation, recipe)
    end
  end
end
Thanks for your indirect help, FreeER! :D
Chris987
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Jul 05, 2014 7:15 am
Contact:

Re: [MOD 0.10.x] Coal liquefaction

Post by Chris987 »

Ok, I've updated it now. I hadn't noticed it.
Post Reply

Return to “Mods”