Page 1 of 1
Missing "results" icons in fluid recipes...
Posted: Mon May 23, 2016 4:23 am
by AutoDMC
[Edit note: I fixed this first problem (thanks, Angel!) but it's lead to a second problem.]
Howdy.
I'm working on a mod some friends of mine have been asking for, allowing Coal to be gassified and converted into petroleum gas, crude-oil, and some useful intermediaries. Right now the values for energy usage, etc, are very hand-wavey, but before I work to get things balanced, I just want them to show up.
My mod can be found here:
https://github.com/AutoDMC/Factorio-Carbon
With what I got now, my very basic and likely incorrect understanding was that the recipes would be available in chemical plants. I would eventually like to make this it's own tech, but right now I just want it to appear in a chemical plant so I can make sure it works.
Right now I'm not seeing the recipes in my chemical plants. I am using an older save file that already has oil infrastructure... is that the problem? Or am I missing something vital?
I'm not sure what I'm missing; I tried basing my recipes on the recipes in the Factorio files themselves, and perhaps I missed something vital.
Re: Fluid Processing Recipes not appearing in Chemical Plants.
Posted: Mon May 23, 2016 6:02 am
by Arch666Angel
There are already some mods that do similar things, for example klonans bergius process.
To your problem, if you don't have a tech that enables the recipes, you need to set the recipes to enabled=true so they show ingame and are useable. When you implement a tech for them, set the enabled= back to false, so they have to be researched. For the recipes to show up in the corresponding buildings you have to set the categories accordingly, the categories determines where the recipes (which machine) can be crafted, which at a glance seem to be all right with your mod.
Now I'm showing no results...
Posted: Wed May 25, 2016 3:15 am
by AutoDMC
Okay, so I got that fixed. Thanks Angel! Almost everything is working...
...except that my Fischer-Tropsch recipes all have no products, except one, and I don't know what I'm missing.
Once you learn advanced-oil-processing, you gain access to the F-T tech; you research that and your chemical factories and refineries can now process F-T recipes... but only the coal-to-syngas recipe actually shows results. All the other ones show the ingredients required when you hover over their (placeholder) icons, but none show their results.
Updated code is available at Github:
https://github.com/AutoDMC/Factorio-Carbon
Zip here:
https://github.com/AutoDMC/Factorio-Car ... master.zip
Re: Missing "results" icons in fluid recipes...
Posted: Wed May 25, 2016 6:07 am
by Arch666Angel
Quick guess would be that you have conflicting order strings that are messing up the recipes. I do it like that:
Code: Select all
type = "recipe",
name = "recipe1",
...
order = "a[recipe1]"
type = "recipe",
name = "recipe2",
...
order = "b[recipe2]"
This just determines the position of the recipe in the row, which is defined by the subgroup. Don't know why they use more than one string in the base game.
Re: Missing "results" icons in fluid recipes...
Posted: Thu May 26, 2016 2:45 am
by AutoDMC
I tried that and, alas, it didn't work.
What's up with the a/b in front of the braces? Are those supposed to increment? a, b, c, d? Or are they all something else?
Re: Missing "results" icons in fluid recipes...
Posted: Thu May 26, 2016 4:01 am
by Rseding91
AutoDMC wrote:I tried that and, alas, it didn't work.
What's up with the a/b in front of the braces? Are those supposed to increment? a, b, c, d? Or are they all something else?
They're just strings.
Re: Missing "results" icons in fluid recipes...
Posted: Thu May 26, 2016 12:57 pm
by DedlySpyder
AutoDMC wrote:I tried that and, alas, it didn't work.
What's up with the a/b in front of the braces? Are those supposed to increment? a, b, c, d? Or are they all something else?
From my understanding of the ordering strings, the recipes are ordered by those strings. So the single letters are an easy way to make sure one recipe is in front of another (otherwise they are just alphabetical)
Re: Missing "results" icons in fluid recipes...
Posted: Thu May 26, 2016 2:16 pm
by AutoDMC
So, interestingly enough, the recipes actually work; you can set them and they'll produce the crude oil, syngas, petroleum gas, etc. They just don't show the results in the hover popover.
Re: Missing "results" icons in fluid recipes...
Posted: Thu May 26, 2016 3:00 pm
by Arch666Angel
Are they single result recipes? Than that's normal game behavior and yes that is weird you are right. You can set the "main_product=" (?not sure about the name, could be main_result?) than the recipe will have the icon and name of the main_product
Re: Missing "results" icons in fluid recipes...
Posted: Fri May 27, 2016 3:26 am
by AutoDMC
That was it, Angel. The rest of the recipes all have single outputs, and I hadn't noticed until I started debugging my module that Factorio acts that way with single-output recipes.
*sigh*
Thanks again!
Re: Missing "results" icons in fluid recipes...
Posted: Fri May 27, 2016 8:04 am
by bobingabout
if you don't use main_product, you can specify the recipe name in locale, and the icon separately, you just also need a few other tags adding on too, like order and subgroup, which by default are taken from the item.
I need to remember to edit my library mod so that the new unreleased result to results function adds main_product, or even better, checks to see if an icon, order and subgroup exist, and if one or more do, fill in the blanks from the old result item, else use main_product. since it was originally only for resources that don't suffer from the issue, I forgot to add these extra bits.