TMSRecomp

TMSRecomp is an unofficial native Windows port of Tokyo Mirage Sessions #FE Encore, made by static recompilation.

README

TMSRecomp

Tokyo Mirage Sessions #FE Encore, running natively on Windows.
Up to 4K and 240 fps · DLSS 4.5 / FSR 3 · VRR · one-click setup and updates · no emulator

Latest release Downloads Platform Vulkan License

Shibuya at 4K Carnage Form Battle skill menu Session lineup

4K, DLSS, UHD textures, Xbox button prompts. Screenshots from the author's own copy.

TMSRecomp is an unofficial native Windows port of Tokyo Mirage Sessions #FE Encore (Nintendo Switch, ATLUS / Intelligent Systems, 2020), made by static recompilation: the game's 32-bit ARM code is translated to C and compiled into an ordinary Windows x64 program, and its graphics run on Vulkan. There is no emulator and no JIT (how it works).

Important

No game files are included. You need your own legally obtained copy of Tokyo Mirage Sessions #FE Encore, dumped from your own console: the base game 1.0.0 without update (title ID 0100A9400C9C2000) and your prod.keys, or an already extracted folder. How to dump them is not covered here, and requests for game files will be closed.

The game is built from your files on your PC, so the result contains the game. It is for your own use: do not share game.dll or your game files folder.

Note

This project was built entirely with AI. All of the code, tooling, reverse engineering and documentation in this repository was written by an AI model (Anthropic's Claude, through Claude Code), directed, tested and reviewed by the project's owner. It is shared as is, as a fan project. As with any code from the internet, you build and run it at your own discretion.

Warning

v0.1.1 beta. It is tested until the chapter 2 Idolasphere with saving and loading, on NVIDIA RTX. Anything after that is unknown territory, as are AMD / Intel GPUs and weaker PCs: bug reports are very welcome.

TMSRecomp is not affiliated with, endorsed or sponsored by Nintendo, ATLUS, SEGA or Intelligent Systems. Tokyo Mirage Sessions #FE Encore and all related names, characters and assets are trademarks and copyrights of their owners.

At a glance

Nintendo SwitchTMSRecomp on PC
Resolution720p720p to 4K, 8K supersampling
Frame rate30 fps30, 60, 120, 144, 165, 240 or uncapped
Anti-aliasingFXAAFXAA, SMAA, MSAA up to 8x, AMD FSR 3, NVIDIA DLSS / DLAA (DLSS 4.5 models)
UpscalingnoneFSR 1, FSR 3 and DLSS Quality to Ultra Performance
DisplayTV / handheldborderless or window, Mailbox, VSync, VRR (G-SYNC / FreeSync)
Textures and moviesoriginaloptional 4x UHD texture pack and 4K movies
Extrasnonebattle retry, revealed maps, battle speed, multipliers, fast travel, autosave, mods and more
ControlsJoy-Con / Pro Controllerkeyboard, Xbox, PlayStation and Switch pads with matching button prompts

Contents

Features

Performance and display

  • Native code, not emulation: the game's ARM code is translated to C and compiled for Windows x64, and its NVN graphics calls run on Vulkan. Built on your PC from your own dump in 5 to 15 minutes.
  • Frame rate 30 (the game's own), 60, 120, 144, 165, 240 or uncapped. Game logic, animation and the camera run at the chosen rate; the game keeps its original speed.
  • Internal resolution from 720p (the game's own) to 4K, and 8K supersampling; Auto picks one for your screen and GPU.
  • Borderless fullscreen or window (F11 / Alt+Enter switches while playing).
  • VSync modes: Mailbox (no tearing, low latency), classic VSync, VRR (G-SYNC / FreeSync: VSync plus a frame cap 3 fps under your refresh rate) and Off.
  • Even frame pacing: a dedicated present thread, pipeline prewarm and a shader cache built during setup, so new areas do not stutter.
  • Weak-PC defaults: integrated GPUs and cards under 4 GB of VRAM get a lighter default resolution and no UHD pack.

Image quality

  • Anti-aliasing: the game's FXAA, SMAA, AMD FSR 3 (temporal, works on any GPU) or NVIDIA DLSS / DLAA (RTX GPUs, optional download from NVIDIA during setup), plus MSAA 2x / 4x / 8x.
  • FSR 3 / DLSS upscaling modes: Native (DLAA), Quality, Balanced, Performance, Ultra Performance. Menus and text always stay at full resolution.
  • DLSS model selection: Auto, K (transformer) or the DLSS 4.5 models M and L (DLSS 310.9).
  • FSR 1 screen scaler and contrast-adaptive sharpening (Off / Low / Medium / High).
  • Each post effect can be turned off: bloom, glow, depth of field, vignette, fog, outlines, character rim light.
  • Optional UHD texture pack and 4K story movies / camp backgrounds (separate downloads, see Extras).

Quality of life (all optional, in the launcher and the in-game menu)

  • In-game settings menu (F1 or L3 + R3) with live changes, and a Travel page: jump to shops you have visited, or open the Tokyo Map from anywhere.
  • Reveal dungeon maps: each Idolasphere floor shows its whole layout on the minimap and map when you enter it.
  • Retry lost battles with the battle's starting HP / EP / items.
  • Overworld costume: the costume equipped for battle is also worn in town, dungeons and story scenes.
  • All difficulties unlocked: Friendly and Lunatic from the start, and every difficulty (Friendly .. Lunatic) can be changed mid-game in System > Settings. See Difficulty levels for what each one changes.
  • Battle speed, autosave after battles (to slot 20, your own slots are untouched), field walk speed.
  • EXP, money and mastery multipliers; Sub Cast EXP; EXP level-gap penalty on/off; level-ups refill HP / EP; fallen members revive with 1 HP after a battle; carry 99 of each item; guarding recovers HP / EP.
  • First strike on downed field enemies, hide field enemies, weakness / resistance icons in battle, detailed skill help.
  • English subtitles for the Japanese battle voices.
  • Random battle music: the game's own tracks, your own .adx music folder, or both, with matching victory themes.
  • Button prompts for Switch, PlayStation or Xbox controllers (Auto detects your pad).
  • Menus and dialogue stay at their original pace at any frame rate, with optional smoothing above 60 fps.

Launcher

  • One window for setup, settings, mods, extras and updates. Quick settings on the Play page, every option on its pages.
  • Setup page: pick your NSP + prod.keys (or an extracted folder) and press SET UP. No emulator, no firmware, no internet needed.
  • Guide page: explains each extra and installs it from its ZIP with one click.
  • Mods page: turn mods on and off without deleting them.
  • One-click updates from this repository's releases (see Updating).
  • Copy system info and open the last log for bug reports.
  • The window icon and the Play page picture come from your own game (the NSP's icon and your title screen).

What's new in v0.1.1

  • Overworld costume (new, off by default): party members wear their equipped costume outside battle too: town, dungeons and story scenes. Launcher Game page, in-game menu (F1 / L3 + R3) or System > Settings PC 4/4.
  • Unlock all difficulties (new, on by default): Friendly and Lunatic can be chosen from the start, and the Settings difficulty row goes from Friendly to Lunatic at any time (the original allows Lunatic only on a new game).
  • Setup: NSPs with a ticket now work. NSPs whose game data is locked with a title key (the ticket .tik is inside the NSP) failed with a "title.keys" message; setup now uses the NSP's own ticket. title.keys is not needed.
  • Extras replace older versions: installing a newer uncensor patch removes the old patch mod; a new UHD / MovieHD ZIP removes the files the old pack had.
  • After updating, the launcher rebuilds game.dll once (a few minutes): setup changed.

Requirements

  • Windows 10 or 11, 64-bit.
  • A GPU with Vulkan 1.3 and a current driver (NVIDIA GTX 900 series or newer, AMD RX 400 or newer, Intel Arc or recent integrated graphics). Only NVIDIA RTX has been tested so far.
  • About 15 GB of free disk space (game files plus the built game). The UHD texture pack and 4K movies need more.
  • Your own dump of the game: an NSP of the base game 1.0.0 and prod.keys from your own Switch, or an already extracted folder with exefs\ and romfs\ (no keys needed then).
  • Nothing else: Python, the compiler and the shader translator ship inside the ZIP.

Installing and playing

  1. Download TMSRecomp-<date>.zip from the Releases page and extract it anywhere you can write to (for example D:\Games\TMSRecomp, not C:\Program Files).
  2. Run launcher.exe. The Setup page opens.
  3. Pick your game: NSP file… plus your prod.keys, or Extracted folder…. Optionally tick Download NVIDIA DLSS (RTX GPUs).
  4. Press SET UP. Setup copies the game files (about 13 GB), translates the game code, compiles it into game.dll and translates all shaders. It takes about 5 to 15 minutes and shows its progress.
  5. Press PLAY.

The exe is not signed, so Windows SmartScreen may warn on the first start ("More info" > "Run anyway"). Some antivirus tools look closely at a program that runs a compiler; everything stays inside the TMSRecomp folder.

Command line: tms.exe --data <folder> uses another game files folder; --set key=value overrides any setting for one run (repeatable), for example tms.exe --set window=window --set res=1080p --set fps=60.

Updating

The launcher checks this repository for a new release each time it starts.

  1. When a new version is out, the launcher shows Version x.y.z is ready. What's new opens the release notes.
  2. Press Update, then Yes. The launcher downloads the release, replaces its program files and restarts.
  3. If the new version changes the game code, the Setup page rebuilds game.dll from your existing game files by itself (a few minutes; your NSP is not needed again).

Your settings.ini, saves, mods, UHD textures, movies and music are never touched by an update. Check again below the version box checks manually. You can also update by hand: extract the new ZIP over your folder and replace the files.

Extras

The launcher's Guide page explains each extra and installs it: press Install ZIP… (or Install patch…) and pick the file you downloaded.

ExtraWhat it doesWhere to get it
English patch & uncensorEnglish voices and uncensored outfits / art (community patches)the patch's own page; the Guide links it
UHD texturesAI-upscaled textures, 4x (TMSRecomp-UHD ZIP)link in the release notes
4K movies4K story movies and camp menu backgrounds (TMSRecomp-MovieHD ZIP)link in the release notes
Your own battle musicrandom battle tracks from your own .adx files (for example a Persona 5 Royal music mod)your own files

Installing a newer version of an extra replaces the older one: an updated patch removes the old patch mod (mods with other content stay), and a new UHD / MovieHD ZIP removes files the old pack had and the new one does not. Every extra is optional; the game works the same without them. The UHD textures can be turned off without uninstalling (launcher Graphics page or the in-game menu, after a restart).

Controls

ActionKeyboardController
MoveW A S Dleft stick
Cameraarrow keysright stick
A / B (confirm / back)K or Enter / J or BackspaceA / B (Nintendo layout: right face button is A)
X / YI / UX / Y
+ / -Space / Tab+ / - (Start / Select)
Settings menuF1L3 + R3
ScreenshotF12 (saved to <game files>\shots)
Window / fullscreenF11 or Alt+Enter

In the Y menu, (-) offers Return to Title or Quit Game.

Settings

Change settings in the launcher (Save, then PLAY) or in the in-game menu (F1 / L3 + R3; most apply at once). They are stored in settings.ini next to tms.exe as key = value; any key can also be set with the environment variable NX_<KEY> or --set key=value.

KeyValues
fps30, 60 (default), any number above 60, 0 = uncappedframe rate
resauto (default), 720p, 1080p, 1440p, 4k, 8kinternal resolution
windowborderless (default), window
present_modemailbox (default), fifo, vrr, immediateVSync
fx_fxaa0 off, 1 FXAA (default), 2 SMAA, 3 FSR 3, 4 DLSSanti-aliasing
fsr3_quality0 native (default), 1 Quality, 2 Balanced, 3 Performance, 4 Ultra PerformanceFSR 3 / DLSS upscaling
dlss_preset0 auto (default), 11 K, 13 M, 12 LDLSS model
msaa0 (default), 2, 4, 8not used with FSR 3 / DLSS
upscalerfsr1 (default), bilinearscreen scaler below your screen size
sharpen0 (default) .. 100
post_native1 (default), 0depth of field / bloom at the game's size (no halos)
fx_bloom, fx_glow, fx_dof, fx_vignette, fx_fog, fx_outline, fx_char_rim0 turns the effect off
tex_packauto (default), 1, 0UHD texture pack
pad_iconsauto (default), switch, playstation, xboxbutton prompts
walk_speed1.0 (default) .. 3.0field walk speed
map_reveal0 (default), 1reveal dungeon maps
field_costume0 (default), 1overworld costume
all_difficulties1 (default), 0Friendly / Lunatic unlocked, full difficulty range in Settings
battle_retry1 (default), 0retry lost battles
autosave1 (default), 0save to slot 20 after battles
exp_rate, money_rate, mastery_rate1 (default) and upmultipliers
sub_exp, exp_gap, levelup_refill, ko_revive, item_max99, guard_regen, first_strike1 / 0gameplay extras
random_battle_bgm0 off, 1 game tracks, 2 custom, 3 mixedwith custom_bgm_dir, custom_bgm_volume (0 .. 10)
voice_subs1 (default), 0English battle voice subtitles
ui_speed, ui_smooth60 / 1 (defaults)menu pace and smoothing above 60 fps
mute1sound off
mods_disabledfolder names, comma separatedmods to leave off
dataa folderthe game files folder

The full list with explanations is at the top of settings.ini and in the ZIP's README.txt.

Saves

The game's own save files live unchanged in save\ inside your game files folder (system.bin, save_*.bin). Back that folder up now and then. Autosave (on by default) writes slot 20 after battles and never touches your own slots.

Emulator saves (Ryujinx or a Yuzu-based emulator) use the same files and should load (not tested yet, please report how it goes):

  1. Back up the save\ folder in your game files folder.
  2. In the emulator, right-click the game > Open User Save Directory (Ryujinx) or Open Save Data Location.
  3. Copy system.bin and every save_*.bin from there into save\.
  4. PLAY and pick LOAD.

A save written by an updated game (not 1.0.0) is untested.

Mods

A mod is a folder <game files>\mods\<ModName>\ (LayeredFS style); the launcher's Mods page turns each one on or off.

  • Game files: put them in mods\<ModName>\romfs\ at the same path as in <game files>\romfs\ (setup extracts the game there, so you can copy a file out, change it and put it in your mod). Files you do not ship come from the game. Mods shipped as xdelta patches against the game's .cpk files: python tools/vcdiff.py <original.cpk> <patch.xdelta> <out.cpk>.
  • Textures: set tex_dump = 1 and play: every texture shown is saved once to <game files>\textures\dump\<w>x<h>_<format>_<hash>.dds. Edit one, keep the _<hash> at the end of the name, and put it in mods\<ModName>\textures\ (subfolders are fine). Any size works; DDS in BC1-BC7 or RGBA8 with mipmaps (texconv -m 0). Mod textures win over the UHD pack.
  • Several mods: for the same file or texture, the mod whose folder name sorts first wins.
  • nx.log lists each mod at start (fs: mod <name> on, textures: mod <name>: N). Restart the game after a change.
Difficulty levels

What each difficulty changes, read from the game's code (battle setup and damage formula):

DifficultyDamage you dealDamage you takeMoneyEscape base chance
Friendly×1.5×0.5×1.2550%
Easy×1.25×0.8×1.2550%
Normal×1.0×1.0×1.030%
Hard×0.8×1.25×1.01%
Lunatic×0.5×1.5×1.01%

Hard and Lunatic also change ailment hit rates; on Friendly and Easy, members below the enemy's level get +20% EXP per level instead of +10%. Enemy HP and stats are the same on every difficulty.

Troubleshooting and FAQ

  • Setup fails or stops. The Setup page shows the step and the error; Open last log shows the details. Check that the NSP is the base game 1.0.0 (not an update or DLC) and that prod.keys comes from your own console. A message about title.keys alone is only a warning; since v0.1.1 an NSP's own ticket is used. If setup still says the NSP needs a title key, put title.keys (with this game's key) next to prod.keys. With an extracted folder, it must contain exefs\main and romfs\.
  • "The game is not set up yet, or needs a rebuild after an update." Open the Setup page; it rebuilds game.dll from your existing files.
  • DLSS is not offered or falls back to FSR 3. DLSS needs an RTX GPU, a current NVIDIA driver and nvngx_dlss.dll next to tms.exe (Setup page > Download NVIDIA DLSS).
  • Stutter the first time something appears. Pipelines are compiled once and cached in <game files>\cache; the second time is smooth. Do not delete that folder.
  • Low fps. Lower the resolution, use FSR 3 / DLSS upscaling (Quality or Balanced), turn MSAA off. 60 fps is the most tested frame rate.
  • Screen tearing with VRR. Turn on G-SYNC / FreeSync in your GPU driver and use VSync = VRR in the launcher.
  • The game does not start / closes at once. Update your GPU driver, then send the bug report described below.
  • Can I use an updated game (1.0.1+) or DLC? Not yet: the hooks use fixed addresses of the 1.0.0 build.
  • Linux / Steam Deck? Not supported yet; Proton is untested.
  • Where are my files? Everything (game files, saves, cache, logs, screenshots, mods) is in the game files folder chosen during setup; settings are in `settings.i