Page 1 of 1

Ammo Recipe Question - Solved

Posted: Sat May 27, 2023 7:26 pm
by TheSAguy
Can Ammo have two results?

I can't seem to get my recipe below to work:

Code: Select all

        {
            type = "recipe",
            name = "bi_recipe_basic_dart_magazine",
            icon_size = 64,
            icons = {{
                icon = W_ICONPATH .. "basic_dart_icon.png",
                icon_size = 64
            }},
            subgroup = "ammo",
            normal = {
                enabled = true,
                energy_required = 4,
                ingredients = {{"wood", 10}},
                results = {
                    { type = "item", name = "bi-basic-dart-magazine", amount = 10 },
                    { type = "item", name = "wood-chips", amount = 2 }
            },
            },
            expensive = {
                enabled = true,
                energy_required = 6,
                ingredients = {{"wood", 10}},
                results = {
                    { type = "item", name = "bi-basic-dart-magazine", amount = 8 },
                    { type = "item", name = "wood-chips", amount = 2 }
            }
        }, 
What am I messing up?
Thanks,

Re: Ammo Recipe Question

Posted: Sat May 27, 2023 8:44 pm
by FuryoftheStars
TheSAguy wrote: Sat May 27, 2023 7:26 pm Can Ammo have two results?
Yes. A recipe is a recipe in this game. What it makes doesn't matter.

I'm not on a computer so can't verify, but maybe double-check all of your open and close brackets? I'm having a had time verifying they're all there (in the proper places).

Otherwise, some supporting information about what you mean by "can't seem to get my recipe below to work" would be helpful (do you get an error? Does the recipe not appear in game? Does it not produce both results (just one)?). ;)

Re: Ammo Recipe Question - Solved

Posted: Sun May 28, 2023 2:46 pm
by TheSAguy
Thanks,
There was a missing bracket between other recipes that caused this one not to run.
Now working, Thanks