Phantasy Star Nova Recomp

Phantasy Star Nova Recomp is a native Windows port of Phantasy Star Nova for the PlayStation Vita, offering higher resolutions and frame rates.

README

Phantasy Star Nova Recomp

A fork of Project Nativ, focused on Phantasy Star Nova.

Phantasy Star Nova Recomp turns the Japanese PS Vita release of Phantasy Star Nova (tri-Ace / SEGA, 2014) into a native Windows program. It is not an emulator. The game's ARM code is translated to C once, ahead of time, and compiled into a normal Windows executable. A runtime stands in for the Vita's system software and hardware: it runs the game's threads, draws its graphics on your GPU through Vulkan, plays its sound and movies, and reads your keyboard, mouse or controller.

You bring your own copy of the game. Nothing of the game ships in this repository.

What you get

  • The full game running natively, from the title screen through gameplay, movies and saves.
  • Higher resolution and frame rate: up to 6× the Vita's 960 × 544 internal resolution, and an optional 60 FPS mode where the Vita ran at 30.
  • PC controls: keyboard and mouse, or an Xbox-style controller you can plug in at any time. The game follows whichever device you used last.
  • Saves you can manage: a PC save picker, and save backups from the in-game menu.
  • An in-game menu (F10) for resolution, frame rate, controls, language and saves.
  • Graphics fixes for depth, deferred draws and lines that the Vita's GPU handled differently.

Status

0.1.0 Beta 2. In testing on Windows 11 with an NVIDIA card, the game runs through character creation, gameplay, movies, saving and loading. Setup builds an English localization from your copy: menus, dialogue, UI art and movie subtitles, with the Japanese subtitles burned into the movies removed (see English).

New in Beta 2:

  • A Windows release you extract and set up from one window, with no Git, Python or command line.
  • Updates from inside Setup, signed and reversible.
  • Fixed: Cast characters drawn with wrong, green textures.
  • Fixed in code, waiting for confirmation on AMD cards: triangles stretched across the screen.

The frame rate stops at 60 FPS: the game's own logic is tied to it. Known issues are tracked in docs/psnova/README.md and in the issues.

There are two ways to install. Most people want the first.

Windows releaseBuild from source
ForPlayingChanging the code
You installNothing: Python and the compiler are in the downloadGit, Python and the build tools
HowOne setup windowCommands in PowerShell and Git Bash
UpdatesOffered inside Setup, signed, a few minutes for mostgit pull and one command

Windows release

Download the latest release (about 260 MB, 14 GB of free space to install). The current one is 0.1.0 Beta 2.

Have these ready first. They are the same for both ways of installing, and none of them is in the download:

  • Your copy of Phantasy Star Nova for the Japanese PS Vita (PCSG00351): the 1.00 base-game PKG and the official 1.05 update PKG, or one ZIP that holds both.
  • Your game's licence file, work.bin or a .rif.
  • The Vita system software 3.74, PSVUPDAT.PUP, from PlayStation's download page.
  • For English, your own copy of the font Glenth Regular (glenthregular.ttf).

Then:

  1. Extract the whole ZIP to a folder you can write to, such as C:\Games\Phantasy Star Nova.
  2. Open Setup Phantasy Star Nova.exe and choose your game files, the licence, PSVUPDAT.PUP and the font.
  3. Click Build and install and leave the window open. Your PC builds the game, which takes about half an hour. If it is interrupted, open Setup again: finished stages are skipped.
  4. Click Play, or open Phantasy Star Nova.exe from then on.

Windows may warn about the setup program and the game, because neither is signed. Your saves, settings and logs are in NovaData\Player inside the release folder.

Updates. Setup and the game's launcher ask this repository's update feed at most once a day. When there is a newer version, Setup's Updates panel shows what it changes and how long it takes, and installs it only when you click Install update. Updates are signed, your earlier build is kept, and Roll back returns to it. You don't need to come back here for them. A change to Setup itself still comes as a new download, which you extract over the old folder.

The release's own guide covers the rest: the ZIP layout, the command line, support reports and what each setup message means. It is README.md in the download, and here in the repository.

Build from source

Use this if you want to change the code or follow development between releases. The sections after it (Updating, Playing, Troubleshooting) describe this way of installing; the controls are the same in the release.

You set up once, in six steps. It takes 40 minutes to an hour, most of it waiting while your PC builds the game. After that you start the game with a double-click.

StepWhat it doesTime
1. Download the projectGets the code and its Python packages2 min
2. Install the build toolsDownloads the compiler and libraries5–30 min
3. Add the Vita system softwareTakes the modules the game needs from Sony's firmware file1 min
4. Add the English fontLets setup build the English version1 min
5. Add your gameBuilds the Windows game and its English30 min
6. Play
Before you start

Get these ready. Everything else is downloaded for you.

  • A Windows PC: Windows 10 or 11 (64-bit), a graphics card with an up-to-date driver, and about 12 GB of free disk space.
  • Git for Windows and Python 3.15, installed with their default options. On Python's page, choose the newest 3.15 release's Windows installer (64-bit): the 32-bit and ARM64 versions can't install what setup needs. Python 3.12 to 3.14 work too. Versions newer than 3.15 don't work yet.
  • Your copy of the game: Phantasy Star Nova for the Japanese PS Vita (PCSG00351), both the 1.00 game and the official 1.05 update. PKG files work, and so do the app and patch folders copied from a Vita.
  • Your game's licence file: work.bin or a .rif file. In a game folder copied from a Vita it is in sce_sys\package\.
  • The Vita system software: PSVUPDAT.PUP version 3.74, from PlayStation's download page.
  • For English: your own copy of the font Glenth Regular (glenthregular.ttf). It is not free to share, so it can't be included. Without it you get the game in Japanese.

Other regions and versions don't work. A copy that already has a fan translation works: setup removes the fan translation and puts this English in its place, with a few limits (see English).

Tip

Running the commands. To open PowerShell in a folder, open the folder in File Explorer, click the address bar, type powershell and press Enter. Copy a whole code block, paste it into the window with Ctrl+V, and wait until the prompt comes back before the next one. Where a command says C:\path\to\…, put the path of your own file between the quotes. Dragging the file onto the PowerShell window types its path for you.

1. Download the project

Open PowerShell in the folder where you want the project, for example your Documents folder, and run the commands below. The third one makes the project's own Python environment with Python 3.15. If you have an older one instead (3.12 to 3.14), change its number, for example to py -3.14.

git clone https://github.com/aggc01/phantasy-star-nova-recomp.git
cd phantasy-star-nova-recomp
py -3.15 -m venv .venv
.\.venv\Scripts\python.exe pipeline\check_python.py

It worked if the last line says 64-bit: ready. If it says this Python can't be used, follow its instructions before going on.

Then install the Python packages setup uses and make a dump folder:

.\.venv\Scripts\python.exe -m pip install -r requirements.txt
New-Item -ItemType Directory dump

It worked if the last line shows a new folder named dump. That folder holds your game library, the build and your saves. Keep this PowerShell window open for steps 3 to 5.

2. Install the build tools

This step uses Git Bash, which came with Git. In File Explorer, open the new phantasy-star-nova-recomp folder, right-click an empty spot and choose Open Git Bash here (on Windows 11 it is under Show more options). Run:

ATIV_WIN_TOOLCHAIN="$PWD/toolchain" bash runtime/platform/win/setup-toolchain.sh

It downloads about 280 MB into a toolchain folder inside the project, then unpacks the compiler and builds part of FFmpeg. That part shows nothing on screen for 5 to 30 minutes, depending on your PC. It hasn't stopped: leave the window open and let it finish. Each stage prints a line starting == when it begins.

It worked if the last line starts with toolchain: and doesn't say MISSING. You can close Git Bash now. If you closed it early, run the same command again: it skips what's already downloaded.

3. Add the Vita system software

Back in PowerShell, with the path of your PSVUPDAT.PUP:

.\.venv\Scripts\python.exe pipeline\vitarecomp.py firmware "C:\path\to\PSVUPDAT.PUP"

It worked if the last line starts with firmware 3.74.

4. Add the English font

Copy your glenthregular.ttf into the project's packs\PCSG00351\english\fonts\ folder. It stays on your PC: git never uploads fonts from there.

Skip this step if you want the game in Japanese.

5. Add your game

Run the first command with your base game and its licence file, then the second with the 1.05 update:

.\.venv\Scripts\python.exe pipeline\vitarecomp.py add "C:\path\to\base-game.pkg" --license "C:\path\to\work.bin" --no-build
.\.venv\Scripts\python.exe pipeline\vitarecomp.py add "C:\path\to\update-1.05.pkg"

The first takes a minute. The second builds the game (about 15 minutes), then the English (about 15 minutes), and prints a lot as it goes. It worked if it ends with a line starting English localization ready. Without the font, it ends with a message about the font instead, and the game is built in Japanese.

Your game files are only read, never changed.

Your game is in folders or a ZIP, not PKG files

Unpack a ZIP first. Then give the folders instead of the PKG files: the folder ending app\PCSG00351 for the base game, and the one ending patch\PCSG00351 for the update.

Red text appears while it runs

PowerShell shows some of the tools' notes in red, for example one saying sce_sys\about\right.suprx is skipped. That is expected. A step has worked if it ends without an error message.

You added the font later, or the English stopped

Build only the English (about 15 minutes):

.\.venv\Scripts\python.exe pipeline\vitarecomp.py localize PCSG00351
6. Play

Double-click Play Phantasy Star Nova.bat in the project folder. See Playing for the controls and the in-game menu.

If something went wrong, see Troubleshooting.

Rebuilding after you change the code

Run bash dev/psn_build_all.sh from Git Bash. It runs the import, analyze, recompile and build stages again and writes a log for each to dev/psn-logs/.

Updating

Get the new version into the same project folder, keeping your dump folder:

  • If you cloned with git: run git pull in the project folder.
  • If you downloaded a ZIP: unpack the new ZIP over your project folder and let it replace the files. Don't unpack it to a new folder: the dump folder in your current one holds your game, the build and your saves.

Then, in PowerShell in the project folder, run:

.\.venv\Scripts\python.exe pipeline\vitarecomp.py update PCSG00351

It rebuilds only what the new version changed. Your game isn't imported again, and the English is rebuilt only when the English files changed. Most updates take a few minutes; one that changes the recompiler takes longer, about as long as the first build. Don't use step 5's add commands to update: they redo everything from the start.

Playing

The game opens in a 960 × 544 window, the Vita's own resolution, with the frame rate shown in the top-left corner (F1 cycles or hides it). Press F10 at any time for the in-game menu, where you can raise the resolution (up to 6×) and turn on 60 FPS. Both are saved for next time. 4× and above need a strong GPU.

ActionKeyboard and mouseController
MoveW A S DLeft stick
CameraMouseRight stick
Confirm (Circle) / Cancel (Cross)C / SpaceB / A
Square / TriangleF / EX / Y
L / RQ / R, or the mouse buttonsLB / RB
D-padArrow keysD-pad
Start / SelectEnter / TabMenu / View
In-game menuF10
QuitAlt+F4

Controls can be changed in F10 → Controls.

WhatWhere
Savesdump\decrypted\PCSG00351\recomp\fs\savedata0
Settingsdump\decrypted\PCSG00351\recomp\settings.ini
Logdump\decrypted\PCSG00351\recomp\session.log

Back up your saves from F10 → Saves before trying anything risky.

English

The English localization covers menus, dialogue, names, UI art and movie subtitles, with some lines still in Japanese. It lives in packs/PCSG00351/english/ as recipes: the English text, instructions for redrawing each UI image, and subtitle timings, each tied to the SHA-256 of the original file it applies to. No game file is in the repository. On your PC, step 5 (or vitarecomp localize PCSG00351):

  1. checks that your game and update archives are the unmodified Japanese originals;
  2. writes the English messages and redrawn UI images into a copy of the update's archive;
  3. removes the Japanese subtitles burned into the story movies, frame by frame, and draws English subtitles in their place;
  4. puts both archives in dump\decrypted\PCSG00351\lang\en and makes English the starting language.

Your original archives stay untouched. F10 → Game → Language switches between English and the original Japanese at any time. A later run only rebuilds what changed.

If your copy already carries a fan translation (such as Arks-Layer's English patch, often found merged into a "v1.05 English" copy), step 5 removes it and builds this English in its place:

  • the update's archive is rebuilt from the untouched base game, so none of the fan's text is left;
  • the story movies, which the fan translation re-encoded with its English under the Japanese line, have both lines erased before the English subtitles are drawn;
  • the opening warning screen, which the fan translation turns into its credits, is drawn again in English.

A fan copy no longer holds everything the original had. One UI texture is gone, so some screens can show noise. Eight lines that this English leaves untranslated show the base game's older Japanese wording. The story movies start from the fan's lower-quality re-encode. Step 5 says so when it runs. For the full result, use an unmodified Japanese copy.

Troubleshooting

ProblemWhat to do
no Windows toolchain at …Run step 2 again, and check that toolchain\llvm-mingw exists.
The firmware or the game went to %LOCALAPPDATA%\ProjectNativThe dump folder was missing. Create it (step 1) and run steps 3 and 5 again.
No suitable Python runtime found, or py asks you to run py install, in step 1You don't have the Python the command names. If py -0p lists 3.12, 3.13 or 3.14, use that number (for example py -3.14). Otherwise install Python 3.15 (with Python's install manager: py install 3.15). Then run step 1 again from its py line.
pip fails in step 1: on numpy, with Building wheel for capstone … did not run successfully, or with 'cmake' is not recognizedYour Python is newer than 3.15, 32-bit or ARM64. Install Python 3.15 with the Windows installer (64-bit) if you don't have it, delete the .venv folder and run step 1 again from its py -3.15 line. py -0p lists the Pythons you have: a 32-bit one shows -32.
Python not found when starting the gameCreate .venv as in step 1.
The update is refused or asks for a licenceAdd the base game first (step 5), with its work.bin or .rif.
English localization: … needs the Glenth Regular fontCopy glenthregular.ttf into packs\PCSG00351\english\fonts\ (step 4), then run vitarecomp localize PCSG00351.
English localization: this copy carries a fan translationExpected with a fan-translated copy: the fan translation is removed and this English applied, with the limits the message lists. For the full result, add an unmodified copy (step 5).
… is not the original Japanese base game archiveThe base game itself is modified. Add an unmodified copy (step 5).
The game is in Japanese after setupCheck the end of step 5's output for a line starting English localization, which says what stopped it.
A stage fails during the buildRead its log in dev/psn-logs/, or the command's output. Most failures name the file or setting at fault.
Black screen or crash at startUpdate your GPU driver. Check session.log for the last lines before the problem.

How it works

  1. Import: the game's executable and Sony's system modules are decrypted from your files and checked against the versions this project supports.
  2. Analyze: every function in the game's 28 MB executable is found, about 40,000 in all.
  3. Recompile: each function's ARM instructions are translated to C. The output is about 1 GB of C in 100 files.
  4. Build: Clang compiles that C together with the runtime into one Windows program.
  5. Run: the runtime provides what the game expects from a Vita: memory, threads, files, the GPU, sound, input and the system dialogs for saves and names.

Game-specific fixes, such as the 60 FPS frame pacing and the input hooks, live in packs/PCSG00351/. Project Nativ's architecture guide explains the recompiler and runtime in depth.

Repository layout

PathWhat's in it
packs/PCSG00351/The game pack: supported versions, code hooks, function seeds and shader recipes
packs/PCSG00351/english/The English localization: text, UI and subtitle recipes, and the scripts that build them
recompiler/The static recompiler (ARM to C)
runtime/What the recompiled game runs on: kernel and libraries, graphics, audio, input, UI
pipeline/vitarecomp.py, the driver for every stage
decrypt/Decryption of firmware and game packages
dev/psnova/Nova tools: localization builders, archive tools, subtitles, checks
dev/psnova/release/The standalone Windows release: