WIP: [pr-feature][input][startup] DARNER_SKIP_START=1: A is pressed at the start screen until the world is first shown (off by default) #216

Draft
iridiumlotus wants to merge 1 commit from iridiumlotus/Darner:skip-start into main
Contributor

Draft while the third gate finishes (see "Gates" below); opened early so nobody starts the same thing.

What it changes

  • The problem on main: the game waits at its start screen for A (Enter on the keyboard) before it loads anything (docs/troubleshooting.md, "Stuck at the account picker"). A start nobody sits at needs a scripted key (DARNER_KEYS, DARNER_KEYS_FILE) timed by a driver outside the process. Control run on this change with the switch not set and no key sent: the start screen for the 6 minutes watched (11 draws a frame in every report).

DARNER_SKIP_START=1 (off unless set) answers that screen: the pad the title sees gets A for 0.2 s at the end of every 2 s, from the first poll until the world is first shown (darner_gpu::world_since, the same mark DARNER_SKIP_BINK uses), and not while the F1 menu is open. The press goes on the pad overlay in Hub::poll, so it reaches the one pad, the first host pad that has shown input, or the keyboard's stand-in alike. With DARNER_SKIP_BINK=1 as well, a start needs no input at all.

Also: a README row, one sentence in docs/troubleshooting.md, and DARNER_SKIP_START is one of the player's own lines in darner-settings.txt (the one-time question does not offer to remove it). No F1 row: I left the menu and the locale files alone.

How it was tested

  • Tested revision: 4016bed (this branch, on main f3840d7) for the gates. The game runs used the same patch on a release build of a local tree at f3840d7 with my launcher's settings.

  • Commands and results:

    • cargo test --locked -p darner-hle --lib -- the_start_screen_press a_press_on_the_overlay: 2 passed.
    • Game, switch set, no key sent by the test driver: the log says the start screen is answered for the player: A every 2 s until the world is shown (DARNER_SKIP_START=1); the start screen showed for about 15 s (16 and 11 draws a frame), then the save loaded; the world's first report came 86 s after the start, 0 errors, the scene of the save on screen.
    • Game, switch not set, no key sent: the start screen for 6 minutes, then I closed it.
  • Changes a default: no

  • A/B result: a switch that is off by default. Checked as above, one run each:

    A (not set, no key sent) B (DARNER_SKIP_START=1, no key sent)
    reaches the world no, start screen for the 6 min watched yes, 86 s after the start
  • Gates run on that revision: gate 1 (cargo clippy --workspace --all-targets --locked -- -D warnings) passed, gate 2 (the same with --all-features) passed, gate 3 (cargo test --workspace --locked) is still running as I open this; I will write its result here.

  • Gameplay, when relevant: RTX 5080, Series S profile, 1113x626 with DLSS balanced, frame generation off, ray tracing off, DARNER_SKIP_BINK=1.

  • Shader wave sizes tested, when relevant: not relevant (input only).

  • Hardware dependence: likely general (input only).

  • Coverage gaps: only starts with a save to load were tried (the title loads it after A); a first start without a save was not. The presses go on through the loading screen until the world shows; nothing came of them in these runs. One-pad mode (the default) only in the game; DARNER_ONE_PAD=0 is covered by the unit test alone.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found for the start screen. Open PRs that touch gameinput.rs for other reasons: #185 (DualSense triggers), #205 (build scripts), #32, #39, #40, #41 (Intel shader work).
  • Replaces or overlaps: none found
Draft while the third gate finishes (see "Gates" below); opened early so nobody starts the same thing. ## What it changes - The problem on main: the game waits at its start screen for A (Enter on the keyboard) before it loads anything (docs/troubleshooting.md, "Stuck at the account picker"). A start nobody sits at needs a scripted key (`DARNER_KEYS`, `DARNER_KEYS_FILE`) timed by a driver outside the process. Control run on this change with the switch not set and no key sent: the start screen for the 6 minutes watched (11 draws a frame in every report). `DARNER_SKIP_START=1` (off unless set) answers that screen: the pad the title sees gets A for 0.2 s at the end of every 2 s, from the first poll until the world is first shown (`darner_gpu::world_since`, the same mark `DARNER_SKIP_BINK` uses), and not while the F1 menu is open. The press goes on the pad overlay in `Hub::poll`, so it reaches the one pad, the first host pad that has shown input, or the keyboard's stand-in alike. With `DARNER_SKIP_BINK=1` as well, a start needs no input at all. Also: a README row, one sentence in docs/troubleshooting.md, and `DARNER_SKIP_START` is one of the player's own lines in `darner-settings.txt` (the one-time question does not offer to remove it). No F1 row: I left the menu and the locale files alone. ## How it was tested - Tested revision: 4016bed (this branch, on main f3840d7) for the gates. The game runs used the same patch on a release build of a local tree at f3840d7 with my launcher's settings. - Commands and results: - `cargo test --locked -p darner-hle --lib -- the_start_screen_press a_press_on_the_overlay`: 2 passed. - Game, switch set, no key sent by the test driver: the log says `the start screen is answered for the player: A every 2 s until the world is shown (DARNER_SKIP_START=1)`; the start screen showed for about 15 s (16 and 11 draws a frame), then the save loaded; the world's first report came 86 s after the start, 0 errors, the scene of the save on screen. - Game, switch not set, no key sent: the start screen for 6 minutes, then I closed it. - Changes a default: no - A/B result: a switch that is off by default. Checked as above, one run each: | | A (not set, no key sent) | B (`DARNER_SKIP_START=1`, no key sent) | |---|---|---| | reaches the world | no, start screen for the 6 min watched | yes, 86 s after the start | - Gates run on that revision: gate 1 (`cargo clippy --workspace --all-targets --locked -- -D warnings`) passed, gate 2 (the same with `--all-features`) passed, gate 3 (`cargo test --workspace --locked`) is still running as I open this; I will write its result here. - Gameplay, when relevant: RTX 5080, Series S profile, 1113x626 with DLSS balanced, frame generation off, ray tracing off, `DARNER_SKIP_BINK=1`. - Shader wave sizes tested, when relevant: not relevant (input only). - Hardware dependence: likely general (input only). - Coverage gaps: only starts with a save to load were tried (the title loads it after A); a first start without a save was not. The presses go on through the loading screen until the world shows; nothing came of them in these runs. One-pad mode (the default) only in the game; `DARNER_ONE_PAD=0` is covered by the unit test alone. ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found for the start screen. Open PRs that touch `gameinput.rs` for other reasons: #185 (DualSense triggers), #205 (build scripts), #32, #39, #40, #41 (Intel shader work). - Replaces or overlaps: none found
The title waits at its start screen for A (Enter on the keyboard) before it loads
anything, so a start nobody sits at needs a scripted key (DARNER_KEYS, DARNER_KEYS_FILE)
timed by an outside driver. With DARNER_SKIP_START=1 the pad the title sees gets A for
0.2 s at the end of every 2 s, from the first poll until the world is first shown
(darner_gpu::world_since), and not while the F1 menu is open. Off unless set. The press
goes on the pad overlay, so it reaches the one pad, the first host pad or the keyboard's
stand-in alike. README row, a line in docs/troubleshooting.md, and the switch is one of
the player's own in darner-settings.txt.
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'skip-start:iridiumlotus-skip-start'
git switch 'iridiumlotus-skip-start'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'iridiumlotus-skip-start'
git switch 'iridiumlotus-skip-start'
git rebase 'main'
git switch 'main'
git merge --ff-only 'iridiumlotus-skip-start'
git switch 'iridiumlotus-skip-start'
git rebase 'main'
git switch 'main'
git merge --no-ff 'iridiumlotus-skip-start'
git switch 'main'
git merge --squash 'iridiumlotus-skip-start'
git switch 'main'
git merge --ff-only 'iridiumlotus-skip-start'
git switch 'main'
git merge 'iridiumlotus-skip-start'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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
TrustNo1/Darner!216
No description provided.