search for a room and point at it closes #37 closes #38 #123

Closed
sermuns wants to merge 1 commit from feat/37-38-search-for-a-room into main
Owner
  • (slop) search for a room and point at it closes #37 closes #38

closes #37 closes #38

What the worker did

Commit 57110bf on feat/37-38-search-for-a-room.
What changed:

  • #37: liuverse-world/src/search.rs (new) builds a baked local SearchIndex over rooms, signs and buildings, with fold, ranking, distance/bearing Direction, and tests. liuverse-data gained room_function_name, room_function_aliases, room_display and chat::command. main.rs builds the index and handles /query chat commands: searches from the player's ENU position, pushes answer lines with distance + cardinal bearing + floor/building, and limits to the top 5. chat.rs/hud.rs color self-answered lines as own.
  • #38: main.rs gained a waypoint field; the best search hit becomes a floating WorldLabel marker (visible through walls, on its floor) shown in both first-person and the M map overview. net.rs gained push_local for client-only answer lines.
    How a human sees it: type /231 or /toalett in chat and press Enter; the log answers with matches like 231 WC · 40 m north (floor 2, A-huset), and a marker floats over the destination, including on the M overview.
    Deliberately left out: MazeMap's indoor routing service (straight-line distance/bearing only, per the issue's fallback), clearing a waypoint, and any rebake. assets/baked/valla.bin untouched.

How to test

Type /231 or /toalett in the chat field and press Enter. The log answers
with matches like 231 WC · 40 m north (floor 2, A-huset), and a marker
floats over the destination, on its floor, visible through walls and on the
M overview.

A 👍 reaction on this pull request flags it for merge.

- (slop) search for a room and point at it closes #37 closes #38 closes #37 closes #38 ## What the worker did Commit `57110bf` on `feat/37-38-search-for-a-room`. What changed: - #37: `liuverse-world/src/search.rs` (new) builds a baked local `SearchIndex` over rooms, signs and buildings, with `fold`, ranking, distance/bearing `Direction`, and tests. `liuverse-data` gained `room_function_name`, `room_function_aliases`, `room_display` and `chat::command`. `main.rs` builds the index and handles `/query` chat commands: searches from the player's ENU position, pushes answer lines with distance + cardinal bearing + floor/building, and limits to the top 5. `chat.rs`/`hud.rs` color self-answered lines as own. - #38: `main.rs` gained a `waypoint` field; the best search hit becomes a floating `WorldLabel` marker (visible through walls, on its floor) shown in both first-person and the `M` map overview. `net.rs` gained `push_local` for client-only answer lines. How a human sees it: type `/231` or `/toalett` in chat and press Enter; the log answers with matches like `231 WC · 40 m north (floor 2, A-huset)`, and a marker floats over the destination, including on the `M` overview. Deliberately left out: MazeMap's indoor routing service (straight-line distance/bearing only, per the issue's fallback), clearing a waypoint, and any rebake. `assets/baked/valla.bin` untouched. ## How to test Type `/231` or `/toalett` in the chat field and press Enter. The log answers with matches like `231 WC · 40 m north (floor 2, A-huset)`, and a marker floats over the destination, on its floor, visible through walls and on the `M` overview. A 👍 reaction on this pull request flags it for merge.
sermuns closed this pull request 2026-10-21 09:40:32 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
elsie/liuverse!123
No description provided.