Missing "results" icons in fluid recipes...

Place to get help with not working mods / modding interface.
AutoDMC
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 23, 2016 4:16 am
Contact:

Missing "results" icons in fluid recipes...

Post 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.
Last edited by AutoDMC on Wed May 25, 2016 3:17 am, edited 2 times in total.
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Fluid Processing Recipes not appearing in Chemical Plants.

Post 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.
AutoDMC
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 23, 2016 4:16 am
Contact:

Now I'm showing no results...

Post 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
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Missing "results" icons in fluid recipes...

Post 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.
AutoDMC
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 23, 2016 4:16 am
Contact:

Re: Missing "results" icons in fluid recipes...

Post 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?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15950
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Missing "results" icons in fluid recipes...

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 254
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: Missing "results" icons in fluid recipes...

Post 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)
AutoDMC
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 23, 2016 4:16 am
Contact:

Re: Missing "results" icons in fluid recipes...

Post 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.
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Missing "results" icons in fluid recipes...

Post 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
AutoDMC
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 23, 2016 4:16 am
Contact:

Re: Missing "results" icons in fluid recipes...

Post 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!
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Missing "results" icons in fluid recipes...

Post 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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding help”