hachi23/unicorn_overlord_pc
Über uns
Native PC-Portierung von Unicorn Overlord (PS4)
Weitere ProjekteGemessener Sternzuwachs
- in 24h
- +2
- in 7 days
- +16
- in 15 days
- +43
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalUnicorn Overlord PC (vwport)
A native Linux and Windows port of the PlayStation 4 version of Unicorn Overlord.
⚠️ Graphics problems? Switch to shadPS4.
In the game: Insert (or R3+L2) > Performance > Renderer > shadPS4 > Apply and restart.
If that does not work: download the shadPS4 edition (Unicorn-Overlord-shadPS4-PC-windows.zip or Unicorn-Overlord-shadPS4-x86_64.AppImage) from the latest release.
The native renderer (the default since v1.6.0) is faster but experimental. shadPS4 is the renderer of v1.5.2 and earlier: slower, but longer tested. Since v1.6.1 the game asks which one to use on its first start (details).
No longer developed. Older builds are on the releases page. The source is GPL-2.0-or-later: you are welcome to fork it and change it however you like.
| Dump | State |
|---|---|
| CUSA36381 (Asia), app 01.04 (base game with the 1.04 update; Japanese, Chinese or, with the fan English patch, English text), or the Hong Kong 1.05 package | Prologue, chapter 1 and its first battle played; saving and loading work; every system function the game imports is implemented |
Not finished. The game has not been played to the end on the port. It holds 60 FPS on an RX 560X with the native renderer. See docs/KNOWN_ISSUES.md.
What it is
Not an emulator, and not a decompilation. The PS4 and a PC use the same kind of processor (x86-64), so the game's own executable from your dump runs directly on the PC's CPU. What a PC doesn't have is the PS4's operating system and GPU, so this project supplies both:
- Preparation (
scripts/): reads the game'seboot.bin, fixes up its addresses and links the game's bundled system modules into one image. - Loader (
src/probe.c): loads that image into memory, applies a few small per-game code patches (for example the render resolution) and jumps into the game's code. - Runtime (
src/runtime_*.c): about 700 PS4 system functions the game calls (memory, threads, files, audio, video decoding, controller, saves, and offline stand-ins for PSN), written for these games. - Renderer (
src/native_*.c,gpu/platform/, experimental): the game's calls into its graphics library are taken over and drawn directly with Vulkan; its GPU shaders are translated to SPIR-V from youreboot.binat the first start. There is no GPU emulation (see below). - Start program (
launcher/): a one-time setup that installs your dump, then starts the game; the in-game menu is Dear ImGui (gpu/platform/vw_overlay.cpp).
Only the dump listed above is supported.
No game files are included. You need a dump of your own copy. This project is not affiliated with Sony Interactive Entertainment, Atlus, Sega or Vanillaware.
Download
Download the latest release:
Unicorn-Overlord-x86_64.AppImage (Linux) or Unicorn-Overlord-PC-windows.zip (Windows).
It has both renderers, and you can switch between them in the game:
| Renderer | What it is |
|---|---|
| Native (default) | The port's own renderer (experimental), faster |
| shadPS4 | The emulated PS4 GPU of v1.5.2 and earlier, slower but longer tested |
The shadPS4 renderer is built from the
shadps4-edition branch.
Releases also carry the shadPS4 edition (Unicorn-Overlord-shadPS4-...), with only the shadPS4
renderer, so installs of it keep updating. New installs don't need it.
- Linux: make the
.AppImageexecutable (chmod +x) and run it. It keeps itsdata/folder next to the.AppImage. - Windows: extract the zip into its own folder and run the
.exein it. It keepsdata/beside itself. KeepLICENSEandlicenses/with it.
The release also has checksums, the source and matching debug symbols. See docs/RELEASING.md for how builds and releases are made.
Requirements
- 64-bit Linux, or Windows 10 (1903+) / 11.
- A Vulkan 1.3 GPU.
- Native renderer: it needs buffer device addresses, descriptor indexing, 64-bit shader
integers, subgroup ballot/vote and push descriptors (AMD, NVIDIA and Intel GPUs of the last
years with a current driver). If one is missing, the game stops at start and the log names
it (
Native: <GPU> has no ...). - shadPS4 renderer: it needs sparse buffers (
sparseBinding,sparseResidencyBuffer). AMD and NVIDIA have them. On Linux, Intel integrated graphics older than Gen12 (UHD 620 and similar) lack them.
- Native renderer: it needs buffer device addresses, descriptor indexing, 64-bit shader
integers, subgroup ballot/vote and push descriptors (AMD, NVIDIA and Intel GPUs of the last
years with a current driver). If one is missing, the game stops at start and the log names
it (
- Your own dump of the game with the 1.04 update merged in (or the Hong Kong 1.05 package), as a folder containing
eboot.bin,sce_module,sce_sysand the.CPKfiles (about 7 GB).
Playing
First start: choose your dump's folder. The start program checks it (title and version),
installs it into data/game and starts the game. On the same drive the install takes a
moment and needs no extra space (hard links); from another drive it copies about 7 GB with a
progress window, and a cancelled install continues on the next start. Later starts go
straight into the game; preparing the game image is skipped while nothing changed.
Packaged builds contain the start program and the game executable. From the source tree:
python launcher/unicorn_launcher.py
The game's own System → Options screen (from the title or the in-game menu) has a PC
section at the end: display mode, VSync, render resolution (applied at the next
start), FSR 1 upscaling, sharpening and its strength, button icons, the stick dead zone and the
performance overlay.
Settings are saved in vw.ini; Restore Defaults resets them too.
Every render resolution change requires a restart. Press Insert to open the overlay menu, change the resolution under Performance, then choose Apply and restart. If you change it in the game's System → Options → PC section, close and relaunch the game.
In game, Insert (R3+L2 on a controller) opens the port's overlay menu with every setting, and a Quit game button at the bottom. The game's own menus also get an Exit Game entry: on the title menu and in the System submenu of the battle map's Stage Menu and the world map's Overworld Menu (with the game's Yes/No question). The menu has four tabs:
- Image: display mode, VSync, Anime4K, FSR 1 and RCAS sharpening. Anime4K (Fast or Quality) redraws the game's line art sharper; when the window is more than 1.2 times the game's image both ways, it also doubles the image before FSR 1 and the scaling. It costs GPU time per frame, measured on an RX 560X-class GPU at 1080p: Fast 3.3 ms, Quality 7.5 ms (a frame at 60 FPS has 16.7 ms), so Quality is meant for a stronger GPU.
- Performance: FPS limit (Off, 50, 45, 40 or 30: less GPU work, heat and battery use; the game keeps its normal speed; on a 60 Hz screen 30 is the smoothest), render resolution and, on the shadPS4 renderer, frames queued and shader compilation.
- Overlay: the performance overlay, language choice, Unlock True Zenoiran difficulty
(offers True Zenoiran at the New Game difficulty prompt after Palevia Harbor without needing a
cleared save;
unlock_true_zenoiran=1invw.iniorVW_UNLOCK_TRUE_ZENOIRAN=1), and update checks. - Controls: keyboard and controller button bindings, saved in
vw.ini, and the button icons the game shows: Auto (follows the controller in use), PlayStation, Xbox or Nintendo. The Xbox and Nintendo icons are the game's own, from its Xbox and Switch releases. The stick dead zone (15% by default) stops sticks that rest off centre from drifting: raise it if the cursor or camera still moves by itself.
Settings are kept in vw.ini in the data directory. The Overlay tab also has a
Change game folder button to reopen setup.
Updates: at start the program looks for a newer release on GitHub and asks before downloading it; the update keeps your settings, saves and installed game. Turn it off with Check for updates at start in the Insert menu.
Something wrong? See docs/KNOWN_ISSUES.md and
docs/TROUBLESHOOTING.md. Every run writes a log to logs/ in the
data directory. When the game stops with an error, the start program offers to save a
diagnostics ZIP (the run log with your folders redacted, shown for review first) to attach to
your issue. No game files or saves are included.
Render resolution
The game renders at 1920×1080 by default. Set another size in the menu (Performance, applied on
restart) or with VW_RENDER_SCALE: 720p and 900p for weak GPUs, 1800p and 4K
for supersampling: the game is drawn larger and averaged down to the window, which gives smooth
edges and sharper art (the port has no separate anti-aliasing setting; the game's art is mostly
2D sprites, which anti-aliasing filters blur). Every size uses the game's own PS4 Pro path (VW_NEO_MODE=1)
at that size, which lays out the 2D layers from the target size, so the framing and the HUD stay
the same at every resolution.
Ultrawide (experimental)
Aspect ratio in the menu (Performance, applied on restart), aspect_ratio= in vw.ini or
VW_ASPECT_RATIO: 21:9 (2560×1080 at native resolution) or 32:9 show more of the battle map
and scenes at the sides instead of stretching them; menus and text stay 16:9 in the middle.
VW_ASPECT_RATIO also takes any W:H, such as 43:18 for 3440×1440. It combines with the
render resolution: 4K at 21:9 renders 5120×2160. On a 16:9 screen a wider image gets black bars
above and below.
It is experimental: it was made on a 16:9 laptop and has not been tested on an ultrawide monitor. Reports are welcome, whether it looks right or wrong. Open an issue with the Ultrawide report template and attach:
- the diagnostics ZIP: start the program with
--export-diagnostics(or answer Yes in the error dialog after a crash). It holds the log with theAspect ratio:andRender scale:lines and yourvw.inisettings, with your folders redacted. - screenshots of the battle map, a story scene with text, a menu, and anything stretched, cut off or misplaced (Win+Shift+S on Windows, Spectacle or your desktop's tool on Linux);
- your monitor's resolution and the display mode (Windowed, Borderless or Fullscreen).
Renderer (experimental)
Since v1.6.0 the port draws with its own renderer by default instead of the shadPS4 GPU emulation it used before. The game's calls into its graphics library are recorded and drawn directly with Vulkan; the PS4 command buffers are no longer decoded. It is faster, most of all on weak GPUs: on an RX 560X the New Game opening holds 60 FPS where v1.5.2 dropped to 36-54, and on a Vega 8 integrated GPU it runs 46-60 FPS where v1.5.2 ran 38-59.
On its first start it translates the game's shaders from your eboot.bin into
<user data>/native_shaders (a few seconds; again after a game or port update). Nothing from the
game is shipped with the port. Every display option works with it: render resolution, aspect
ratio, FSR 1, sharpening and Anime4K, and so do the text languages, the English patch, mods and
patches. The menu shows Renderer: Native (experimental) under About.
It is experimental. It was compared picture by picture with v1.5.2 through the prologue and
chapter 1 (story scenes, the battle map, menus, saving and loading, the English patch, French
from the Switch text, 21:9 and 32:9, the Hong Kong 1.05 package) on AMD GPUs on Linux. Windows,
NVIDIA and Intel GPUs, the Steam Deck and later chapters have not been checked by the developer.
The port is no longer developed. If something is missing or looks wrong,
switch to the shadPS4 renderer. For anyone forking the port: the log lines
that start with Native: and docs/dev/NATIVE_RENDERER.md are the
place to start.
Switching the renderer
In the game, press Insert (or R3+L2 on a controller), open Performance, set Renderer to shadPS4 or Native (experimental), and choose Apply and restart. The game closes and starts again with the other renderer. Progress since your last save is lost. Your saves and settings are shared by both renderers.
The first start of v1.6.1 or later (after an update too) asks once which renderer to use.
If the game does not start with the new renderer, the next start goes back to the previous one
by itself. To choose the renderer before the game starts, set renderer=shadps4 or
renderer=native in data/vw.ini. The log says which one ran (Renderer: ...).
Other languages (experimental)
New to this? Start with docs/LANGUAGES.md: which language you get, how to change it, and how to add more, step by step.
With the Switch version dumped from your own console, the game also runs in English, French,
German, Italian or Spanish: copy that language's Unicorn_XX.CPK from the Switch dump into
data/languages/ and pick it under Text language (Insert menu). Fan translations made for
the Switch version (Unicorn_US.CPK, such as the Brazilian Portuguese one) and translations you
write yourself as JSON files work as mods in data/mods/. Only the title menu and the opening
dialogue have been checked so far. Step by step:
docs/LANGUAGE_MODS.md. Reports are welcome with the
Translation report issue template.
DLC
Put the DLC you own in a dlc folder in the data directory (next to vw.ini): the PS4
package as it is (for example HP0177-CUSA36381_00-PRIVILEGEDEMBLEM-A0000-V0100.pkg), or its
extracted folder. A .zip must be unpacked first. At the next start the log lists each one
(DLC: PRIVILEGEDEMBLEM (...)) and the game sees it as owned. Only the package's name is read:
Unicorn Overlord's DLC unlocks content that is already in the game. The game's DLC menus
show what it unlocked.
Keyboard
The game's prompts show controller buttons (Xbox letters when you play with the keyboard only). Press F1 in the game to see which key is which button, with your own bindings; change them in the port's menu (Insert) > Controls. The defaults:
| Key | Button |
|---|---|
| WASD | left stick |
| Arrows | right stick |
| Space | Cross |
| Left Shift | Circle |
| E | Square |
| Q | Triangle |
| 1 and 3 | L1 and R1 |
| R and F | L2 and R2 |
| Z and C | L3 and R3 |
| I, K, J, L | d-pad |
| Enter | Options |
| Tab (Backspace: its right side) | touchpad |
| Insert | the port's menu |
| F1 | the key list |
Mouse
On the battle map the mouse moves the game's cursor (the glove); the system pointer is hidden
over the window there. Left click is Cross and right click is Circle, everywhere. Menus are
still chosen with the keys or a controller: the game has no pointer in its menus. The click
that brings the window to the front is not passed to the game. VW_MOUSE=0 turns the cursor
movement off. Works with v01.04 and the Hong Kong 1.05 package.
Building
Linux needs GCC or Clang, CMake, Ninja, Python 3, and the Vulkan, SDL3 and FFmpeg development
packages. shell.nix lists them.
git clone --recursive https://github.com/hachi23/unicorn_overlord_pc
cd unicorn_overlord_pc
bash build.sh # out/vwport and out/gpu/libvwgpu.so
VW_GAME_DIR=/path/to/CUSA36381 bash run.sh # builds, prepares the game and starts it
run.sh builds first and then runs run.py, which does the same on every platform. run.py
prepares the game image in out/, applies the mods and patches, and starts vwport. Saves
and shader caches go to user/ in the data directory (VW_DATA_DIR, by default the port
folder).
On Windows, build in an MSYS2 CLANG64 shell. See packaging/windows/README.md.
To package a release, run python packaging/package.py unicorn. On Linux it builds
packaging/deps.sh (pinned static FFmpeg with only the decoders the port uses, SDL3, zlib; a few
minutes the first time) and a vwport with them and the GPU library linked
in (build.sh --static), which needs only libc, libm and the Vulkan loader. dist/<Title> PC/
then holds the start program, _internal/ (its Python runtime, the runtime scripts and
vwport), LICENSE, licenses/ and README.txt. Releases also retain matching debug symbols and an archive of the source.
Tests
python -m unittest discover -s tests
bash build.sh --test # C tests; the shader translator test needs spirv-val
bash tools/native/check.sh [path/to/eboot.bin] # everything, and every game shader through spirv-val
The C++ tests are EXCLUDE_FROM_ALL targets in gpu/CMakeLists.txt. For
example:
ninja -C out/gpu gpu-platform-test && out/gpu/gpu-platform-test
To check that every system function a game imports is implemented, without starting it:
out/vwport out/boot-linked.bin --app0 <game folder> --check-imports
How it works
| Part | Where | What it does |
|---|---|---|
| Preparation | scripts/ |
Reads eboot.bin, applies its relocations and links the game's own system modules into one image (cached in out/ between starts) |
| Loader | src/probe.c |
Loads the image, applies the per-game code patches (render resolution) and starts the game's code |
| Runtime | src/runtime_*.c |
The PS4 system functions: memory, threads, files, audio, video, controller, saves and services |
| Renderer (experimental) | src/native_rec.c, src/native_vk.c |
Hooks the game's graphics library (Gnmx), records each frame and draws it with Vulkan (notes) |
| Shader translator | src/native_shader.c, src/native_shader_spirv.c |
GCN shaders from eboot.bin to SPIR-V at the first start (tools/native/ns_dump.c from the command line) |
| Graphics platform | gpu/platform/ |
Window, Vulkan device, presenter (FSR 1, CAS, Anime4K), and the PS4 libraries around drawing: GnmDriver, VideoOut, event queues |
| In-game menu | gpu/platform/vw_overlay.cpp |
The Dear ImGui menu and FPS overlay; settings in gpu/platform/vw_settings.cpp |
| Per-game settings | scripts/game_profiles.py |
Launch defaults and GPU workarounds for each title |
| Mods and patches | scripts/mods.py, scripts/patches.py |
Loose-file mods and XML code patches (docs) |
| Start program | launcher/ |
One-time setup (check and install the dump), then starts the game |
| Game hooks | src/unicorn_*.h |
Render size, button icon layouts |
Developer notes (state, open problems, reverse-engineering findings) are in docs/dev/: handoff, native settings research, renderer and its tools, Ghidra tools.
Contributing
See CONTRIBUTING.md. Bugs: open an issue with the bug report template and attach the run log.
Credits
This port stands on the work of others. In order of descent:
deadinside28: bloodborne_pc, the original native port that this approach comes from.
Supermedo: bloodborne_pc for Windows.
Felipe Prado: gow3_pc, the God of War III port this repository was forked from.
cuesta4: shadPS4 fork, for its GNM blend rewrite, depth/stencil state and image aliasing fixes.
shadPS4 team: the shadPS4 video core and shader recompiler, which drew the game up to v1.5.2 and still does in the shadPS4 edition, and its PS4 function names and library layouts, which the port still follows (see gpu/VENDOR.txt).
yogesh1239: CI builds for Windows and Linux, run logs, contributing docs and templates.
rufaswan: Web2D_Games, whose notes on Vanillaware's sprite files (FMBS) made the Xbox and Nintendo button icons possible.
XexuWilder submitted portable launcher paths in #116.
CozyM3dia submitted the native renderer’s Screen fit option in #118.
Libraries and tools used:
| What | Used for |
|---|---|
| LibAtrac9 | ATRAC9 audio decoding |
| FFmpeg | Movies (H.264/HEVC), MP3/AAC audio, PNG |
| SDL3 | Window, keyboard and controllers |
| Dear ImGui | In-game menu and overlay |
| glslang | Compiles the presenter's shaders at build time |
| SPIRV-Tools | spirv-val checks the translated shaders in the tests |
| Vulkan headers and loader | Graphics API |
| AMD FidelityFX FSR 1 and CAS | Upscaling and sharpening |
| Anime4K | Line-art restore and upscale (Image tab) |
| zlib | Support library |
| DejaVu fonts | Menu font |
| Pillow, PyInstaller | Launcher images and packaging |
License
GNU GPL v2 or later (LICENSE). Third-party components keep their own licenses.
Unicorn Overlord is a trademark of its owners. This project contains no game code or assets; it only runs a copy you dumped yourself.
Ähnliche Projekte entdecken
Wird geladen…