Page 1 of 1

Prefer recipes with materials when handcrafting

Posted: Thu Nov 10, 2016 12:29 am
by Xuerian
It would helpful if mods were able to add alternate recipes for items without breaking recursive handcrafting for/using them, if handcrafting would prefer a (arbitrary) recipe for an item that the player can currently craft, instead of one they can't.

The example I've run into (twice) is Wood. Bob's mods add synthetic wood as an alternative to Wood, and handcrafting prefers those recipes.

Angel's mods also adds alternative recipes for Wood itself yet again preferred over the base recipe, even when the player has Raw wood in their inventory but not the alternative materials.

I'm sure this isn't as simple as it sounds, but the motivation seems reasonable.

See also:
viewtopic.php?f=51&t=12475
https://www.reddit.com/r/factorio/comme ... lt_recipe/

Re: Prefer recipes with materials when handcrafting

Posted: Thu Nov 10, 2016 8:38 am
by daniel34
I second this. I'm currently using the Storage Cubes mod, which is a "container" mod that allows you to pack 25 of one item into one cube item and later unpack it again to save space. When using the config option to allow crafting these recipes by hand you run into the same issue. As this mod adds recipes for nearly all intermediates some of the usual items are not craftable anymore without crafting the intermediate manually first.

Example: When crafting rails (or lamps) you need to have iron sticks already in your inventory (or iron stick cubes), because it is no longer able to craft them from iron plates although the recipe is still there and you can craft them manually. For autocrafting it only sees the empty iron stick cube recipe which produces iron sticks.
This is very annoying as it applies to most (all?) intermediates (copper cable, gear wheels, ...).

Re: Prefer recipes with materials when handcrafting

Posted: Thu Nov 10, 2016 10:47 am
by bobingabout
I agree... the amount of complaints I get about my synthetic wood is frustrating, and the only 2 viable solutions I can think of is either completely removing synthetic wood... or have a recipe to craft raw wood directly, as to not break the chain anywhere.

Also, Resin has 2 paths too, as do all my merged modules (They all prefer the longest most expensive path, of crafting the separate modules, levelling them up then merging them once complete, rather than crafting the merged module and then up through the merged levelling path.)

Re: Prefer recipes with materials when handcrafting

Posted: Thu Nov 10, 2016 7:56 pm
by ssilk
I add also something here:
If that will be introduced we need - to keep an overview over all ways to craft - some kind of "crafting-tree". I think to something similar to the current research-tree.
It should also add useful information/function. Answer questions like: What is when .... See all the other crafting-trees in viewforum.php?f=134 Cheatsheets / Calculators / Viewers

Re: Prefer recipes with materials when handcrafting

Posted: Thu Nov 10, 2016 8:42 pm
by Xuerian
ssilk wrote:I add also something here:
If that will be introduced we need - to keep an overview over all ways to craft - some kind of "crafting-tree". I think to something similar to the current research-tree.
It should also add useful information/function. Answer questions like: What is when .... See all the other crafting-trees in viewforum.php?f=134 Cheatsheets / Calculators / Viewers
I think that would really help and I'd really like to see it regardless of this, see NEI/JEI from Minecraft. The tech tree we have here would be great, yes. Same UI design could be used, and ideally we'd have a sources/usages hotkey to use when hovering items (again see NEI/JEI)
bobingabout wrote:I agree... the amount of complaints I get about my synthetic wood is frustrating, and the only 2 viable solutions I can think of is either completely removing synthetic wood... or have a recipe to craft raw wood directly, as to not break the chain anywhere.
It is only a workaround, but I wrote a tiny little override mod that makes problematic recipes require an assembler, since I don't see myself handcrafting anything from synthetics for example (granted, I use your greenhouses)

Re: Prefer recipes with materials when handcrafting

Posted: Fri Apr 21, 2017 2:45 am
by Eoj Charlie
Xuerian wrote:It is only a workaround, but I wrote a (URL, had to remove for first post rules) tiny little override mod[/url] that makes problematic recipes require an assembler, since I don't see myself handcrafting anything from synthetics for example (granted, I use your greenhouses)
Apologies if I'm grave digging, however, your mod no longer works with the most recent version of Bob's. If you're okay with it, I made a fix and could provide it to you/or take over the development (not sure of your activity).