Skip to content

TriUnit Recomp v0.16.0

Choose a tag to compare

@macielrecomp macielrecomp released this 29 Nov 23:13
· 29 commits to main since this release

An optional way to draw the fighters of the Remastered editions from pictures eight times the arcade's size, made on your own machine.

What's new

  • Fighters at 8x (Remastered, optional). Settings > Utilities > 8X Fighters, off by default, in Mortal Kombat, Mortal Kombat II and Mortal Kombat 3. Two image networks enlarge each pose, and the result is held to two rules against the arcade's own pixels: the mean of each 8×8 block is the original pixel, and no value leaves the range of that pixel's neighbourhood. The networks only choose where an outline passes inside each original pixel; they cannot add a shape or a colour. It is a presentation layer: a replay of each game ends in the same game state with the option off and on.
  • The game never runs a network. A pose without a picture is drawn as before and left in fighters_8x/<game>/pending. While no game is running, the app draws the pending poses in the background (about 2 seconds a pose on an RTX 4070 Ti SUPER) and the game shows a pose at 8x from the next session on.
  • The work is paused, never lost. Starting a game or closing the app pauses it, and the app takes it up again when it opens. The option's line shows how many poses are left and the time estimated. Closing the app while poses are being drawn asks whether to finish them first: the app then waits minimized and closes by itself.
  • Disk and memory are bounded. Each game's pictures take at most 2 GB (about 200 KB a pose); at that limit no more are drawn and nothing is deleted. A game keeps at most 512 MB of pictures in memory. Measured with 1,390 pictures of one game: about 0.1 ms more per frame, no late frame.
  • The files it needs are fetched only if you ask. They are not part of this project or of this release. python tools/setup/setup.py --fighters-8x lists what it will fetch and, only after you type YES, puts the tool's Python packages (from PyPI) in an environment of its own, fighters_8x/python, and fetches the two Real-ESRGAN weight files from their author's release pages, kept only if their SHA-256 is the expected one. Their author states no license for the weight files; see THIRD_PARTY_NOTICES.md.

Known issues

  • The 8x fighters were checked on one machine: Windows 11, RTX 4070 Ti SUPER, Python 3.13.2, a 2560×1440 monitor. A 4K screen, HDR10 output and other GPUs were not checked. Without a GPU for the networks the drawing is about 60 times slower.
  • The first sessions look mostly as before: a pose reaches 8x only after the app has drawn it, and a fight with new fighters leaves many poses (one 83-second session of Mortal Kombat 3 left 1,223, about 37 minutes of drawing). Whether a game's set of poses stops growing in normal play has not been measured yet.
  • In Mortal Kombat 3 the fighters' layer also holds blood, flames and the steps of the fades; they are enlarged with it, under the same rules.
  • The step that fetches the files is a command line; the app has no button for it. Its packages are fixed versions that exist for Python 3.12 and 3.13: with a newer Python installed, run it as py -3.13 tools/setup/setup.py --fighters-8x.
  • A game whose option was turned off still has the poses it had left drawn.
  • Mortal Kombat can still close when it reads, through a field that is not a port address, a device where a 32-bit read is not modelled yet (see v0.15.0 and #15). If it does, please attach the files of the session's folder in logs/temporaria-8.
  • With the Phosphor preset the widescreen picture is not stretched: it keeps its whole-line raster and its border.
  • Wide stretched has no limit: on an ultrawide screen it distorts the picture as much as the screen is wider than 16:9.
  • In a window, the game opens at 800×508 real pixels, so it looks smaller under display scaling. The window can be resized.
  • Controller and keyboard in Mortal Kombat II Remastered under Linux/Proton (#11) is still open: it needs the session log.
  • Mortal Kombat 3 Remastered cannot play your own music yet (its board does not separate music from effects).

Updating

This release changes the three games (the window they share draws the 8x fighters). The app shows games built by an older release as Update on the Build page; build them again. RecompLauncher runs the setup again on its own. Your CMOS profiles (settings and high scores) and save states are kept.

If RecompLauncher shows an older version, update TriUnit Recomp there first: an older copy stays on its previous release.

What's included

  • TriUnit-Recomp-v0.16.0-Windows-x64.zip: the app, the setup and the tools (the source tree with triunit.exe and recomplauncher.json at the top).
  • triunit.exe: the app alone, for an existing checkout of this tag. It contains no game code.

No game files are included: no ROMs, no generated code, no game executables. No network weights and no Python packages are included either.

Requirements

  • Windows 10 or 11, 64-bit, with a DirectX 12 GPU
  • MinGW-w64 g++: install MSYS2 and run pacman -S mingw-w64-x86_64-gcc in its terminal (validated: 16.1.0 at C:/msys64/mingw64/bin/g++.exe; another version or location is shown as not validated)
  • Python 3.12 or later on PATH (validated: 3.13.2); the optional 8x fighters step needs 3.12 or 3.13

How to use

  1. Install it from RecompLauncher, or download the zip and extract it.
  2. Without RecompLauncher: double-click TriUnit Setup.cmd (or triunit.exe), confirm on the Legal page that you own the original board / ROM files, choose your ROM folders on ROM Setup and press Verify, then Build each game (Update for games built by an older release).
  3. Play. For widescreen, choose the Remastered edition and set Settings > Display > Screen: Widescreen.
  4. Optional, for the fighters at 8x: in the app's folder run python tools/setup/setup.py --fighters-8x, then turn on Settings > Utilities > 8X Fighters in the Remastered edition.

See the README for the list of supported games, filters, VRR, HDR, the Remastered edition and the command-line setup.

Verify the download

  • TriUnit-Recomp-v0.16.0-Windows-x64.zip SHA-256: ac61fff5e01a486566faf5b0f195e78a291fb568ff120e48daebdee59b1f29d2
  • triunit.exe SHA-256: ebc9fd5b2ac728265856395bdc743c4edc2e90e50b1372a758c538d9c02817c3

Legal

Independent project, not affiliated with or endorsed by the owners of the games. You need your own legally obtained ROM files. See DISCLAIMER.md.