Ghost Counter


Generate a list of all ghosts in your selection area or the blueprint in your cursor using the shortcut button or hotkey (default: Ctrl+G). Find out what you have in your inventory, and conveniently make one-time logistic requests for everything you need.

Utilities
1 year, 4 months ago
1.1 - 2.0
31.3K
Logistic network Circuit network Blueprints

b No longer sellects tile

2 months ago

Holding shift does not do tiles. tried it without any other mods on a new save without space age too.

4 days ago

I used Claude to see what had changed. This was the response.

To summarise what the actual Factorio 2.0 breaking change was: tile ghosts were simply dropped from event.entities in selection events. The fix was just one extra find_entities_filtered{type = "tile-ghost"} call to fetch them separately and merge them in.

in events.lua

Change

function on_player_selected_area(event, ignore_tiles)
if event.item ~= NAME.tool.ghost_counter then return end

local ghosts, requests = get_selection_counts(event.entities, ignore_tiles)

to

function on_player_selected_area(event, ignore_tiles)
if event.item ~= NAME.tool.ghost_counter then return end

local entities = event.entities

if not ignore_tiles then
    local tile_ghosts = event.surface.find_entities_filtered{
        type = "tile-ghost",
        area = event.area
    }
    for _, e in pairs(tile_ghosts) do
        table.insert(entities, e)
    end
end

local ghosts, requests = get_selection_counts(entities, ignore_tiles)

New response