TLoZ:TWW HD Recompiled — Android

TLoZ:TWW HD Recompiled — Android is a native Android port of The Legend of Zelda: The Wind Waker HD that recompiles the game's code to run directly on Vulkan.

README

TLoZ:TWW HD Recompiled — Android

An Android port of the ZeldaWWHDRecomp project: The Legend of Zelda: The Wind Waker HD (Wii U, USA, European and Japanese versions) as a native app for 64-bit ARM Android devices. The game's PowerPC code is recompiled to native ARM code, the Wii U system libraries the game uses are reimplemented, and its graphics run directly on Vulkan. There is no emulator in between.

The app contains no game files. You bring your own copy of the game: a disc image (.wud or .wux) dumped from your own Wii U disc, with its keys, or a Cemu archive (.wua) made from it. On the first start the app extracts the game from it and builds the game code on your device.

The original project (macOS, the 60 fps modes, decompilation tools) is described in docs/original-readme.md; how the recompilation works in docs/how-it-works.md.

What this fork adds

Flexible touch controls with context buttons and Link in the button icons, on Outset IslandHold an item button: the item ring
Flexible touch controls with context buttons and Link in the button icons, on Outset IslandHold an item button: the item ring
The layout editor with its gridThe options as a page of the + menu, in the game's style
The layout editor with its gridThe options as a page of the + menu, in the game's style
The large Picto Box viewAlbum pages: a full album goes on to page 2
The large Picto Box viewAlbum pages: a full album goes on to page 2
At a postbox, A shows the postbox itselfThe postbox offers to send a picto to Carlov
At a postbox, A shows the postbox itselfThe postbox offers to send a picto to Carlov
Note pads for conductingPlay buttons in the + song list
Note pads for conductingPlay buttons in the + song list
Singing a song: the practice timelineThe Game tab with the new options
Singing a song: the practice timelineThe Game tab with the new options
  • Android port: Vulkan renderer, AAudio sound, touch screen, game controllers and hardware keyboards.
  • An APK without game code: on the first start the app extracts the game from your disc image or .wua archive and recompiles its code on the device with LLVM (once; a few minutes on a fast phone, longer on slower ones). Later starts load the compiled code in about half a second. The work continues in the background with a progress notification, and resumes where it stopped if the app is closed.
  • Frame generation with Lossless Scaling's LSFG 3 (see below): 60, 90 or 120 fps.
  • 60 fps by frame interpolation (the original project's, Graphics › Frame rate): the game draws an extra frame between its 30 steps a second, without the Lossless.dll; 120 fps on screens with 120 Hz or more. It needs a fast phone (60 fps on a Snapdragon 7+ Gen 3); where a frame doesn't fit in time it is left out, so the game always keeps its speed. Works together with frame generation ×2.
  • 60 fps (generated) (from WindWakerHD-Android-Plus): the game stays at 30 fps and every other frame is made on the GPU from the last one, with the HUD kept still; for phones whose CPU can't interpolate (60 fps on a Snapdragon 855).
  • An in-game options menu that looks like the game's own GamePad menus (its paper, tabs, buttons and fonts, taken from your game files), as a page of the game's + menu, with tabs for saves, the game, graphics, mods and controls, usable by touch and with a controller (see below); it fits phone screens too.
  • Six languages: the app's texts in English, German, French, Italian, Spanish and Japanese, following the game's language.
  • Save states: five slots with a picture, time and place of each state. Saving stops the game for only a few hundredths of a second (the memory is copied in the background), and a state loads anywhere: in the game, at the title screen or the file select. An auto save every 2, 5 or 10 minutes into two slots of its own, a "Last session" state when you leave the app or quit, and at start the choice of the intro, the save states, or straight back into the last session.
  • Import and export of the game save and the save states as one backup file, and GameCube saves (.gci, USA, Europe and Japan) imported as the HD game save (after the original project's converter).
  • Mod packs: Cemu graphic packs (for example from GameBanana or GitHub) and plain game file mods, imported from .zip, .rar and .7z files: code patches (patch_*.asm, Cemuhook patches.txt), game file replacements, shader replacements and texture filtering rules. A code patch only applies to the game version it was made for; turning packs on or off recompiles the changed code once. A loading order decides which pack wins where two change the same file, and each save file can have packs of its own.
  • Performance overlay: frame rate with its average, frame time, CPU and GPU load, CPU, GPU and battery temperatures, the graphics settings in use, the SoC, GPU and GPU driver; you choose the values and drag it where you want it.
  • The European and Japanese versions as well as the USA one, with all features: the game code of all three is the same program at shifted addresses, and the app's hooks and mods find their places in each (tools/recomp/port_addresses.py matches the executables; the address maps it writes are in tools/recomp/release_eur.txt and release_jpn.txt).
  • Game language: the languages of your copy (USA: English, French, Spanish; Europe: also German and Italian; Japan: Japanese), by default the device's language setting is used. The app's own menus have a language of their own (Menu language: English by default, or one of your copy's).
  • Custom GPU drivers on Adreno GPUs (see below): Mesa Turnip or newer Qualcomm drivers.
  • Widescreen: the game renders at the screen's shape and shows more to the sides; the HUD keeps its proportions at the screen edges.
  • The Wii U's sun and haze: the sun's corona and lens flare (hidden behind walls and hills as on the console), the haze in the distance and the bloom around bright light.
  • Display options: rendering resolution from 0.5× to 3×, dynamic resolution (lowered by itself while the GPU can't keep up or memory runs low, down to a limit you choose), sharp, bilinear or pixel-perfect upscaling, a display resolution that draws the picture only as large as it needs to be on high-resolution screens, aspect ratio (bars, stretched, or filling the screen), screen layouts for the TV and GamePad pictures (GamePad inset, side by side, TV with the GamePad on +, GamePad with TV inset). All of them apply immediately, without a restart.
  • One controller, the GamePad: every controller and the on-screen controls act as the Wii U GamePad, with its gyro aiming and rumble. On a single screen, + shows the touchable GamePad screen (items, map, bottles) in place of the TV picture and pauses the game, and + again goes back. With a controller, a highlight in the game's own cursor style moves over the GamePad screen: A taps, Y / X / R put the highlighted item on that button, B goes back. The title screen's controller question is answered by itself (from the original project).
  • Dual-screen devices (AYN Thor and the like): the GamePad picture goes to the second screen by itself, with touch, and the main screen shows the TV picture; Graphics › GamePad screen switches back to the screen layouts. The GamePad screens (items, map, bottles) fill a second screen of another shape, such as the Thor's lower screen; Graphics › GamePad picture keeps the original 16:9.
  • New touch controls (see the controls guide): a Classic fixed GamePad or Flexible sticks where the thumbs land; context buttons that appear when they do something and show what with the game's own icons; items aimed and shot by tapping; an item ring (hold X, Y or R); a layout editor with a grid, button shapes, opacity and saved layouts; Link drawn in the button icons; a large Picto Box view. They hide while a controller is in use.
  • Minigames, talks and menus by touch: Sploosh Kaboom, the picture puzzles, mail sorting, the cannon, the auction, shops, the gallery's figures, the wind compass, answers and number entry, with a first time hint in the game's message style. Talks go on with a tap anywhere (or by holding a finger down), answers by touching the line, shops without buttons.
  • The songs: conducting by note pads, play buttons in the song list and in the story scenes that wait for a song, and (experimental) singing, humming or whistling a song into the microphone.
  • Controller setup: face buttons by position or by letters, ready-made layouts for Jump anywhere, L1 and d-pad down as item buttons, controller details.
  • Mini map in a corner of the TV picture, in the GamePad map's style: the sea, the dungeons' rooms and floor plans elsewhere, square or round in the sailing compass, with island pictures redrawn, in HD, as the terrain really is, or the game's own, and a wind arrow you can swipe to set the wind.
  • Full map: the whole sea chart (or the dungeon, cave or house Link is in) full screen and sharp, and the + menu's sea chart and dungeon maps drawn anew in the same quality.
  • Randomizer: TWWHD Randomizer 1.2.0 by SuperDude88 built in (USA, Europe and Japan), with several randomized games side by side, a choice at each start which one to play, and the spoiler log as pages and on the progress map.
  • Link's colours: colour sets, each colour of his clothes, hair and eyes (with a colour wheel), for randomized games (also the casual clothes from the start) and for the game as it is, per save file and live.
  • GameCube player models: custom models made for the GameCube randomizer (for example the Custom Wind Waker Player Models collection) imported as a zip and converted on the device for HD: Link's body, hair, hands and the items the pack changes, their textures upscaled to HD's sizes, on HD's skeleton and animations. A model (or Link) for each save file, switched live, in the game as it is and in randomized games.
  • Save file names up to 16 characters, renamed while playing (the game's name entry allows 8).
  • Game progress and achievements: a percent and a checklist of what the save file has collected and what is missing, a map of where each thing is found (also as marks on the mini map and the game's own maps), and 105 achievements with a pop-up of Link holding each one up.
  • Quicker play (each a switch): instant text and no pauses in texts, walk-through doors (dungeon and house doors without their scene), hit freezes off by kind, the wind set at once from the mini map.
  • Android TV: the app in the TV launcher, set up with the remote, played with a controller; a TV by casting or an HDMI cable shows the game picture while the device shows the GamePad.
  • Graphics presets and a 2-minute test that finds the best settings for the device.
  • Picto Box album and postboxes: an album with any number of pages of 12 pictos, the subject of each picto named (with the game's gold medal when it is good enough for a figurine), and pictos mailed to Carlov from any postbox, so his figurines arrive in the Nintendo Gallery without a trip there. Link's clothes: the hero's or the casual ones at any time.
  • Gyro aiming with the device's motion sensors or a controller's (DualSense, DualShock 4, Switch Pro and others that Android reports with sensors).
  • Rumble on the controller in use, or on the device while playing by touch.
  • The original project's gameplay mods on Android: climb any wall, direct right-stick camera, first person on the mouse wheel, quick doors, fast scene changes.
  • Walking direction: Link keeps walking his way while the camera turns, optionally with the camera swinging back behind him; a zoomed-out field of view.
  • Faster running, swimming, climbing and sidling (new mods): 1.25 up to 4 times as fast; everything else keeps its speed.
  • Jump anywhere (a new mod): its button jumps from standing or running, as off a ledge, with an optional double jump and without the automatic ledge jumps. Moon jump: hold its button to rise and fly. Both have their own touch buttons and any controller button you choose.
  • Inverted camera up/down for first person and aiming, or always (contributed by Abssenta).
  • Fast forward (a new mod): hold ZR (R2) to run cutscenes and dialogues faster, switched separately. The game plays its normal frames, only more of them per second (up to 4×, as fast as the device can draw them: about 2× on a Snapdragon 7+ Gen 3), so nothing is skipped; text boxes still wait for your button.
  • Performance work for weaker devices, above all Mali GPUs: textures wait only for the shader stage that reads them (on a Helio G85 / Mali-G52 MC2 at 0.5×: 19.7 → 28.5 fps), clears done as part of the next render pass, mipmap chains built in place and only as far as they are read, exact float multiplies only where a value can be infinite (Mali-G52 at 1×: GPU time 47 → 40 ms), shadows with emulated depth clamping where the GPU has none, BC textures unpacked on the GPU where it can't sample them (most Mali and PowerVR GPUs), vertex byte swaps PowerVR drivers decode correctly. On the CPU side: faster recompiled game code (guest registers in the CPU's own registers, cheaper function entries and memory accesses, hot functions grouped together), a render thread with a third less work, unchanged vertex and index data kept across frames, a second thread for the Vulkan commands, the game and render threads on the fast cores, Android performance hints and game modes. On a Helio G85 / Mali-G52 MC2, 0.75× rendering resolution is now playable at close to 30 fps.
  • Crash logs: if the game crashes, the next start offers its log in Android's share menu, for a bug report. It shows where the game crashed and with which app and game version, device and settings; it contains no personal data. About › Share crash logs shares the logs kept; a shared log is deleted at the next start.
  • Fixes: correct lighting on the first visit to a scene with an empty shader cache; game files found on devices whose storage tells upper and lower case apart; Picto Box pictures in colour (the game reads them back from the GPU to save them).
  • No internet access: the app doesn't request it, and its manifest explicitly excludes it.

Version history

0.9.9d

  • Game › Save file pages (on): more than three save files. A torn green strip below the files on the file select turns the pages (L / R on a controller), + adds a page, Game › Manage pages deletes one. Settings per save file name the page and the file.
  • Controls › Touch › Button rings: the sailing compass's thick or the moon clock's thin bronze ring around the round on-screen buttons, the stick and the context buttons (off by default).
  • The Ballad of Gales map works by touch: a tap on a cyclone selects it, a second tap sails there, B leaves the map (#79).
  • Game › Menu language: Русский (Russian) for the app's menus, hints and dialogs (by l1137l, #77); the game itself keeps the release's languages.
  • Graphics › Picture quality › Bloom strength (0 to 200 %, 100 % is the original game) and Distant shadows (off: the far shadows aren't drawn, less GPU work for weaker phones) (by l1137l, #78, an idea from WindWakerHD-Android-Plus).
  • Graphics › Picture quality › Grass draw distance: tall grass farther away is not drawn, a big saving in thick grass on slower phones (All = the original game).
  • 60 fps (interpolated): music and sound fades, the sky's and light's colour changes (weather, evening, arrow flashes) and the message box's button icons run at the game's speed instead of twice as fast; the King of Red Lions' whirlwind after the Ballad of Gales is heard; at sea, objects are culled as at 30 fps; a cut tree's top comes to rest at the right angle; the pirate ship's sail no longer tears, and the grass cutter and Moblins' hair behave as at 30 fps.
  • Walk-through doors: going through a house door is faster (the sound no longer holds the new room back), and the Tower of the Gods' statue room no longer stops the game after a walk-through door.
  • Save states work again after freeing Tingle (#75), and a full save state taken before the first picto loads after it too.
  • The options page fits on phones that render apps at a lower resolution (Android game mode, MagicOS) instead of being cut off at the right and bottom (#76).
  • The Grandma's Secret achievement checks Grandma's chest.
  • Quit closes the app cleanly.

0.9.9c

  • Mods › Mod packs › Per save file: each save file has its own packs, presets and loading order. Choosing a file with other packs in the file select asks whether to restart with them; the game then restarts behind a loading screen and goes straight into that file. A deleted save file lets go of its packs.
  • Mods › Mod packs › Loading order (with two or more packs on): the top pack loads first, the lower one wins where two change the same game file, shader or code. Drag a row, or with a controller pick it up with A and move it up or down; each row names the packs whose files it replaces.
  • Mod packs from .7z files, and dialogue or translation mods made only for the American English text now also work in the European game (#49).
  • Game › Skip the title screen (off): after the logos the game goes straight to the file select; B there still leads to the title screen.
  • Controls › Touch › ZL when the target is defeated: new choice Every enemy: ZL stays on and locks each enemy that comes in reach, and a clearly nearer enemy takes over the lock. The choice now also works for a held ZL and with "ZL / ZR stay on after a tap" off; the first-start touch preset picks Every enemy. Controls › Controller › ZL locks every enemy: the same while a controller's ZL is held.
  • Touch (Flexible with context buttons): the Wind Waker, and in the boat the cannon and the salvage arm, are round buttons of their own (movable in the layout editor), each shown while it can be used, with animated icons for firing the cannon and letting the hook down. Without the item ring the boat's cannon and salvage arm can now be used by touch. Controls › Item ring › Wind Waker button too and Cannon and salvage arm buttons too keep them while the ring is on. The Wind Waker picked from the ring and cancelled is put away by itself.
  • The game's picture now also fills the strip beside a front camera cutout on Android 14 and older, as it already did on Android 15 and newer (#29).
  • The "Preparing the game code" screen keeps its progress and a smaller Cancel button in view below the text, so the text no longer scrolls on wide phones (#29).

0.9.9b

  • Fix: on a save with one to three Pieces of Heart toward the next heart, the item pictures on the buttons, the mini map, the item ring and everything else that reads the save