[PR #71] [MERGED] kb: Half-Life 2 guns in Minecraft (passthrough, HL2 Demo under Wine on macOS) #100

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

📋 Pull Request Information

Original PR: https://github.com/rehan-remade/universal-modder/pull/71
Author: @sujantr
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @rehan-remade

Base: main ← Head: kb/minecraft-half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win


📝 Commits (3)

  • 722a1ab kb: Half-Life 2 guns in Minecraft (passthrough, HL2 Demo under Wine on macOS) (Minecraft)
  • 3a5edec Merge branch 'main' into kb/minecraft-half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win
  • 7844901 Merge main into kb/minecraft-half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win and regenerate the kb index

📊 Changes

3 files changed (+192 additions, -1 deletions)

View changed files

📝 knowledge/INDEX.md (+2 -1)
➕ knowledge/games/minecraft/half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win.md (+155 -0)
📝 knowledge/index.json (+35 -0)

📄 Description

New field note: Half-Life 2 guns in Minecraft, a passthrough mashup with the HL2 Demo running under Wine on macOS (arm64).

The live HL2 Demo renders the real first-person weapon and its sound, and a Fabric mod for Minecraft Java 26.3 does the gameplay. Minecraft input reaches HL2's console through an exactly-once cfg-file bridge, and HL2's view is keyed down to just the gun with ScreenCaptureKit and drawn over Minecraft's world. All 7 weapons in the demo work. Verified in both real games with screenshots, latency traces (~110 ms click-to-HL2-frame) and a recorded clip.

Things other agents can reuse:

  • In this HL2 build, wait inside an exec'd cfg doesn't hold a button. Send +x and -x as separate files.
  • The HL2 Demo has a map whitelist. "Viewmodel only" works in a demo map: turn off world drawing, fog everything else pure green, mat_fullbright, then key out black and green.
  • Wine CLI exit 136 (SIGFPE) means the client's WINEESYNC/WINEMSYNC don't match the wrapper's running wineserver.
  • ScreenCaptureKit on the command line: initialize NSApplication first; SCRecordingOutput needs NSApplication.run(); a window-only filter records only that app's audio.

Only the note and the regenerated index change. um kb check --index passes (10 notes).

🤖 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/71 **Author:** [@sujantr](https://github.com/sujantr) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/5/2026 **Merged by:** [@rehan-remade](https://github.com/rehan-remade) **Base:** `main` ← **Head:** `kb/minecraft-half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win` --- ### 📝 Commits (3) - [`722a1ab`](https://github.com/rehan-remade/universal-modder/commit/722a1abf95fcc2592476918d0557a7506649b893) kb: Half-Life 2 guns in Minecraft (passthrough, HL2 Demo under Wine on macOS) (Minecraft) - [`3a5edec`](https://github.com/rehan-remade/universal-modder/commit/3a5edecb67c0cfd06b0860d52294764792dc5691) Merge branch 'main' into kb/minecraft-half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win - [`7844901`](https://github.com/rehan-remade/universal-modder/commit/7844901e5294ba9338a06bdc2cbdbd9a913f19ec) Merge main into kb/minecraft-half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win and regenerate the kb index ### 📊 Changes **3 files changed** (+192 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `knowledge/INDEX.md` (+2 -1) ➕ `knowledge/games/minecraft/half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win.md` (+155 -0) 📝 `knowledge/index.json` (+35 -0) </details> ### 📄 Description New field note: **Half-Life 2 guns in Minecraft**, a passthrough mashup with the HL2 Demo running under Wine on macOS (arm64). The live HL2 Demo renders the real first-person weapon and its sound, and a Fabric mod for Minecraft Java 26.3 does the gameplay. Minecraft input reaches HL2's console through an exactly-once cfg-file bridge, and HL2's view is keyed down to just the gun with ScreenCaptureKit and drawn over Minecraft's world. All 7 weapons in the demo work. Verified in both real games with screenshots, latency traces (~110 ms click-to-HL2-frame) and a recorded clip. Things other agents can reuse: - In this HL2 build, `wait` inside an exec'd cfg doesn't hold a button. Send `+x` and `-x` as separate files. - The HL2 Demo has a map whitelist. "Viewmodel only" works in a demo map: turn off world drawing, fog everything else pure green, `mat_fullbright`, then key out black and green. - Wine CLI exit 136 (SIGFPE) means the client's `WINEESYNC`/`WINEMSYNC` don't match the wrapper's running wineserver. - ScreenCaptureKit on the command line: initialize `NSApplication` first; `SCRecordingOutput` needs `NSApplication.run()`; a window-only filter records only that app's audio. Only the note and the regenerated index change. `um kb check --index` passes (10 notes). 🤖 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:53:25 +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#100
No description provided.