Comfortable Loader

by plexpt

Adds Comfortable Compact minimalist 1x1 loaders.

Content
7 days ago
2.0 - 2.1
14.8K

g Failed to load in 2.1

6 days ago

Failed to load mods: Error while running setup for recipe prototype "express-comfortable-loader" (recipe): Recipe has 'crafting' category but has a non-item ingredient 'lubricant' (fluid)

2 days ago

I got the same thing.

a day ago
(updated a day ago)

Not sure how to format this so hopefully it looks correct, logged in for the first time in like 10 years to post this lmao. If you open the mod .zip file within the factorio mods folder, then open the prototypes folder, then the create_loader.lua file. Find and replace the whole local function create_loader_recipe block with this new block:

local function create_loader_recipe(tier_table)
    local category = tier_table.loader_category or "crafting"
    local recipe_name = tier_table.loader_recipe or tier_table.loader

    if recipe_name == "express-comfortable-loader" then
        category = "crafting-with-fluid"
    elseif tier_table.loader_ingredients then
        for _, ing in ipairs(tier_table.loader_ingredients) do
            if ing.type == "fluid" then
                category = "crafting-with-fluid"
                break
            end
        end
    end

    local recipe = {
        type = "recipe",
        name = recipe_name,
        localised_description = { "entity-description.comfortable-loader" },
        categories = { category }, 
        group = "logistics",
        subgroup = "loaders",
        order = string.format("a%s%s", (tier_table.order or tier_table.loader), "-loader"),
        enabled = false,
        ingredients = tier_table.loader_ingredients,
        results = {
            { type = "item", name = tier_table.loader_item or tier_table.loader, amount = 1 }
        },
        energy_required = 2.0,
    }
    if not tier_table.technology then
        recipe.enabled = true
    end
    return recipe
end

Save and replace the file within the zip. You may have to extract everything and then repackage it if directly replacing the file within the zip doesn't work. Anyways, that fixed the error for me. I opened a quick sandbox and it appears the recipes are working in the assemblers but I didn't extensively test it. Hopefully this helps until an official fix comes from the author.
Cheers

New response