Skip to content
GunkataModPublic

About

Custom levels, a mod kit and a desktop app for Pistol Whip. Free and open source. You must own the game.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Gunkata: levels choreographed to the beat

Gunkata

Custom levels for Pistol Whip, choreographed to the music: nine journeys through worlds of their own, with their own enemies and posters, new weapons in the gun case, and a way to make your own with your AI assistant. On Meta Quest, or Steam.

The trailer's poster frame, captured in the headset: a bolt knocked back by the laser sword streaking at a battle robot on a grey walkway under an orange sky. The trailer plays at the top of the website.
Watch the trailer at the top of the website (about a minute; the sound is off until you turn it on).

Download for Mac · Download for Windows · The levels · The gun case · Make your own · What to know

MIT licence App: Mac and Windows Game version: Quest 1.6.0.2, Steam 1.6.0.3 Unofficial fan project

Gunkata is three things: a desktop app that installs levels on your Quest or your Steam copy of the game; a kit of enemies, materials, effects and weapons it adds to your own copy of the game; and a level builder your AI assistant can drive. It is free and open source (MIT). You need to own the game, and nothing of the game's and no music is included. It is an unofficial fan project: see the notice.

Download

Download for Mac (Apple silicon, signed and notarized) or Download for Windows (64-bit), from the latest release. Version 0.4.1.

The project lives at GunkataMod/gunkata from this release on; this release is also published at the old address, so an installed app updates itself either way.

Play the levels

Meta Quest, over USB (Mac or Windows) Pistol Whip on Steam (Windows app, same PC)
1. Plug in your Quest (developer mode on). 1. Open the app. It finds your Steam copy.
2. Set up once. 2. Set up in one click.
3. Pick a level and send it. 3. Pick a level and install it.

Setting up adds Gunkata's kit to your own copy of the game and keeps a backup; every level then just works. A level is a small file: it brings its own chart, scenery, set pieces, lighting and poster, and, when it has them, its own enemies as a data-only pack that the app adds to your game the first time you install the level. The app gets each song from the link to the recording the level was made to (with the optional song helper), or from your own file, and lines it up. Play under Remixes > Local.

Developer mode on the Quest. In the Meta Horizon app on your phone: Menu, Devices, your headset, Headset settings, Developer mode. Meta asks you to register as a developer first; it is free. Restart the headset, plug it in, and allow USB debugging when it asks. The app's first-run guide covers it; Meta's guide has the details.

Windows warnings. The installer is not signed with a Windows certificate. Edge says the file "isn't commonly downloaded": choose Keep. Then "Windows protected your PC": choose More info, then Run anyway.

Set up with an earlier version? When a level needs something newer, the app offers "Update Gunkata on your game". Press it once.

The nine levels

Poster: Fall to Darkness Poster: Rebel Run Poster: System Failure Poster: Black Tide Poster: Sunken City
Poster: Grid Pursuit Poster: Hotel After Hours Poster: Scrap Basilica Poster: Ring Assault

Five new and four rebuilt. Every one was rebuilt this week: real architecture for enemies to stand on and come out of, charts rewritten from a study of the game's own levels (docs/patterns.md, docs/layout.md), and a character of its own. You supply the song; none is included.

Level Charted to Length What it is
Fall to Darkness (new) "Duel Of The Fates", Apashe 3:18 A reactor of laser gates, a city on the sea floor and a works over rivers of lava, against battle robots. The sword-duel level. To play it in Jedi mode: turn on Brawler, pick the Laser Sword, and turn on Deflector.
Rebel Run (new) "Main Theme", Waves Grey 3:14 A desert under two suns, trenches on an ice world under a four-legged walker, a hover-bike chase through giant trees. The dodge level.
System Failure (new) "Mona Lisa Overdrive", Juno Reactor 4:04 A marble lobby, a rooftop under a helicopter, a freeway chase on a trailer deck, until the world turns to falling green code. Bullet time.
Black Tide (new) "He's A Pirate", Blasterjaxx 3:03 A port under the guns of a black ship, a cave of cursed gold, a battle at sea and the beast from the deep. Broadsides.
Sunken City (new) "Clash", Caravan Palace 3:49 Down past a bronze giant into a sunken art-deco city: neon halls, a diving-suit guardian, a giant rising from the core. One of the hardest.
Grid Pursuit "Derezzed", Daft Punk 1:45 A neon grid chase: rival light cycles, landing ships, a falling carrier. A shooting level at speed.
Hotel After Hours "Genesis", Justice 3:55 An action film in a grand hotel: a limousine through the ballroom wall, a helicopter at the window, the getaway through the garage.
Scrap Basilica "For The Emperor", Nerdburglars 4:15 A gothic trench siege under a striding war machine, as a gunship comes down over the breach. One of the hardest workouts.
Ring Assault "Halo Theme (Drum & Bass Version)", John B 3:52 A crash-site beach under a ring in the sky, an alien landing zone, a bridge of light, a snow canyon under a walker. A marksman's level.

Each level's card on the website has its intensity, its enemies, a silent clip and stills from the headset, and the link to the recording it was charted to. The level library lists them, and the levels players submit.

The gun case

Setting up adds six weapons to the end of the game's gun case. Pick one there, for any level; the default pistol stays as the game ships it.

Blaster A heavy space-opera blaster with a long scope, its own shot and reload.
Flintlock A sea-service flintlock in walnut and brass; the hammer falls and the pan opens on every shot.
Revolver A top-break service revolver; the hammer cocks and the cylinder turns.
Laser Sword A glowing blue blade for the melee hand, with its own sounds.
Boltgun A short, square gothic pistol.
Magnum A big-bore service pistol whose slide kicks back.

The blaster firing at armoured troopers on a sandy base, captured in the headset The flintlock fired along a ship rail at a cloaked captain, captured in the headset The revolver firing down a blue and grey hall, captured in the headset

Make your own

Point your AI assistant at this repository and say: make me a level for this song in this theme.

You need an AI coding assistant that can run commands (Claude Code, Codex or similar), a computer with Python 3.9 or newer and ffmpeg, an audio file of a song you own and a link to where that exact recording can be found, and your own copy of Pistol Whip to play it on. Paste this, with the blanks filled in:

Clone https://github.com/GunkataMod/gunkata and read CLAUDE.md. Make me a Gunkata level for this song: <path to the audio file>, recording at <link>. Theme: <describe the world>. Follow the workflow in the repository; my headset is <connected / not connected>.

The assistant follows CLAUDE.md (other assistants are pointed there by AGENTS.md): it reads the enemy sequence definitions out of your own copy of the game, listens to the recording bar by bar, charts it, builds the places, set pieces and enemies, checks it all at a desk, builds the level and, with a headset connected, sends it there. Then you play it and say what felt great and what fell flat, with times. It cannot hear the song or wear the headset: your notes make the level. The app's Make a level page has the same steps and fills in the prompt for you. When it plays well, submit it from the app's Submit a level page.

The method behind the nine levels is written down:

Guide What it covers
CLAUDE.md The workflow, step by step, from the song to the headset.
docs/patterns.md How the game's own levels build passages and an identity, measured, and how to choose one for yours.
docs/layout.md Building places: where enemies stand and where they come from.
docs/charting.md Density, rests, and the lessons that cost a playtest to learn.
docs/worlds.md Scenery, set pieces, lighting, the game's enemy and obstacle sets.
docs/packs.md A level's own enemies, as an asset pack.
docs/sharing.md Sharing a level without its audio, and the curated library.

What is in the repository

  • The level builder (gunkata/, tools/): Python that writes a level the game imports. Enemies and obstacles on the beat, low-polygon architecture that enemies stand on and come out of (the builder puts raised enemies on it and cuts doorways for runners), set pieces timed to the music and built to reset on a restart, and lighting cues that follow the drums. Tools stand in for ears and eyes at a desk: a bar-by-bar drum and loudness map, a simulator that renders what a dodging player sees, checks for hidden enemies and for scenery the player cannot see coming, and a comparison with the game's own charts.
  • The kit (modkit/): one patch to your own copy of the game that adds what the game does not ship: enemy sets and the asset packs levels bring, an invisible obstacle set so a prop can be the obstacle, painted, flat and see-through (glass, additive) materials, effects, and the six weapons. Details and what has been tested: modkit/README.md.
  • The desktop app (app/): sets the kit up on your game in one guided step, keeps the original, installs levels and their packs, fetches songs, submits your levels, and keeps itself up to date. Building it: app/README.md.
  • The website (site/): see site/README.md.

How levels are shared

A built level contains its song and the game's enemy sequence definitions, so it is never shared as it is. tools/share_level.py pack removes the audio and writes a fingerprint (no sound can be rebuilt from it) so the installer can recognise the other player's own copy of the recording and line it up; it replaces the sequence definitions with their names, which the installer fills back in from the installing player's own game. Every shared level names the exact recording it was charted to, and carries its own enemy packs.

The level library is curated: you submit from the app, and every level is played in a headset before it is listed. Allow up to five days; you get a reply either way. Details: docs/sharing.md.

What to know

  • You need to own Pistol Whip: 1.6.0.2 from the Meta Quest Store (Quest in developer mode, USB cable), or 1.6.0.3 on Steam. The app checks for exactly those copies and does not work with others (sideloaded, repackaged or modified). This project gives no help obtaining the game any other way.
  • Nothing of the game's, and no music. The repository and the app contain no game files, no data copied from the game and no songs.
  • Steam (PC VR) is supported, in the Windows app. It finds Pistol Whip on Steam, sets it up, installs levels and restores the original, and a player has reported that it works. Since 0.4.1 the two levels that would not install on Steam do, and a level's see-through materials (glass, glows) are made there as they are on Quest. That is checked against the Steam game's own files; a report from a PC headset on those two levels and on how the glass and glows look is still wanted. If glass or a glow looks wrong, turn on Settings > "Draw see-through materials solid". If you play it, please open an issue and say what you saw. Details: docs/steam.md.
  • It changes your copy of the game. "Restore original game" in the app puts your backup back; reinstalling the game on Quest, or "Verify integrity of game files" on Steam, also undoes it. Modifying the game may be against its terms; we do not know whether it puts an account at risk. You use it at your own risk.

Status

Early, and honest about it:

  • Tested by one player on one Quest 3 with Pistol Whip 1.6.0.2. The levels have been through several rounds of headset feedback; each round's newest changes have desktop checks only until the next headset session.
  • The weapons have been played in the headset.
  • The kit builds and verifies on a desktop for Quest and for Steam, and has been played on the Quest with everything in it. On Steam a player has reported that it works; there is no report yet on the see-through materials or on every weapon.
  • The app runs on macOS (Apple silicon) and Windows (checked on a real Windows 11 machine). It has been driven against a real Quest 3. Linux has not been built, and Intel Macs are not supported.
  • The automatic first draft of a chart has been compared with the built-in charts at a desk and has never been played.
  • A game update will stop the kit and the sequence extraction until they are re-derived for the new version.

Why this exists

I made this because I play this game almost every day for my health. On hard, in a weighted vest, it is a brutal workout, and after five years I wanted new levels to sweat through.

Making a great level by hand is hard, much harder than in rhythm games built from blocks, so there have never been as many as the game deserves. Gunkata lets you point your own AI assistant at a song and a theme and get a level that moves you: shoot, dodge, punch, all on the beat.

I love this game and I am grateful to the people who made it. I hope this gives it a longer life.

It is free and open source, and it will stay that way. Fork it, change it, contribute. If it gets you moving, a star helps other players find it.

Mike

Help wanted

  • Playtests: headset reports on the levels, with the game version and what felt off and where. Steam players especially.
  • The app on Linux: it has never been built there.
  • More worlds and enemies: a world travels inside its level, and so can its enemies (docs/worlds.md, docs/packs.md).

Contributing

  • Run python3 -m unittest discover -s tests (and python3 -m unittest discover -s modkit -p 'test_*.py', cd app && npm test if you touched those). The tests need no game file.
  • Never commit game files, data taken from the game, audio, or built levels. local-scenes/ and local-data/ are ignored for that reason.
  • Say what you tested and how: at a desk, or in a headset, and on which game version.
  • A lesson learned in a headset belongs in "Things that cost a playtest to learn" in docs/charting.md.
  • Levels go to the library by submission from the app, not by pull request.

Unofficial; no game files, no music

  • Gunkata is not affiliated with, endorsed by or supported by Cloudhead Games, the developer of Pistol Whip, or Meta, or any rights holder of the songs the levels were charted to or of the worlds they evoke. "Pistol Whip" belongs to its owner.
  • This repository contains no game files, no data copied from the game and no music. The game's enemy sequence definitions are read from your own copy at setup. You need to own the game and the songs you use.
  • The kit modifies your own installed copy of the game, at your own risk. It is pinned to game version 1.6.0.2 on Quest and 1.6.0.3 on Steam.

The full text is in NOTICE.

The website

The project's page, with the trailer and the level cards: gunkatamod.github.io/gunkata. Its source is site/.

Credits and licence

  • Code, levels, models, posters and the kit: the Gunkata project, MIT.
  • Songs belong to their artists; the levels name each recording and include none of them.
  • Gun sounds are synthesised here or cut from public-domain (CC0) recordings, credited in modkit/kit/gun_sounds.py.
  • Third-party components the app bundles are listed in app/THIRD_PARTY.md.

About

Custom levels, a mod kit and a desktop app for Pistol Whip. Free and open source. You must own the game.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages