Ammo Recipe Question - Solved

Place to get help with not working mods / modding interface.
Post Reply
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Ammo Recipe Question - Solved

Post 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,
Last edited by TheSAguy on Sun May 28, 2023 2:46 pm, edited 1 time in total.

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2635
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Ammo Recipe Question

Post 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)?). ;)
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics

TheSAguy
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: Ammo Recipe Question - Solved

Post by TheSAguy »

Thanks,
There was a missing bracket between other recipes that caused this one not to run.
Now working, Thanks

Post Reply

Return to “Modding help”