Page 1 of 1

freezing is disabled ?

Posted: Wed Nov 06, 2024 1:30 pm
by plexpt
Error while loading entity prototype "'mbp" (assembling-machine): Freezing is disabled and can not be used.
Modifications: MacBook Pro

code:

Code: Select all

data:extend({

    {
        type = "assembling-machine",
        name = "mbp",
        icon = "__mbp-pro__/graphics/icon.png",
        icon_size = 400,
        flags = { "placeable-neutral", "placeable-player", "player-creation" },
        minable = { hardness = 0.2, mining_time = 1, result = "mbp" },
        max_health = 2000,
        inventory_size = 300,
        corpse = "big-remnants",
        dying_explosion = "big-explosion",
        resistances = { { type = "fire", percent = 90 } },
        fluid_boxes = {
            {
                production_type = "input",
                volume = 1000,
                pipe_picture = assembler3pipepictures(),
                pipe_covers = pipecoverspictures(),
                base_area = 10,
                base_level = -1,
                pipe_connections = { { direction = defines.direction.north, flow_direction = "input", position = { -4, -4 } } },
                secondary_draw_orders = { north = -1 }
            },
            {
                production_type = "input",
                volume = 1000,
                pipe_picture = assembler3pipepictures(),
                pipe_covers = pipecoverspictures(),
                base_area = 10,
                base_level = -1,
                pipe_connections = { { direction = defines.direction.north, flow_direction = "input", position = { -2, -4 } } },
                secondary_draw_orders = { north = -1 }
            },
            {
                production_type = "input",
                volume = 1000,
                pipe_picture = assembler3pipepictures(),
                pipe_covers = pipecoverspictures(),
                base_area = 10,
                base_level = -1,
                pipe_connections = { { direction = defines.direction.north, flow_direction = "input", position = { 0, -4 } } },
                secondary_draw_orders = { north = -1 }
            },
            {
                production_type = "input",
                volume = 1000,
                pipe_picture = assembler3pipepictures(),
                pipe_covers = pipecoverspictures(),
                base_area = 10,
                base_level = -1,
                pipe_connections = { { direction = defines.direction.north, flow_direction = "input", position = { 2, -4 } } },
                secondary_draw_orders = { north = -1 }
            },
            {
                production_type = "input",
                volume = 1000,
                pipe_picture = assembler3pipepictures(),
                pipe_covers = pipecoverspictures(),
                base_area = 10,
                base_level = -1,
                pipe_connections = { { direction = defines.direction.north, flow_direction = "input", position = { 4, -4 } } },
                secondary_draw_orders = { north = -1 }
            },
            {
                production_type = "output",
                volume = 1000,
                pipe_picture = assembler3pipepictures(),
                pipe_covers = pipecoverspictures(),
                base_area = 10,
                base_level = 1,
                pipe_connections = { { direction = defines.direction.south, flow_direction = "output", position = { -2, 4 } } },
                secondary_draw_orders = { north = -1 }
            },
            {
                production_type = "output",
                volume = 1000,
                pipe_picture = assembler3pipepictures(),
                pipe_covers = pipecoverspictures(),
                base_area = 10,
                base_level = 1,
                pipe_connections = { { direction = defines.direction.south, flow_direction = "output", position = { 0, 4 } } },
                secondary_draw_orders = { north = -1 }
            },
            {
                production_type = "output",
                volume = 1000,
                pipe_picture = assembler3pipepictures(),
                pipe_covers = pipecoverspictures(),
                base_area = 10,
                base_level = 1,
                pipe_connections = { { direction = defines.direction.south, flow_direction = "output", position = { 2, 4 } } },
                secondary_draw_orders = { north = -1 }
            }
        },
        fluid_boxes_off_when_no_fluid_recipe = true,
        collision_box = { { -4.1, -4.1 }, { 4.1, 4.1 } },
        selection_box = { { -4.8, -5 }, { 4.8, 5 } },
        drawing_box = { { -4.8, -4.8 }, { 4.8, 4.8 } },
        graphics_set = {

            animation = {
                slice = 1,
                priority = "high",
                animation_speed = 0.02,
                width = 400,
                height = 400,
                frame_count = 200,
                --lines_per_file = 1,
                --direction_count = 1,
                --line_length = 1,
                shift = util.by_pixel(0, -80),
                scale = 1.3,
                stripes = getStripes()

            },
        },
        crafting_categories = { "advanced-crafting",
                                "basic-crafting",
                                "centrifuging",
                                "chemistry",
                                "crafting",
                                "crafting-with-fluid",
                                "crafting-with-fluid-or-metallurgy",
                                "pressing",
                                "electronics",
                                "electronics-with-fluid",
                                "electronics-or-assembling",
                                "cryogenics-or-assembling",
                                "organic-or-hand-crafting",
                                "organic-or-assembling",
                                "metallurgy-or-assembling",
                                "oil-processing",
                                "rocket-building",
                                "smelting", },
        crafting_speed = 10,
        impact_category = "metal",
        energy_source = {
            type = "electric",
            usage_priority = "secondary-input",
            emissions_per_minute = {
                pollution = 32
            }
        },
        energy_usage = "100MW",
        ingredient_count = 6,
        module_specification = { module_slots = 20 },
        allowed_effects = { "consumption", "speed", "productivity", "pollution", "quality" },
        heating_energy = "100kW",
        open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
        close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
        vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
        working_sound = {
            audible_distance_modifier = 0.5,
            fade_in_ticks = 4,
            fade_out_ticks = 20,
            sound = {
                filename = "__base__/sound/assembling-machine-t3-1.ogg",
                volume = 0.45
            }
        }
    },

})


Re: freezing is disabled ?

Posted: Wed Nov 06, 2024 1:56 pm
by robot256
I'm guessing you tried to load it without Space Age enabled. You can make your mod request the freezing feature without depending on Space Age by adding

Code: Select all

"freezing_required": true,
to your info.json. Note that this will prevent users who do not own the DLC from downloading or running your mod.

Re: freezing is disabled ?

Posted: Wed Nov 06, 2024 2:32 pm
by plexpt
If you want to support non-DLC, which property should you change?

Re: freezing is disabled ?

Posted: Wed Nov 06, 2024 3:41 pm
by posila
plexpt wrote: Wed Nov 06, 2024 2:32 pm If you want to support non-DLC, which property should you change?
heating_energy needs to be nil or 0 if freezing feature flag is not set

Code: Select all

heating_energy = feature_flags["freezing"] and "100kW" or nil