- Notifications
You must be signed in to change notification settings - Fork 0
Select a machine in-game -> focus its block(s) in the web #3
Copy link
Copy link
Open
Labels
area: bridgeLocal service / API bridge between Factorio and the appLocal service / API bridge between Factorio and the apparea: protocolUDP message schema and request/response handlingUDP message schema and request/response handlingarea: webWeb UI (React/TanStack/vite-plus)Web UI (React/TanStack/vite-plus)
Description
Metadata
Metadata
Assignees
Labels
area: bridgeLocal service / API bridge between Factorio and the appLocal service / API bridge between Factorio and the apparea: protocolUDP message schema and request/response handlingUDP message schema and request/response handlingarea: webWeb UI (React/TanStack/vite-plus)Web UI (React/TanStack/vite-plus)
The reverse of locate: a discrete in-game hotkey (reads
player.selectedon keypress, deliberately not a button) sends the selected entity's recipe and output to the app, and the web jumps to the relevant block.Blocks are plans, not physical regions, so there is no direct entity-to-block link, only recipe association. Disambiguation:
Mechanism: the mod sends
{recipe, product}to the app over the bridge; the app stores a pending navigation; the web polls a small endpoint and routes when one lands (the browser is separate from the server). This reuses the existing bridge and resource drawer, with no new UI buttons.A better-than-recipe future option is to let the player tag a physical region or set of entities as "block X" in-world for a direct mapping. That is a bigger feature; recipe association is v1.