Petrochem barreling and mods problem
Moderator: Arch666Angel
Petrochem barreling and mods problem
What I'm trying to do is modify a few mod recipes to make a mod work with angel's ores and petrochem. I got it to work fine with angel's ores; it produces the ores without problem, but I can't seem to make it work with petrochem. What exactly I'm trying to do is make a building take an empty barrel and then spit out either a multi-phase oil barrel or natural gas barrel based on recipe. My issue is that in looking through the files for angel's petrochem, I can;t find where the recipes for barreling are. I want to see them because I've tried every name I can think of to give the result and it turns up nothing. In the files for petrochem natural gas is named "gas-natural-1." I took a leap of logic and tried naming the result "gas-natural-1-barrel" to no avail. I've also tried "natural-gas-barrel" and simply "gas-natural-1." The interesting thing is if I change the result to results and then format it like this: results= {type="fluid", name="gas-natural-1", amount=10} it will give me a crude oil barrel. Does anyone know the name the game uses for natural gas barrels and multi-phase oil barrels?
- septemberWaves
- Fast Inserter
- Posts: 225
- Joined: Tue Jul 26, 2016 7:49 pm
- Contact:
Re: Petrochem barreling and mods problem
Barreling recipes should be under "fluid handling". The same tab where you find Angel's various valves. Unless you have that omnibarrelling mod installed, in which case I think it changes things but I don't know how.
Re: Petrochem barreling and mods problem
eloquentJane wrote:Barreling recipes should be under "fluid handling". The same tab where you find Angel's various valves. Unless you have that omnibarrelling mod installed, in which case I think it changes things but I don't know how.
I'm not talking in game. I'm talking within the mod files themselves.
Re: Petrochem barreling and mods problem
In the mod files it's written as a functionJaclyn wrote:eloquentJane wrote:Barreling recipes should be under "fluid handling". The same tab where you find Angel's various valves. Unless you have that omnibarrelling mod installed, in which case I think it changes things but I don't know how.
I'm not talking in game. I'm talking within the mod files themselves.
no yes yes no yes no yes yes
- Arch666Angel
- Smart Inserter
- Posts: 1636
- Joined: Sun Oct 18, 2015 11:52 am
- Contact:
Re: Petrochem barreling and mods problem
Barreling and voiding recipes are setup through a function call, you can find the function calls in __modname__/prototypes/modname-generate.lua.
The function itself can be found in the refining mods prototype folder: angels-functions
The function itself can be found in the refining mods prototype folder: angels-functions
Angels Mods
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
Re: Petrochem barreling and mods problem
Okay, so your answer pointed me to the functions which I looked through and found out that the naming conventions for the barrels are angels-barrel-.. fluid name. For multi-phase oil the name would then be angels-barrel-liquid-multi-phase-oil. I tested this in game by adding multi=phase oil barrels to my inventory. For some reason, it only ever gives me one no matter what I set the amount to, but it works. The results portion of the recipe now looks like this:Arch666Angel wrote:Barreling and voiding recipes are setup through a function call, you can find the function calls in __modname__/prototypes/modname-generate.lua.
The function itself can be found in the refining mods prototype folder: angels-functions
Code: Select all
results =
{
{type="item", name="angels-barrel-liquid-multi-phase-oil", amount=1}
},
Re: Petrochem barreling and mods problem
I figured out what the issue was. I was doing everything correct, I just needed to start a new game.
Re: Petrochem barreling and mods problem
Jaclyn wrote:I figured out what the issue was. I was doing everything correct, I just needed to start a new game.
For testing in existing games you will need to do: This isn't needed if the version number changes but most internal testing doesn't increase the version number.
/c game.player.force.reset_recipes();game.player.force.reset_technologies()
Re: Petrochem barreling and mods problem
Nexela wrote:Jaclyn wrote:I figured out what the issue was. I was doing everything correct, I just needed to start a new game.
For testing in existing games you will need to do: This isn't needed if the version number changes but most internal testing doesn't increase the version number.
/c game.player.force.reset_recipes();game.player.force.reset_technologies()
That's a really good thing to know. Thanks. Unfortunately I already started a new save and saved over my old one. I wasn't very far anyway. I'll keep that in mind though, because I'll probably take what I just did and turn it into a small mod that will overwrite the recipes of the mod I was changing.