{"id":50909220,"url":"https://github.com/itsloopyo/yakuza-0-headtracking","last_synced_at":"2026-06-16T08:30:59.321Z","repository":{"id":362370089,"uuid":"1248130363","full_name":"itsloopyo/yakuza-0-headtracking","owner":"itsloopyo","description":"An OpenTrack compatible head tracking mod for Yakuza 0","archived":false,"fork":false,"pushed_at":"2026-06-03T21:56:42.000Z","size":2748,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T23:16:02.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsloopyo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T08:14:27.000Z","updated_at":"2026-06-03T21:55:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/itsloopyo/yakuza-0-headtracking","commit_stats":null,"previous_names":["itsloopyo/yakuza-0-headtracking"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/itsloopyo/yakuza-0-headtracking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fyakuza-0-headtracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fyakuza-0-headtracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fyakuza-0-headtracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fyakuza-0-headtracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsloopyo","download_url":"https://codeload.github.com/itsloopyo/yakuza-0-headtracking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fyakuza-0-headtracking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34398405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-16T08:30:56.037Z","updated_at":"2026-06-16T08:30:59.314Z","avatar_url":"https://github.com/itsloopyo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e ## Experimental prototype - expect missing core features\n\u003e\n\u003e This is **not** a finished mod.\n\u003e\n\u003e Current builds may only test whether head tracking can drive the camera. Bug fixes and core features like decoupled look/aim, independent reticle behavior, correct shot direction, off-screen reticle support, movement handling, and comfort tuning may be missing at this early stage of development.\n\n# Yakuza 0 Head Tracking\n\nHead tracking for Yakuza 0 on PC: move your head to look around while the mouse/controller still controls aim and movement, driven by [OpenTrack](https://github.com/opentrack/opentrack) or any compatible UDP head-pose source, no VR headset required.\n\n\u003c!-- ![Mod GIF](https://raw.githubusercontent.com/itsloopyo/yakuza-0-headtracking/main/assets/readme-clip.gif) --\u003e\n\n## Features\n\n- **Decoupled look and aim** - your head moves the camera; the mouse/controller still controls aim and movement.\n- **Works with any OpenTrack-compatible tracker** - phone apps, webcam trackers, VR headsets, TrackIR.\n- **World-space or camera-local yaw** - horizon-locked yaw by default, toggleable in-game.\n\n## Requirements\n\n- [Yakuza 0 on Steam](https://store.steampowered.com/app/638970/Yakuza_0/), latest patch.\n- A head tracking source: [OpenTrack](https://github.com/opentrack/opentrack) with a webcam, VR headset, TrackIR, or a phone tracking app.\n- Windows 10/11, 64-bit.\n\n## Installation\n\n1. Download the latest `Yakuza0HeadTracking-vX.Y.Z-installer.zip` from [Releases](https://github.com/itsloopyo/yakuza-0-headtracking/releases).\n2. Extract it anywhere.\n3. Double-click `install.cmd`. It auto-detects your Steam install, places the mod next to `Yakuza0.exe`, and sets up Ultimate ASI Loader if it isn't already present.\n4. Configure OpenTrack (or your phone app) to output UDP to `127.0.0.1:4242` (see [Setting Up OpenTrack](#setting-up-opentrack)).\n5. Launch the game.\n\nIf the installer can't find your game, point it at the install folder yourself, either way works:\n\n```powershell\n# Option 1: environment variable\n$env:YAKUZA_0_PATH = \"D:\\Games\\Yakuza 0\"; .\\install.cmd\n\n# Option 2: pass the path directly\n.\\install.cmd \"D:\\Games\\Yakuza 0\"\n```\n\n### Manual Installation\n\nFor users who prefer to place files by hand:\n\n1. Download [Ultimate ASI Loader](https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases) (Win64 `dinput8.zip`), extract `dinput8.dll`, rename it to `winmm.dll`, and place it in `media\\` next to `Yakuza0.exe`.\n2. Place `Yakuza0HeadTracking.asi` (from the installer ZIP's `plugins\\` folder) in the same `media\\` folder.\n\nAlternatively, the Nexus ZIP (`Yakuza0HeadTracking-vX.Y.Z-nexus.zip`) extracts directly into the game's install folder; it contains only `media\\Yakuza0HeadTracking.asi`, so you still need an ASI loader installed.\n\n## Setting Up OpenTrack\n\n1. Install [OpenTrack](https://github.com/opentrack/opentrack/releases).\n2. Set **Output** to `UDP over network`, IP `127.0.0.1`, port `4242`.\n3. Set **Input** to whichever tracker source you use (see below).\n4. Click **Start** before or after launching the game.\n\n### VR Headset Setup\n\n1. Connect your headset to the PC (Quest: Air Link or Virtual Desktop).\n2. Start SteamVR.\n3. In OpenTrack, set **Input** to `SteamVR`.\n\n### Webcam Setup\n\n1. In OpenTrack, set **Input** to `neuralnet tracker`.\n2. Select your webcam in the input settings.\n\n### Phone App Setup\n\n1. Install a head tracking app that sends the OpenTrack UDP protocol (such as SmoothTrack).\n2. If the app does its own smoothing, point it directly at your PC's IP, port `4242`.\n3. For curve mapping or extra filtering, send the app's output to OpenTrack first (input `UDP over network`) and let OpenTrack relay to `127.0.0.1:4242`.\n\n## Controls\n\nTwo equivalent binding sets - use whichever your keyboard has:\n\n| Action              | Nav-cluster | Chord           |\n|---------------------|-------------|-----------------|\n| Recenter            | `Home`      | `Ctrl+Shift+T`  |\n| Toggle tracking     | `End`       | `Ctrl+Shift+Y`  |\n| Cycle tracking mode | `Page Up`   | `Ctrl+Shift+G`  |\n| Toggle yaw mode     | `Page Down` | `Ctrl+Shift+H`  |\n\n`Page Up` / `Ctrl+Shift+G` cycles tracking mode:\n\n1. Normal head-tracked gameplay\n2. Positional tracking disabled, rotational tracking enabled\n3. Rotational tracking disabled, positional tracking enabled\n4. Back to normal\n\n`Page Down` / `Ctrl+Shift+H` toggles between world-space (horizon-locked) yaw and camera-local yaw. The toggle takes effect immediately and resets to the configured default on the next launch.\n\n## Configuration\n\n`Yakuza0HeadTracking.ini` is created next to `Yakuza0HeadTracking.asi` (in `media\\`, beside `Yakuza0.exe`) on first launch. Missing entries fall back to their defaults.\n\n```ini\n[General]\n; Yaw mode: true = horizon-locked yaw (default), false = camera-local\nWorldSpaceYaw=true\n\n[Hotkeys]\n; Page Down - toggle world/local yaw\nYawModeKey=0x22\n```\n\n- `WorldSpaceYaw=true` keeps yaw rotating around the world up-axis regardless of camera pitch, so turning your head while looking at the floor still pans across the floor. Set to `false` for camera-local yaw, which follows the camera's current up-axis (leans at extreme pitch).\n- `YawModeKey` is the Windows virtual-key code for the yaw mode toggle (default `0x22`, Page Down).\n\n## Troubleshooting\n\n**Mod not loading:**\n\n- Check for `Yakuza0HeadTracking.log` in `media\\` next to `Yakuza0.exe` after launching the game. If it's missing, the ASI loader isn't engaging; re-run `install.cmd`.\n- Verify both `winmm.dll` and `Yakuza0HeadTracking.asi` are in `media\\`.\n\n**No tracking response:**\n\n- Confirm OpenTrack's output is `UDP over network` to `127.0.0.1`, port `4242`, and that OpenTrack is started.\n- Make sure only one source is sending to port 4242 (don't run a phone app and OpenTrack at the same time pointing at the same port).\n- Tracking may have been toggled off; press `End` (or `Ctrl+Shift+Y`).\n- The game pauses when its window loses focus, so keep it focused while testing.\n\n**Jittery / unstable tracking:**\n\n- Enable a smoothing filter in OpenTrack (Accela is the default and works well).\n- Wireless phone trackers on congested WiFi can stutter; move closer to the router or switch to a webcam tracker.\n\n**Yaw feels wrong when looking up or down at extreme angles:**\n\n- Try toggling between world-locked and camera-local yaw with `Page Down`. World-locked (default) is horizon-stable; camera-local follows the camera's current up-axis.\n\n## Updating\n\nDownload the new release and run `install.cmd` again. Your config is preserved.\n\n## Uninstalling\n\nRun `uninstall.cmd` from the installer ZIP. This removes the mod files. The ASI loader is only removed if the installer put it there; use `uninstall.cmd /force` to remove it anyway.\n\n## Building from Source\n\nRequires Visual Studio 2022 Build Tools, CMake 3.20+, and [pixi](https://pixi.sh).\n\n```powershell\ngit clone --recurse-submodules https://github.com/itsloopyo/yakuza-0-headtracking\ncd yakuza-0-headtracking\npixi run build\npixi run test\npixi run package\n```\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details. Third-party components are listed in [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).\n\n## Credits\n\n- Ryu Ga Gotoku Studio / Sega for Yakuza 0.\n- [Ultimate ASI Loader](https://github.com/ThirteenAG/Ultimate-ASI-Loader) (MIT).\n- [OpenTrack](https://github.com/opentrack/opentrack) (ISC).\n- [etra0/yakuza-freecam](https://github.com/etra0/yakuza-freecam) (MIT) for the camera-hook reverse-engineering reference.\n- [CameraUnlock core](https://github.com/itsloopyo/cameraunlock-core) shared library.\n\n## Disclaimer\n\nThis mod is not affiliated with, endorsed by, or supported by Ryu Ga Gotoku Studio or Sega. Use at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsloopyo%2Fyakuza-0-headtracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsloopyo%2Fyakuza-0-headtracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsloopyo%2Fyakuza-0-headtracking/lists"}