Standalone K2 Advanced Assembly Machine


An over-engineered standalone port of advanced assembly machine from Krastorio 2, with optional rebalancing settings.

Content
4 days ago
1.1 - 2.0
1.68K
Manufacturing

g [Done] Freezing on Aquilo

5 days ago

Hi! I'm glad to see this ported to 2.0. I noticed that it doesn't freeze on Aquilo.

I was able to fix this for myself by adding this code to near the end of the mod's data-updates.lua:

if (mods["space-age"]) then
    local am4 = data.raw["assembling-machine"]["kr-advanced-assembling-machine"] 
    am4.heating_energy = "200kW"
    am4.graphics_set.reset_animation_when_frozen = true
    am4.graphics_set.frozen_patch = {
        filename = kr_entities_path .. "advanced-assembling-machine/advanced-assembling-machine-frozen.png",
        priority = "high",
        width = 320,
        height = 320,
        shift = { 0, 0 },
        scale = 0.5,
    }

    local pipes_frozen = util.table.deepcopy(am4.fluid_boxes[1].pipe_picture)
    pipes_frozen.north.filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-pipe-N-frozen.png"
    pipes_frozen.east.filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-pipe-E-frozen.png"
    pipes_frozen.south.filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-pipe-S-frozen.png"
    pipes_frozen.west.filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-pipe-W-frozen.png"

    am4.fluid_boxes[1].pipe_picture_frozen = pipes_frozen
    am4.fluid_boxes[2].pipe_picture_frozen = pipes_frozen
end

I also made a frozen image that you are welcome to use if you would like to: https://i.imgur.com/4l6BFH1.png

I added the code and it works, and the frozen texture looks good as well. Thanks for the contribution!

New response