Skip to content

place_entity: off-grid placements yield misleading 'blocked by' errors — placement-grid guard proposal #380

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/place_entity/server.lua: a request at off-grid
coordinates (e.g. a 2x2 drill at x.5, or a 1x1 belt at an integer) fails
with a collision/"blocked by" list naming neighbouring entities, which
sends agents down a false path (observed live: agent read the correct
drop tile (-54.5, -32.5), placed at (-54, -32), and spiralled on phantom
ground-item blockage).

Enhancement we run: validate against the prototype's tile_width/
tile_height parity up front and return a teaching error — "x must end
in .5 (this entity is 1 tile wide and sits on tile centers; nearest:
-54.5 or -53.5) … use the exact observed coordinates - do not round."
This one error message eliminated the whole failure class for us.
Happy to PR.

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