Miniloader

by therax

Compact and UPS-friendly 1x1 loaders. Works with train cargo wagons, circuits, filters, and modded belts from Bob's, Krastorio, FactorioExtended Plus, Space Exploration, and Ultimate Belts.

Content
7 months ago
0.15 - 1.1
177K
Logistics

i miniloader order for ultimate belts

4 years ago

When using your mod plus ultimate belts by owoshima and pankeko, if the setting that uses bobs recipes is on, all those belts go to the bobs logistics section, but miniloaders for those belts remain in the vanilla logistic section. Could you add the following code so that if that setting is on, those miniloaders go to the bob section?. The code:

if mods["UltimateBelts_Owoshima_And_Pankeko-Mod"] and settings.startup["useBobRecipe"].value then
data.raw.recipe["ub-ultra-fast-miniloader"].subgroup = "ultimate-tier-1"
data.raw.recipe["ub-ultra-fast-miniloader"].order = "e"
data.raw.recipe["ub-extreme-fast-miniloader"].subgroup = "ultimate-tier-2"
data.raw.recipe["ub-extreme-fast-miniloader"].order = "e"
data.raw.recipe["ub-ultra-express-miniloader"].subgroup = "ultimate-tier-3"
data.raw.recipe["ub-ultra-express-miniloader"].order = "e"
data.raw.recipe["ub-extreme-express-miniloader"].subgroup = "ultimate-tier-4"
data.raw.recipe["ub-extreme-express-miniloader"].order = "e"
data.raw.recipe["ub-ultimate-miniloader"].subgroup = "ultimate-tier-5"
data.raw.recipe["ub-ultimate-miniloader"].order = "e"
data.raw.recipe["ub-ultra-fast-filter-miniloader"].subgroup = "ultimate-tier-1"
data.raw.recipe["ub-ultra-fast-filter-miniloader"].order = "f"
data.raw.recipe["ub-extreme-fast-filter-miniloader"].subgroup = "ultimate-tier-2"
data.raw.recipe["ub-extreme-fast-filter-miniloader"].order = "f"
data.raw.recipe["ub-ultra-express-filter-miniloader"].subgroup = "ultimate-tier-3"
data.raw.recipe["ub-ultra-express-filter-miniloader"].order = "f"
data.raw.recipe["ub-extreme-express-filter-miniloader"].subgroup = "ultimate-tier-4"
data.raw.recipe["ub-extreme-express-filter-miniloader"].order = "f"
data.raw.recipe["ub-ultimate-filter-miniloader"].subgroup = "ultimate-tier-5"
data.raw.recipe["ub-ultimate-filter-miniloader"].order = "f"
data.raw.item["ub-ultra-fast-miniloader"].subgroup = "ultimate-tier-1"
data.raw.item["ub-ultra-fast-miniloader"].order = "e"
data.raw.item["ub-extreme-fast-miniloader"].subgroup = "ultimate-tier-2"
data.raw.item["ub-extreme-fast-miniloader"].order = "e"
data.raw.item["ub-ultra-express-miniloader"].subgroup = "ultimate-tier-3"
data.raw.item["ub-ultra-express-miniloader"].order = "e"
data.raw.item["ub-extreme-express-miniloader"].subgroup = "ultimate-tier-4"
data.raw.item["ub-extreme-express-miniloader"].order = "e"
data.raw.item["ub-ultimate-miniloader"].subgroup = "ultimate-tier-5"
data.raw.item["ub-ultimate-miniloader"].order = "e"
data.raw.item["ub-ultra-fast-filter-miniloader"].subgroup = "ultimate-tier-1"
data.raw.item["ub-ultra-fast-filter-miniloader"].order = "f"
data.raw.item["ub-extreme-fast-filter-miniloader"].subgroup = "ultimate-tier-2"
data.raw.item["ub-extreme-fast-filter-miniloader"].order = "f"
data.raw.item["ub-ultra-express-filter-miniloader"].subgroup = "ultimate-tier-3"
data.raw.item["ub-ultra-express-filter-miniloader"].order = "f"
data.raw.item["ub-extreme-express-filter-miniloader"].subgroup = "ultimate-tier-4"
data.raw.item["ub-extreme-express-filter-miniloader"].order = "f"
data.raw.item["ub-ultimate-filter-miniloader"].subgroup = "ultimate-tier-5"
data.raw.item["ub-ultimate-filter-miniloader"].order = "f"
end

4 years ago

It works, I made a small mod for myself that did this among other things, but I think this code should be part of your mod

4 years ago

Miniloader copies the placement from the base mod, UltimateBelts_Owoshima_And_Pankeko-Mod in this case. Unfortunately, the way that mod works it that it puts its recipes in the normal place during the main phase of the mod, and then moves them during the data-final-fixes phase. I refuse to support mods that make changes during this phase. What UltimateBelts_Owoshima_And_Pankeko-Mod should be doing is putting the recipes in the correct location based on the setting during the main data phase. Then Miniloaders would use the correct placement automatically.

4 years ago

OK, I'll tell him that then, thanks

New response