Comfortable Loader

by plexpt

Adds Comfortable Compact minimalist 1x1 loaders.

Content
14 days ago
2.0 - 2.1
16.1K

g Failed to load in 2.1

4 months 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)

4 months ago

I got the same thing.

4 months ago
(updated 4 months 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

3 months ago
(updated 3 months ago)

Edit: Apparently I can't read

a month ago

I got this error too but i'm not launched this mod with vanilla only with PY mods and i thought PY mods caused this error

14 days ago

Just went through the process of adding the above text to the .lua file. Solved the problem for me as well.

14 days ago

updated

13 days ago

I have gone AFK.
This mod is looking for a maintainer. If you're interested, please submit a PR on GitHub.
GitHub link: https://github.com/PlexPt/small-factorio-mods

10 days ago

I have gone AFK.
This mod is looking for a maintainer. If you're interested, please submit a PR on GitHub.
GitHub link: https://github.com/PlexPt/small-factorio-mods

can you just publish updates from github? or give me collaborator/ownership of this mod?

5 days ago

There is an updated MOD named: Comfortable Loaded (Fixed) that works without modifying the LUA file.

New response