Skip to content
Rhystic1Public

About

Native Metal 4 Quake port for iOS, iPadOS and tvOS

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

QuakeiOS

Quake on iPhone, iPad, and Apple TV — a Metal 4 port of Quake and the QuakeSpasm engine fork with touch controls, game controllers, keyboard/mouse, and 2021 re-release data support.

You must supply game data from a copy of Quake you own. Retail / remaster .pak files are not included.

QuakeiOS on iPad — double-barreled shotgun in a metal chamber QuakeiOS on iPad — entrance hall with touch controls overlay

Gameplay on iPad with the on-screen touch overlay (move stick, FIRE / JUMP, weapon cycle, MENU).


Features

Area Status
Engine QuakeSpasm host (Host_Init / Host_Frame) via QuakeBridge
Renderer Metal 4 GL 1.1 compatibility path (gl_metal_backend.m)
Audio SFX via AVAudioEngine; OGG music (id1/music/) via stb_vorbis
Touch Move stick, freelook, hold-to-fire, weapon cycle, menu remapping
Controllers MFi / PlayStation / Xbox via GameController
Keyboard / mouse Magic Keyboard & trackpad (iPad)
Game data (iOS) In-app Files import; Finder File Sharing
Game data (tvOS) LAN web upload — drag & drop folders from a browser on the same network
Remaster text localization/loc_english.txt or QuakeEX.kpf
Save / load Single-player menu slots
Console System keyboard when console/chat is active
Orientation Landscape only (iPhone / iPad)
Platforms Single multiplatform target: iPhone, iPad, Apple TV
LAN multiplayer Same Wi‑Fi with Bonjour discovery; host and join from the Multiplayer menu

Requirements

To play

Requirement Notes
Physical device with Metal 4 iPhone, iPad, or Apple TV — MTLDevice.supportsFamily(.metal4)
Owned Quake data At minimum id1/pak0.pak (shareware or full)

To build

Requirement Notes
macOS + Xcode Deployment targets iOS 26.5 / tvOS 26.5
Apple Developer account Free account is enough for personal device installs
Signing team Set your Team on the QuakeiOS target if prompted

The QuakeiOS target is multiplatform: iPhone, iPad, and Apple TV share one app target.


Quick start (players)

  1. Build & install the app on a Metal 4 device (see Build).
  2. Launch QuakeiOS.
  3. Import game data:
    • iPhone / iPad → Import Game Data… (Files picker), or drop files via Finder File Sharing. It is recommended to import a single "quake" folder which includes "QuakeEX.kpf" (the English localization data), a subfolder called "id1" containing "pak0.pak" and, optionally, the "music" subfolder containing the game's soundtrack.
    • Apple TV → open the on-screen LAN URL from a Mac/iPhone browser and drag & drop your Quake folder (see Docs/TVOS.md).
  4. Pick your Quake install folder (the one that contains id1/), or pick id1 itself.
  5. Wait for the copy to finish (PAKs + optional music / localization).
  6. Play. Menu → Single Player → New / Load / Save.
  7. LAN multiplayer (optional): see LAN multiplayer below.

What to import

Prefer the parent remaster or retail folder, not a random nested path. That way optional extras come along:

YourQuakeInstall/
  id1/                  # or Id1
    pak0.pak            # required
    music/              # optional OGG CD tracks (track02.ogg …)
  localization/         # remaster English strings (recommended)
    loc_english.txt
  QuakeEX.kpf           # alternate remaster package with loc data

Details: Docs/DATA.md.

Legal

Only use data from a legally obtained copy of Quake (Steam, GOG, retail CD, 2021 re-release, official shareware, etc.). This repository DOES NOT and WILL NOT host this game data.


Controls

Touch (iPhone / iPad)

Control Action
Left stick Move
Drag free area Look / turn
FIRE (hold) Attack — hold for automatic weapons
Look pad hold (finger still ~0.14 s) Continuous fire
Look pad tap Single shot
JUMP Jump
MENU ESC / pause menu
W- / W+ Previous / next weapon
In menus Stick = navigate · SELECT = confirm · MENU = cancel

On yes/no prompts (e.g. “start a new game?”): SELECT/ENTER confirms, MENU/BACK cancels.

Game controller

Control Action
Left stick Move (in menus: navigate)
Right stick Look
D-pad Menu arrows
RT / R2 Attack
LT / L2 Jump
A / Cross Jump · Select in menus
B / Circle Back / cancel in menus
Y / Triangle Next weapon
X / Square Previous weapon
LB / L1 Previous weapon
RB / R1 Next weapon
Menu / Options (Start) ESC / pause
View / Share (Back) Tab (scores)

Keyboard & mouse (iPad)

WASD move, mouse look, left click attack, Escape menu — via GCKeyboard / GCMouse when connected. Opening the console (bound key) shows the system keyboard for typing.

Apple TV

Requires a full game controller (MFi / PlayStation / Xbox). Siri Remote is not supported. See Docs/TVOS.md.


LAN multiplayer

Play with other devices on the same Wi‑Fi. Allow Local Network when prompted.

Host

  1. Both devices have game data and Metal 4 hardware.
  2. Menu → Multiplayer → New Game → TCP/IP → OK.
  3. Game Options → max players, mode, episode/level → begin game.
  4. Nearby devices can find the game automatically.

Join

  1. Menu → Multiplayer → Join Game → TCP/IP.
  2. Search for local games…, select a server, and confirm.
  3. Or enter ip / ip:port under Join game at: (default port 26000).

Multiplayer is LAN only (no internet matchmaking). More detail: Docs/MULTIPLAYER.md.


Build

1. Clone

git clone https://github.com/<your-org>/QuakeiOS.git
cd QuakeiOS

Engine and re-release QuakeC sources live under vendor/ (already vendored in-tree).

2. Open in Xcode

open QuakeiOS.xcodeproj

3. Configure signing

  1. Select the QuakeiOS project → QuakeiOS target → Signing & Capabilities.
  2. Choose your Team.
  3. Adjust Bundle Identifier if the default (Rhystic-Software.QuakeiOS) collides with another app on your account.

4. Run on device

  1. Scheme: QuakeiOS.
  2. Destination: a physical iPhone, iPad, or Apple TV with Metal 4.
  3. Product → Run (⌘R).
  4. Trust the developer certificate on the device if prompted
    (Settings → General → VPN & Device Management on iOS; equivalent trust flow on tvOS).

CLI build (optional)

# iOS
xcodebuild \
  -scheme QuakeiOS \
  -destination 'generic/platform=iOS' \
  -configuration Debug \
  build

# tvOS
xcodebuild \
  -scheme QuakeiOS \
  -destination 'generic/platform=tvOS' \
  -configuration Debug \
  build

Install the resulting .app with Xcode, devicectl, or your usual sideload workflow.

Simulator

# Builds, but gameplay is blocked at launch:
xcodebuild -scheme QuakeiOS -destination 'generic/platform=iOS Simulator' build

Use Simulator only for shell/UI experiments. Real Metal rendering needs a device.


Repository layout

QuakeiOS/
├── QuakeiOS.xcodeproj/       # Xcode project + shared scheme
├── QuakeiOS/
│   ├── Platform/             # Bridge, Metal GL backend, audio, FS, input C glue
│   ├── UI/                   # iOS touch/import, tvOS shell, shared settings
│   ├── Input/                # Controllers, keyboard/mouse, InputRouter
│   ├── Engine/               # Symlinks → vendor QuakeSpasm sources
│   ├── GameData/             # Placeholder only — no retail PAKs
│   └── *.swift               # App shell, game view, MTKView host
├── Docs/
│   ├── screenshots/          # README gameplay images
│   ├── DATA.md               # Game data legal & import details
│   ├── ENGINE.md             # Engine integration notes
│   ├── MULTIPLAYER.md        # LAN host/join and Bonjour discovery
│   └── TVOS.md               # Apple TV import & input
├── Scripts/
│   └── compile_quakec.sh     # Optional re-release QuakeC build (FTEQCC)
└── vendor/
    ├── Quakespasm/           # sezero/quakespasm (GPLv2)
    └── quake-rerelease-qc/   # id Software re-release QC (GPLv2)

Optional: re-release QuakeC

quake-rerelease-qc can be compiled with FTEQCC:

./Scripts/compile_quakec.sh

Place the generated progs.dat into the appropriate game directory (id1/, mission pack dirs, etc.) when testing remaster logic. Classic stock progs still work for vanilla play. Localization (LOC_Init) is wired for remaster string tables.


Architecture (short)

  1. Swift UIKit owns the process: MTKView, touch overlay, data import, GameController.
  2. QuakeBridge (Q_Init / Q_Frame / input injectors) boots QuakeSpasm with an Application Support basedir on iOS, or a temporary-directory basedir on tvOS (Application Support is read-restricted on tvOS).
  3. gl_metal_backend.m implements a GL 1.1-style draw path on Metal 4 (textures, lightmaps, blends, 2D UI). Simulator uses gl_metal_sim_stub.c.
  4. snd_ios.m + stb_vorbis provide SFX and external music without SDL.
  5. LAN multiplayer uses Quake UDP with Bonjour for easy local discovery.

More detail: Docs/ENGINE.md, Docs/MULTIPLAYER.md.


Roadmap

Milestone Status
Scaffold, engine boot, Metal 4 render Done
Touch / controller / KBM input Done
Audio + music, remaster loc, save/load, console keyboard Done
tvOS multiplatform target + LAN game-data upload Done
LAN multiplayer + Bonjour discovery Done
Full Apple TV polish (companion import, 10-foot UI) Partial — see Docs/TVOS.md

Known limitations

  • Classic GL 1.1 path only (no desktop QuakeSpasm GLSL / multitexture / VBO stack).
  • Multiplayer is LAN only (same Wi‑Fi / Bonjour). No internet matchmaking.
  • tvOS game-data import uses a LAN web uploader (drag & drop folders from a browser); the basedir lives in the app's temporary directory, so data must be re-uploaded after app reinstalls.
  • Re-import replaces id1/ essentials and can overwrite save files in that folder — back up saves if needed.
  • Visual polish (bloom, water, etc.) may differ from desktop QuakeSpasm.
  • Optional experimental lighting exists but is very dark.

Troubleshooting

Symptom What to try
“Metal 4 not available” Use a physical Metal 4 device; not the Simulator
No import button / no data (iOS) Tap Import Game Data…, or copy id1 via Finder File Sharing
No data on Apple TV Use the LAN upload URL shown on screen; see Docs/TVOS.md
$m_… placeholder text Re-import parent folder that includes localization/ or QuakeEX.kpf
No music Ensure id1/music/track02.ogg (etc.) were imported; re-import if needed
Save fails Start a single-player game first; check console for path errors
Empty server list after Search Same Wi‑Fi; grant Local Network; host is already in a multiplayer game; see Docs/MULTIPLAYER.md
Cannot join / connection timeout Host still in multiplayer; try Join game at: with host IP:26000; disable AP client isolation
App crashes after import Ensure free memory/disk
Console keyboard missing Open console from a bound key (physical keyboard); on-screen keyboard appears when console/chat is active

License

Component License
QuakeSpasm engine (vendor/Quakespasm) GPLv2
Re-release QuakeC (vendor/quake-rerelease-qc) GPLv2
QuakeiOS app shell / Metal backend / UI GPLv2-compatible (linked with the engine)

Quake is a trademark of id Software LLC / ZeniMax Media. This project is not affiliated with or endorsed by id, Bethesda, or Nightdive Studios. The 2021 remaster’s proprietary KEX engine is not used; this port is open-source QuakeSpasm only.


Credits

  • id Software — original Quake
  • Nightdive Studios — Quake Remaster
  • QuakeSpasm / FitzQuake lineage — engine base
  • quake-rerelease-qc — 2021 re-release game logic sources
  • Contributors to this iOS / tvOS Metal 4 port

Documentation

About

Native Metal 4 Quake port for iOS, iPadOS and tvOS

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages