Skip to content

get_entities cannot see neutral-force entities — ground items block placement invisibly #379

Description

@bdambrosio

Found while running FLE's Lua stack in an unusual regime: a persistent multiplayer server where an LLM agent cohabits the map with a human player in real time (no fast-mode, real walking). Setup: https://github.com/bdambrosio/Cognitive_workbench (factorio/). We carry build-time patches for each of the issues we're filing; happy to turn any into a PR.

fle/env/tools/agent/get_entities/server.lua (lines 27/29): both
branches filter force = player.force. Loose items on the ground
(item-entity, force neutral) are invisible to observations, yet they
BLOCK building placement — so the agent repeatedly fails placements on
debris it cannot perceive (observed live: a mined drill's ore spill made
a tile unbuildable; the agent looped clearing "invisible" blockage by
trial and error). Resource patches have the same visibility gap.

Suggestion: include item-entity (and optionally resource) in results,
or add a forces parameter. We surface them host-side as per-type
aggregates with a bounding span, which reads well for the agent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions