UprisingHack

UprisingHack is a PC port of Kid Icarus: Uprising with mouse aim and a single-screen layout.

README

Kid Icarus: Uprising — PC

A PC port of Kid Icarus: Uprising with mouse aim and a single-screen layout. Work in progress.

Air battle with mouse aim, with the HUD and dialogue on one screen

Download

Get v0.1.1, the latest release, for Windows or Linux. For the newest changes, the nightly release is rebuilt from main each day, but it may be broken.

You need your own decrypted dump of Kid Icarus: Uprising (USA, 0004000000030100). No game data is included.

  1. Unzip the archive and run UprisingHack.exe (Linux: ./UprisingHack, which needs libasound2).
  2. Press Choose folder… and pick the folder with your dump.
  3. Press Recompile next to the game. It takes about ten minutes, and is needed again after each update. If you have no C compiler, UprisingHack offers to download one.
  4. Launch the game. Press F12 (or Home on a controller) for the emulator menu.

With RecompLauncher, Easy Setup asks for your dump and recompiles the game once per release, so Play goes straight into the recompiled game. From a terminal, UprisingHack --recompile <dump> does the same without a window.

On Windows the zip is portable: settings, saves, save states, mods and the downloaded C compiler all go in a UserData folder next to UprisingHack.exe, so moving the folder moves them. The recompiled game and the shader cache still go in %APPDATA%\3dsrecomp\ and %LOCALAPPDATA%\UprisingHack\ for now (#34). Delete portable.txt to use %APPDATA%\UprisingHack\ instead. If the folder can't be written to, UprisingHack uses %APPDATA% on its own. Coming from v0.1.0, which kept everything in %APPDATA%\UprisingHack\? Move that folder's contents into UserData, or delete portable.txt. Started from RecompLauncher, all of it goes in the folder the launcher keeps with the game (RECOMPLAUNCHER_DATA) instead.

To build from source instead, see docs/BUILDING.md.

Found a bug or want a change? Open an issue. To help out, see CONTRIBUTING.md.

Features

  • Mouse aim: an absolute reticle in air battles and mouse-look on the ground.
  • Rebindable keyboard, mouse and controller input, with optional gyro aim (see below).
  • Menus work with the mouse, using the game's own cursor and confirm logic.
  • The battle HUD, dialogue, pause menu and scripted menus are moved from the bottom screen onto the main view.
  • Widescreen. 16:9 is recommended for menus; ultrawide works in battle.
  • An optional 60 FPS patch (how).
Air battle dialoguePalace menu
Chapter selectSingle-screen menus
Weapon viewerGround battle dialogue
Original layout

Set any of these environment variables to 0 to show that part as the 3DS does:

VariablePart
ZAKURO_MENUS_TOPScripted menus
ZAKURO_NARRATION_TOPDialogue and narration
ZAKURO_PAUSE_TOPPause menu
ZAKURO_CAULDRON_TOPFiend's Cauldron
ZAKURO_MIRROR_BOTTOMBottom-screen mirroring
ZAKURO_MENU_HOVERMouse hover in menus
Gyro aim

The port passes a controller's gyroscope to the game, but the game only aims with it once Darkshade's Kid Icarus: Uprising C-Stick & Gyro Patch is installed. It isn't included, and with the port it's experimental and untested.

  1. Download the patch from its GBAtemp thread and pick its Base Patch, not a widescreen option. The port handles widescreen itself.
  2. Make a folder for it in the game's mods folder, such as mods/0004000000030100/Gyro/ (see Mods), and copy the patch's code.bin, exheader.bin and romfs/ folder into it.
  3. Recompile the game.

The patch replaces code.bin, and the 60 FPS patch is made for the original one, so switch the 60 FPS Mod off in the Mod List: the two can't be combined.

Mods

The port loads Mods made for a 3DS, laid out the way Luma3DS and Citra take them. A game's Mods go in its mods folder, mods/0004000000030100/ inside UprisingHack's data folder (%APPDATA%\UprisingHack\ on Windows, ~/.local/share/UprisingHack/ on Linux, or the unzipped folder with portable.txt). Put each Mod in a folder of its own there:

In a Mod's folderWhat it does
romfs/Files that replace the game's, or add to them
romfs_ext/.ips or .bps patches for the game's files, and .stub files that remove the file they're named after
code.bin, code.ips, code.bps (or under exefs/)The game's code, or patches to it, with exheader.bin when the code grows
textures/A texture pack made for Citra or Azahar
dynamic_input_textures/Dynamic Input Textures configs and pictures

The Mods button next to the game in the library opens the Mod List. Switch each Mod on or off there, and move it up or down. Where two Mods replace the same file or texture, or both bring a code.bin, the higher one wins, and the list names the files they both replace. Patches stack: every enabled Mod's patches apply, the lowest Mod's first. Files left loose in the mods folder still load, as the Mod "(loose files)" at the bottom. The Mod List keeps its order in mods.toml in the mods folder.

Changes take effect the next time the game starts. A Mod that changes the game's code needs the game recompiled, and the Mod List offers that when the code Mods change. Cheats stay in the cheats/ folder, in Citra's format.

Upgrading from 0.1.1 or earlier

Before, a game took one Mod, its files put straight in mods/0004000000030100/. Those installs keep working: the files show up in the Mod List as "(loose files)". To name and order them like other Mods:

  1. Open the Mod List with the Mods button.
  2. Under the list, check the suggested name ("60 FPS" for the 60 FPS patch's code.ips, "Gyro" for the C-Stick & Gyro Patch) and press Move into its own Mod.

Or by hand: make a folder in the mods folder, such as 60 FPS, and move code.ips, code.bin, exheader.bin, exefs/, romfs/, romfs_ext/, textures/ and dynamic_input_textures/ into it. Moving a Mod doesn't change the game's code, so there's no need to recompile. If both the 60 FPS patch and the C-Stick & Gyro Patch were in the folder together, they couldn't be combined before either: move them into two Mods and switch one off.

How it works

The game's ARM code is recompiled ahead of time into native code by 3dsrecomp, and runs on a fork of the Zakuro runtime. A few game functions are replaced or hooked for the PC changes; the rest is the original game logic.

Port-specific code lives in kiu/ and crates/zakuro-core/src/aim_mouse/. See PLAN.md for the roadmap and GLOSSARY.md for terms.

Credits

  • fearkov, for Zakuro and 3dsrecomp.
  • Darkshade, for the C-Stick & Gyro Patch, whose widescreen hooks helped map the projection, HUD and reticle code.

License

MIT. Built on Zakuro by fearkov, also MIT.

Not affiliated with or endorsed by Nintendo, Project Sora or Sora Ltd. Kid Icarus is a trademark of Nintendo.