Player Auto Build 2 - (Ghosts, Blueprints, Deconstruction)

by MaZy

Automatically builds or removes blueprint / deconstruction / ghosts near the player. It has the same behaviour like you would do yourself mining or removing things. Also supports deconstruction which will mine mineable things to your inventory. Deconsturctions works on everything which is markable.

Utilities
14 days ago
1.1 - 2.0
5.32K

b Crash at startup

10 months ago

Fails to start with error:

Failed to load mods: File base/graphics/icons/shortcut-toolbar/mip/toggle-personal-roboport-x32.png not found

Mods to be disabled:
• player-auto-build-2 (1.2.5)

a month ago

same here, seems abandoned

25 days ago
(updated 25 days ago)

I had used to use a similar mod in 1.1 so grabbed this, of course found the same problem. If anyone wants an alternative, try https://mods.factorio.com/mod/Kruise_Kontrol_Updated

Also, I took a quick look at the files, pretty easy to fix if anyone wants to fix their own copy of the mod. It's trying to reference graphics for the shortcut bar that don't exist in the base game, not sure why this ever worked.

  1. Unzip the mod file
  2. Edit data.lua with the contents below
  3. Save and re-zip then replace the file in your mods directory

replace the data.lua file with:

data:extend(
{
  {
    type = "custom-input",
    name = "toggle-player-auto-build",
    key_sequence = "SHIFT + C",
    consuming = "game-only"
  },
  {
    type = "shortcut",
    name = "toggle-player-auto-build",
    order = "c[toggles]-c[my-toggle]",
    action = "lua",
    localised_name = {"shortcut.toggle-player-auto-build"},
    toggleable = true,
    icons = {
        {
            icon = "__base__/graphics/icons/shortcut-toolbar/mip/toggle-personal-roboport-x24.png",
            icon_size = 24,
            scale = 0.5,
            flags = {"gui-icon"}
        }
    },
    small_icons = {
        {
            icon = "__base__/graphics/icons/shortcut-toolbar/mip/toggle-personal-roboport-x24.png",
            icon_size = 24,
            scale = 0.5,
            flags = {"gui-icon"}
        }
    },
    disabled_icons = {
        {
            icon = "__base__/graphics/icons/shortcut-toolbar/mip/toggle-personal-roboport-x24-white.png",
            priority = "extra-high-no-scale",
            icon_size = 24,
            scale = 0.5,
            flags = {"gui-icon"}
        }
    },
    disabled_small_icons = {
        {
            icon = "__base__/graphics/icons/shortcut-toolbar/mip/toggle-personal-roboport-x24-white.png",
            priority = "extra-high-no-scale",
            icon_size = 24,
            scale = 0.5,
            flags = {"gui-icon"}
        }
    }
  }
})

New response