Toaru Majutsu Virtual On - recompilation
Toaru Majutsu Virtual On is a Windows recompilation of the PlayStation 4 game A Certain Magical Virtual-On with menus, battles, story mode, movies, and sound working.
- Type: PC port
- Game: A Certain Magical Virtual-On
- Runs on Windows
- By kitaaaaaa
- Latest release v0.1.0, 2026-11-16
- Source: https://github.com/kitaaaaaa/ToaruMajutsuVirtualOn-recomp
README
A Certain Magical Virtual-On: Windows recompilation
A native Windows port of the PS4 game A Certain Magical Virtual-On (とある魔術の電脳戦機), made by statically recompiling its code. No game files are included: you need your own copy.
How it works
- Recompiler: the game's x86-64 code is translated to C and compiled into
librecomp.dll. Anything it can't translate falls back to an interpreter. - Runtime (
vox.exe): loads the game and stands in for the PS4's system libraries: files, threads, memory, saves, controller, audio, movies. PSN features are disabled, so play is offline. - Renderer: shadPS4's PS4 graphics stack, running on Vulkan.
- Translations: applied as an overlay while the game reads its archives. Your game files are never modified.
Status
Menus, battles, story mode, movies and sound work. An Xbox controller is supported through XInput, with no rumble yet. This is early software: expect bugs.
Building
You need Windows, a Vulkan GPU, and about 10 GB free plus 12 GB for the game. Your game must be a fake-signed .pkg or an already extracted folder containing eboot.bin.
The easy way: double-click Launch.bat. The first time, it asks for your .pkg or the game's eboot.bin, builds everything and starts the game. Later double-clicks just start the game, and options passed to it go to vox.exe, for example Launch.bat --english.
- Nothing to install: it downloads what's missing, Python and Git included. Without Visual Studio, it fetches Microsoft's C/C++ headers and libraries with xwin, which asks you to accept Microsoft's license first.
- Cleanup: once the game is built, it deletes the tools and sources it downloaded. Rebuilding later downloads them again.
- If a step fails: it keeps its downloads, so running it again carries on from there.
By hand, with Git, Python 3 and Visual Studio's "Desktop development with C++" installed:
port\setup.ps1 # fetch tools and sources
port\build_all.ps1 # build the engine
port\prepare_game.ps1 -Pkg game.pkg # or: -Game <folder>
Playing
Run port\out\vox.exe, by double-clicking it or from a command line with these options:
| Option | Effect |
|---|---|
--english | Full English translation |
--engrish | Budget English translation |
--user-tl | Installed fan translation, see below |
--unlock-all | Everything unlocked. Combines with any of the others |
--debug | The developers' debug menu and performance overlay, see below |
--neo | Run as a PS4 Pro: the game draws more objects in busy scenes |
--fps <N> | Run at up to N frames a second instead of 60, see below |
--timeout <seconds> | Close the game after this long. By default it stays open |
--app0 <folder> | Use the game files in this folder instead of extracted\uroot |
--user <folder> | Keep saves in this folder instead of port\work\user |
With none it plays in Japanese. The log is port\work\run.log, and the next launch overwrites it.
--unlock-all opens every robot, colour, mission, title and gallery item, sets your points to 9,999,999, marks the main story chapters cleared and turns on the DLC stories and colours. It changes your save as soon as the game next saves, and turning it off won't undo that, so back up port\work\user\savedata first if you care. Some colours and gallery entries may have no files on the disc, so they could misbehave.
Face buttons match by position, so Xbox B is PS4 Circle, which confirms in this version.
Debug menu. --debug starts at the developers' "VOX DEBUG ROOT MENU" instead of the logos. Move with the D-pad and launch an entry with Circle: Battle goes straight into a match, Title to the title screen. In a game, hold L1+R1+Options to return to the menu. The overlay in the corner shows the game's CPU and GPU times. Its FPS figure is the display mode's rate, not a measurement.
High frame rates. --fps 120 runs the game at up to 120 frames a second at normal speed, if your PC keeps up and your display is set to 120 Hz or more. The game was made for a fixed 60, so a few things it times in whole frames needed fixes, and more may turn up. Without --fps everything runs as on a PS4.
Exporting the robot models
analysis\scripts\export_models.py turns every robot, its colours, weapons and motions into glTF files you can open in Blender, from your own copy of the game. The steps and the format notes are in PASSDOWN.md and analysis\scripts\MODEL_FORMAT_NOTES.md. The output is the game's data: don't share it.
Using the Vita fan translation
MakutaMaster962 (also known as The World - 2.0) spent over three years on a real English translation of the PS Vita version. It isn't included here, but you can play its text on this port. You need your own copy of the Vita game, with its v1.04 update:
-
Get the
.xdeltapatches from the GBAtemp thread. -
Copy these Vita files into one empty folder. The story DLCs are optional.
File Patch disc00.cpk, fromux0\app\PCSG01089\cpkBase Game\disc00.xdeltaPatch01.cpk, fromux0\app\PCSG01089\patch_cpk1.04 Update\Patch01.xdeltaDLC_Story_A.cpktoE, fromux0\addcont\PCSG01089\DLCXSMPXXXXXX...\dataDLCs\...\DLC_Story_A.xdeltatoE -
Apply each patch to its copy with Delta Patcher.
-
Install the result. This also accepts a
.rar,.7zor.zipof that folder (archives need 7-Zip):port\install_vita_patch.ps1 -Patch <folder> -
Play with
vox.exe --user-tl.
Only text carries over. The patch's translated graphics are in the Vita's format, so art with Japanese baked in stays Japanese. The author asks for credit if you post gameplay.
Credits and license
GPL-2.0-or-later, see LICENSE. Built on shadPS4, bbcpu, bloodborne-recomp, LibOrbisPkg, Zydis and SDL. Not affiliated with SEGA, Kadokawa or Sony. Development notes are in PASSDOWN.md.