Page 1 of 1

Unable to use deconstruction, upgrade, or BP on loader-1x1 deepcopy entity

Posted: Sat Nov 08, 2025 6:55 am
by keeper317
I am trying to make a custom set of loaders but when using the built-in loader-1x1 my entity is not selectable with blueprint, deconstruction, or upgrade planners.
Example of 1 tier which is not selectable

Code: Select all

loader = table.deepcopy(data.raw['loader-1x1']['loader-1x1']);
loader.name = "ddi-fast-loader";
loader.filter_count = 5;
loader.per_lane_filters = false;
loader.max_belt_stack_size = 4;
loader.icon = "__more-belts-loaders__/graphics/item/icon-base.png"
-- loader.structure works, removed for spacing
loader.icons = nil
loader.icon_size = 64;
loader.icon_mipmaps = 1;
loader.minable = {mining_time = 0.55}
loader.belt_animation_set = mk2_belt_annimation_set;
loader.speed = calcSpeed(settings.startup['ddi-t2-speed'].value);
loader.fast_replaceable_group = "ddi-loader"
loader.next_upgrade = "ddi-express-loader"
Example of 1 tier which is selectable

Code: Select all

local loader = table.deepcopy(data.raw['loader']['loader']);
loader.name = "ddi-loader";
loader.filter_count = 5;
loader.per_lane_filters = false;
loader.max_belt_stack_size = 4;
loader.icon = "__more-belts-loaders__/graphics/item/icon-base.png"
-- loader.structure removed for space
loader.icons = nil
loader.icon_size = 64;
loader.icon_mipmaps = 1;
loader.minable = {mining_time = 0.55}
loader.belt_animation_set = mk1_belt_annimation_set;
loader.speed = calcSpeed(settings.startup['ddi-t1-speed'].value);
loader.fast_replaceable_group = "ddi-loader"
loader.next_upgrade = "ddi-fast-loader"

Re: Unable to use deconstruction, upgrade, or BP on loader-1x1 deepcopy entity

Posted: Thu Nov 13, 2025 2:14 am
by yaim904
Maybe it's because you didn't remove the hidden property from the entity, or because mining doesn't return an item.

I'm not sure, but you can start there.

I would like to help you more, but your code is not functional.

Re: Unable to use deconstruction, upgrade, or BP on loader-1x1 deepcopy entity

Posted: Thu Nov 13, 2025 8:02 pm
by robot256
I would suggest you remove the deepcopy and instead copy and paste the prototype from the base game file into your mod file for your "tier 1" loader. Then you can change every property to exactly what you want, and deepcopy the tier 1 prototype to make the tier 2 prototype, etc.

The upgrade planner relies on a combination of the quick-replace category and the next_upgrade parameter. You should look at other similar mods for reference.