gate driver: an optional fixed start place, with no place in the run log (GATE-DRIVER-START) #3506

Code

Clone this repository

Checkout

From your project repository, check out a new branch and test the changes.

git fetch -u origin "feat/gate-driver-start:feat/gate-driver-start"
git switch "feat/gate-driver-start"
Open
leonida/mandy
MoonEyes wants to merge 2 commits from feat/gate-driver-start into main

This branch is out-of-date with the base branch

Conversation
Reviewers 0 approvals
  • No reviewers
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feat/gate-driver-start:feat/gate-driver-start'
git switch 'feat/gate-driver-start'
Member

Item: GATE-DRIVER-START

mods/gate_driver can start every run from the same place: start = x,y,z (and an optional start_hold, 0-30 s) in the local gate.txt. After the control probe the driver calls leonida.teleport once, logs GATE TELEPORT ok or GATE TELEPORT failed <reason> (numbers replaced), and goes on to idle or roam; a failure does not stop the run. Without start nothing changes.

Places are game data, so none reach a log:

  • game_actions.rs: Teleport, Lift and Warp are logged by Request::label() without numbers; the return lines and the position-write line have none.
  • player.rs: the teleport's lines and LEONIDA_TELEPORT's error carry no place.
  • The driver re-reads its reference point after the hold (+0.5 s), holds no key during it in roam, and its gate.txt parsing is in driver.parse_config.
  • Docs: lua-modding.md (the place stays in the local gate.txt, never in a commit, fixture, ticket or shared log), one sentence in game_gate.md.

Tested (Windows 11, no game):

  • cargo test --locked -p leonida-lua --lib: 56 passed.
  • cargo test --locked -p leonida -- game_actions player: 25 passed.
  • check_no_game_data.py on the changed files: OK. Tests only use made-up places such as 1,2,3.
  • Not run in game: the docs say the memory teleport may not work yet, in which case the run logs failed and goes on in place.

AI-assisted: written by Claude Opus 5.5 (Claude Code), reviewed in two passes by a separate Claude Opus 5.5 judge (ACCEPT). Asked for by OreoFR; OreoFR's agent runs the in-game gate on an RTX 4070 and posts the RUN here.

🤖 Generated with Claude Code

Item: GATE-DRIVER-START `mods/gate_driver` can start every run from the same place: `start = x,y,z` (and an optional `start_hold`, 0-30 s) in the local `gate.txt`. After the control probe the driver calls `leonida.teleport` once, logs `GATE TELEPORT ok` or `GATE TELEPORT failed <reason>` (numbers replaced), and goes on to idle or roam; a failure does not stop the run. Without `start` nothing changes. Places are game data, so none reach a log: - `game_actions.rs`: Teleport, Lift and Warp are logged by `Request::label()` without numbers; the return lines and the position-write line have none. - `player.rs`: the teleport's lines and `LEONIDA_TELEPORT`'s error carry no place. - The driver re-reads its reference point after the hold (+0.5 s), holds no key during it in roam, and its `gate.txt` parsing is in `driver.parse_config`. - Docs: `lua-modding.md` (the place stays in the local `gate.txt`, never in a commit, fixture, ticket or shared log), one sentence in `game_gate.md`. Tested (Windows 11, no game): - `cargo test --locked -p leonida-lua --lib`: 56 passed. - `cargo test --locked -p leonida -- game_actions player`: 25 passed. - `check_no_game_data.py` on the changed files: OK. Tests only use made-up places such as `1,2,3`. - Not run in game: the docs say the memory teleport may not work yet, in which case the run logs `failed` and goes on in place. AI-assisted: written by Claude Opus 5.5 (Claude Code), reviewed in two passes by a separate Claude Opus 5.5 judge (ACCEPT). Asked for by OreoFR; OreoFR's agent runs the in-game gate on an RTX 4070 and posts the RUN here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With a start in gate.txt, once the control probe has passed the driver calls
leonida.teleport(x, y, z, hold) once and goes on in idle or roam. It logs
"GATE TELEPORT ok" or "GATE TELEPORT failed <reason>" (numbers in the reason
replaced), never the coordinates; a failure does not stop the run. Without a
start the behaviour is unchanged. main.lua passes teleport to the driver.

Tests on the driver stub (made-up places): one call, a refusal logged with the
run continuing, no call without a start, and gate.txt parsing. Docs say the
coordinates stay in the local gate.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The runtime logged the place of a teleport (game_actions.rs and player.rs: the
"player set at" line, the request's Debug text, the transforms before and
after, LEONIDA_TELEPORT's value), and the gate keeps stderr in leonida.log.
Those lines now carry no place; Request::label names a teleport, lift or warp
without its numbers. Tests for both.

Driver: the marks' home is read after the hold (the teleport goes through the
title's thread), start_hold is held to 0..30 s as the API does, and gate.txt
parsing moves to driver.parse_config so tests can run it. Tests: no key held
before control + start_hold in roam, a lagging teleport, the clamp, and the
parsing of "start = 1, 2, 3" and start_hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
First-time contributor

Independent local verification of this change (I changed no code).

  • Head 94b8e9bd, merge base 0036195a. The new tests are absent on the base: git grep -F the_gate_driver_teleports_to_its_start_once_and_never_logs_the_place 0036195a -- d3d12 -> exit 1.
  • On the PR head, private CARGO_TARGET_DIR, -- --exact, one at a time on leonida-lua:
    • tests::the_gate_driver_teleports_to_its_start_once_and_never_logs_the_place -> 1 passed
    • tests::the_gate_driver_clamps_start_hold_as_the_api_does -> 1 passed
    • tests::the_gate_driver_fails_without_a_position_or_without_control -> 1 passed
    • tests::the_gate_driver_reads_its_start_from_the_text_of_gate_txt -> 1 passed
  • Whole crate on the same head: cargo test -p leonida-lua --locked --lib -> 56 passed, 0 failed. The tests drive the driver against a scripted Lua API, not the game.
  • git diff --check 0036195a 94b8e9bd -> clean. python -I scripts/check_no_game_data.py on game_actions.rs, player.rs, leonida-lua/tests.rs, mods/gate_driver/driver.lua, mods/gate_driver/main.lua and docs/game_gate.md -> clean.

GPUs tested: none (scripted Lua API, no game run and no card). Driver: n/a. No game data, assets or extracted shaders were used or attached.

AI-assisted: yes, Hy4 flash (verification only). No approval implied; this is a local test report.

Independent local verification of this change (I changed no code). - Head `94b8e9bd`, merge base `0036195a`. The new tests are absent on the base: `git grep -F the_gate_driver_teleports_to_its_start_once_and_never_logs_the_place 0036195a -- d3d12` -> exit 1. - On the PR head, private `CARGO_TARGET_DIR`, `-- --exact`, one at a time on `leonida-lua`: - `tests::the_gate_driver_teleports_to_its_start_once_and_never_logs_the_place` -> 1 passed - `tests::the_gate_driver_clamps_start_hold_as_the_api_does` -> 1 passed - `tests::the_gate_driver_fails_without_a_position_or_without_control` -> 1 passed - `tests::the_gate_driver_reads_its_start_from_the_text_of_gate_txt` -> 1 passed - Whole crate on the same head: `cargo test -p leonida-lua --locked --lib` -> 56 passed, 0 failed. The tests drive the driver against a scripted Lua API, not the game. - `git diff --check 0036195a 94b8e9bd` -> clean. `python -I scripts/check_no_game_data.py` on game_actions.rs, player.rs, leonida-lua/tests.rs, mods/gate_driver/driver.lua, mods/gate_driver/main.lua and docs/game_gate.md -> clean. GPUs tested: none (scripted Lua API, no game run and no card). Driver: n/a. No game data, assets or extracted shaders were used or attached. AI-assisted: yes, Hy4 flash (verification only). No approval implied; this is a local test report.
Sign in to join this conversation.
No description provided.