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
9 months ago
1.1 - 2.0
5.10K

g Startup Crash Workaround (NOT official)

8 months ago
(updated 8 months ago)

Mod currently fails to load up due to it not finding a specific PNG file for the in-game Toggle Personal Roboport button.

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)

Just as a test, I copy/pasted the "x56" version of this PNG that already exists inside this folder and renamed it to match the file it was missing -- "toggle-personal-roboport-x32" (do not add .PNG to the end). Game loaded the mod successfully after adding this, though I haven't done anything beyond opening a new game so there may still be some issue if the mod ends up making a call for this file and it fails in some way to match up to what it's supposed to be; but, barring an issue like that cropping up this seems to be a good way to get the mod playable until it is hopefully updated in the future.

The folder needed can be found on your local machine at: [~]\SteamLibrary\steamapps\common\Factorio\data\base\graphics\icons\shortcut-toolbar\mip

8 months ago

I solved the problem in a rather strange way. I took the *32 file from the old version and added it to the "mip" folder, now I have not 40, but 41 icons in this game folder, it doesn't seem to cause any other errors.

8 months ago

Thanks for the workaround.

2 months ago

@Mazy Fix 👏Your👏Mod👏

2 months ago
(updated 2 months ago)

data.lua

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-x56.png",
            icon_size = 56,
            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-x56.png",
            priority = "extra-high-no-scale",
            icon_size = 56,
            scale = 0.5,
            flags = {"gui-icon"}
        }
    },
    disabled_small_icons = {
        {
            icon = "__base__/graphics/icons/shortcut-toolbar/mip/toggle-personal-roboport-x24.png",
            priority = "extra-high-no-scale",
            icon_size = 24,
            scale = 0.5,
            flags = {"gui-icon"}
        }
    }
  }
})

New response