[PR #206] [MERGED] win drive: add a sleep <ms> verb #209

Closed
opened 2026-10-15 20:54:22 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rehan-remade/universal-modder/pull/206
Author: @aalkandery-eng
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @rehan-remade

Base: main ← Head: feat/win-drive-sleep


📝 Commits (3)

  • b4c6878 win drive: add a sleep verb
  • 042e8fb win drive: sleep: list it in the WinDrive help and skill, clamp negative values
  • fe31dc4 Merge remote-tracking branch 'origin/main' into land/pr-206

📊 Changes

4 files changed (+15 additions, -4 deletions)

View changed files

📝 .agents/skills/game-automation/SKILL.md (+4 -1)
📝 .claude/skills/game-automation/SKILL.md (+4 -1)
📝 skills/game-automation/SKILL.md (+4 -1)
📝 um/ps1/WinDrive.ps1 (+3 -1)

📄 Description

um win drive had no way to pause between steps inside one call. idle looks like a pause but only reports the seconds since the last user input, so "hold 0x20 150" "idle 200" "hold 0x20 150" sends the two presses back to back.

Separate um win drive calls are too slow for timing, because each one starts PowerShell. So timed combos (a jump then a second press in the air, a tap then a hold) couldn't be scripted.

This adds a sleep <ms> verb (Thread.Sleep) to WinDrive.ps1. The game-automation skill gets a usage line, and its idle line now says it doesn't wait. The skill copies in .claude/skills and .agents/skills are updated to match.

Verified:

  • In Crash Bandicoot N. Sane Trilogy, "hold 0x20 150" "sleep 150" "hold 0x20 120" now lands the second press mid-air. The game's input log shows the release and the second press about 170 ms apart; before this change they were 4 ms apart.
  • pytest -q tests: 87 pass. The one failure, test_compile_small_edl, also fails on main; #200 fixes it.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rehan-remade/universal-modder/pull/206 **Author:** [@aalkandery-eng](https://github.com/aalkandery-eng) **Created:** 10/10/2026 **Status:** ✅ Merged **Merged:** 10/11/2026 **Merged by:** [@rehan-remade](https://github.com/rehan-remade) **Base:** `main` ← **Head:** `feat/win-drive-sleep` --- ### 📝 Commits (3) - [`b4c6878`](https://github.com/rehan-remade/universal-modder/commit/b4c6878a61a40e5b44f210071dc6e789087f1355) win drive: add a sleep <ms> verb - [`042e8fb`](https://github.com/rehan-remade/universal-modder/commit/042e8fb332ad8bc1ed616155990876d001f1f6e7) win drive: sleep: list it in the WinDrive help and skill, clamp negative values - [`fe31dc4`](https://github.com/rehan-remade/universal-modder/commit/fe31dc4da94ce2d18dde55c9ddafc5669ef70ae8) Merge remote-tracking branch 'origin/main' into land/pr-206 ### 📊 Changes **4 files changed** (+15 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `.agents/skills/game-automation/SKILL.md` (+4 -1) 📝 `.claude/skills/game-automation/SKILL.md` (+4 -1) 📝 `skills/game-automation/SKILL.md` (+4 -1) 📝 `um/ps1/WinDrive.ps1` (+3 -1) </details> ### 📄 Description `um win drive` had no way to pause between steps inside one call. `idle` looks like a pause but only reports the seconds since the last user input, so `"hold 0x20 150" "idle 200" "hold 0x20 150"` sends the two presses back to back. Separate `um win drive` calls are too slow for timing, because each one starts PowerShell. So timed combos (a jump then a second press in the air, a tap then a hold) couldn't be scripted. This adds a `sleep <ms>` verb (`Thread.Sleep`) to `WinDrive.ps1`. The game-automation skill gets a usage line, and its `idle` line now says it doesn't wait. The skill copies in `.claude/skills` and `.agents/skills` are updated to match. **Verified:** - In Crash Bandicoot N. Sane Trilogy, `"hold 0x20 150" "sleep 150" "hold 0x20 120"` now lands the second press mid-air. The game's input log shows the release and the second press about 170 ms apart; before this change they were 4 ms apart. - `pytest -q tests`: 87 pass. The one failure, `test_compile_small_edl`, also fails on `main`; #200 fixes it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 20:54:22 +00:00
Sign in to join this conversation.
No labels
pull-request
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
rehan-remade/universal-modder#209
No description provided.