Barreling type issue, possible bug?

Place to get help with not working mods / modding interface.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Barreling type issue, possible bug?

Post by bobingabout »

I've been coding an air pump to bottle the gasses of bob's metals chemcials and intermediates mod, and unbottle them later elsewhere.
But I've run into a problem

Whenever I go to choose the recipe of the Hydrogen bottles in the air pump, the game crashs with this:
https://www.dropbox.com/s/lylddumqku6vo ... 4.png?dl=0

The odd thing is it only does it with Hydrogen.
Mod is here:
https://www.dropbox.com/s/8uviz9yfk87e5 ... n.rar?dl=0

I think it might be an issue with the "Raw materials required" calculations, even the other bottles are doing strange things, telling me they require oxygen, obviously going through the bottled oxygen recipe to get the empty bottle to use. I looked at the oil barrel recipes, and don't see any difference as to why they don't suffer a feedback loop like I'm seeing.

Quick reference for the code:

Code: Select all

  {
    type = "recipe",
    name = "hydrogen-canister",
    icon = "__bobplates__/graphics/icons/hydrogen-canister.png",
    category = "air-pump",
    subgroup = "bob-gas-bottle",
    energy_required = 1,
    enabled = "false",
    ingredients =
    {
      {type="fluid", name="hydrogen", amount=5},
      {"gas-canister", 1},
    },
    result = "hydrogen-canister",
    order = "b[fill-hydrogen-canister]",
  },

  {
    type = "recipe",
    name = "empty-hydrogen-canister",
    icon = "__bobplates__/graphics/icons/hydrogen-canister.png",
    category = "air-pump",
    subgroup = "bob-gas-bottle",
    energy_required = 1,
    enabled = "false",
    ingredients =
    {
      {"hydrogen-canister", 1},
    },
    results =
    {
      {type="fluid", name="hydrogen", amount=5},
      {"gas-canister", 1},
    },
    main_product= "hydrogen",
    order = "c[empty-hydrogen-canister]",
  },
Yes, the others are identical, the only difference is instead of saying hydrogen, they'll say oxygen, nitrogen, chlorine or hydrogen-chloride.

if you want to try to repeat this, All my mods are installed with this wip, research is named bottled gas processing and has no dependancies and requires only red and green science.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Barreling type issue, possible bug?

Post by bobingabout »

Okay, I found the issue.
I had a recipe "void-oxygen" that turned 1 oxygen into 0 hydrogen... well, 1 hydrogen with a 0% probability, to delete oxygen basically, which now that you can bottle oxygen to use elsewhere is a bit redundant. Deleting this void-oxygen recipe fixed the error.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding help”