Xenosaga Trilogy Port
Xenosaga Trilogy Port is a native Linux port of the Xenosaga games for the PlayStation 2 with native widescreen and an Event Theatre.
- Type: PC port
- Game: Xenosaga Episode I: Der Wille zur Macht
- Runs on Linux
- By xenosagaport
- Latest release v0.1.5, 2026-11-29
- Source: https://github.com/xenosagaport/xenosaga-trilogy-port
README
Xenosaga Trilogy Port
Xenosaga Trilogy Port is a native Linux port of the Xenosaga games for the PlayStation 2, with one launcher and one AppImage for the whole trilogy.
Built with AI. The port, the launcher and the tools in this project were written with AI assistance (Claude, by Anthropic, through Claude Code), on top of the OpokXeno decompilations, which are themselves developed with AI assistance.
Bring your own discs. No game data is included. You need your own legally obtained NTSC-U (USA) discs, as
.isoimages.
A note from the author
A huge thanks to OpokXeno: without their decompilations this would not be possible.
This is a personal project, several weeks of work done with AI, made so someone close to me could experience these games. I'm sharing my progress for others to enjoy; it isn't meant to replace any other porting effort.
- Use it freely. This project's code is free software under the GPL-3.0: use it, change it and share it, as long as you credit this project and keep what you build on it open source under the same licence (see License).
- Issues welcome. Report problems on the Issues page and I'll keep working on them until I'm happy with the result.
- Windows is planned for later, but feel free to try a Windows port yourself with what's here.
- Episode II reached a playable state thanks to the work on Episode I, though it still has several known issues.
Highlights: native widescreen (16:9, showing more of the scene rather than stretching it), difficulty options, an Event Theatre to rewatch cutscenes, support for custom (e.g. upscaled) movies, and, in Episode I, speed options and the ability to mash through battle animations, which make it much smoother to play.
| Game | Status | Discs |
|---|---|---|
| Xenosaga Episode I: Der Wille zur Macht | playable | 1 (SLUS-20469) |
| Xenosaga Episode II: Jenseits von Gut und Böse | playable, in testing | 2 (SLUS-20892, SLUS-21133) |
| Xenosaga Episode III: Also sprach Zarathustra | coming soon | 2 (SLUS-21389, SLUS-21417) |
Even the few pieces of the original programs the ports need (VU microcode) are read from your disc when a game starts, and checked against hashes; every release is checked for game bytes before it is published (see No game data).
Credits
- The games' code comes from the matching decompilations by OpokXeno: xsg-i-decomp (Episode I), xsg-ii-decomp (Episode II), xsg-iii-decomp (Episode III, in progress).
- Third-party software in the AppImage: THIRD-PARTY.md.
- Xenosaga is a trademark of Bandai Namco Entertainment. This project is not affiliated with or endorsed by Bandai Namco or Monolith Soft.
Playing
- Download
Xenosaga-Trilogy-<version>-x86_64.AppImagefrom the Releases page. - Make it executable (
chmod +x, or Properties → Permissions) and run it. To play from Steam with a controller: Steam → Add a Game → Add a Non-Steam Game → Browse → the AppImage. - In the launcher, pick the episode, then its disc image(s). The launcher looks for them in the AppImage's folder, your home, Games, Downloads, Desktop and Documents folders; Browse finds them anywhere. Episode II's disc 2 is only needed when the story reaches it.
- Launch. Gamepad, keyboard and mouse all work in the launcher.
- Controls: see Remapping controls below.
The first time Episode I is launched, the launcher converts its movies and
streamed music into mods/ep1/Original (about 2 minutes and 6 GB), once.
Needs a 64-bit Linux with OpenGL graphics. On NVIDIA laptops, also the 32-bit
NVIDIA GL library (Pop!_OS/Ubuntu: sudo apt install libnvidia-gl-<version>:i386;
the launcher tells you when it is missing).
Remapping controls
Every button can be moved to another controller button, trigger or key, per episode, from the launcher:
- In the launcher, select the episode.
- Go to the Controller row. Left/Right changes the button icons the games show (PlayStation, Xbox or Nintendo Switch).
- Press A (or Enter) on that row to open the Controls screen. It lists the 16 PS2 buttons, each with what it does in that episode, its original PS2 button, and the controller button and keyboard key it is on now.
- Pick a cell (Left/Right switches between the controller and keyboard columns), press it, then press the new button, trigger or key. Esc, or waiting a few seconds, cancels. If that button or key is already in use, the two are swapped.
- Restore defaults puts everything back.
Each episode keeps its own mapping, saved in
~/.local/share/xenosaga-pc/<ep1|ep2>/controls.txt.
Limitations for now:
- Episode I's on-screen button prompts follow your mapping; Episode II's still show the original buttons.
- The analog sticks can't be remapped.
- Remapping is done in the launcher; there is no remap screen inside the games.
Bringing your PCSX2 saves
If you played on PCSX2, the launcher copies those saves onto the port's memory card 1:
- In the launcher, go to Saves → Import from PCSX2….
- It lists the memory cards PCSX2 keeps on this computer (the normal PCSX2 folder, the Flatpak version, EmuDeck and RetroDECK, and the folder set in PCSX2's settings), with how many Xenosaga saves each holds. Choose a memory card or save file… finds one anywhere else.
- Open a card. Import all new saves copies every save that is not on memory card 1 yet, or pick one save to copy just that one.
All three kinds of PCSX2 memory card work: file cards (.ps2, 8 MB and the
16/32/64 MB sizes, also .mcd/.bin dumps), folder cards, and single
exported saves (.psu). PS1 cards are recognised but can't hold PS2 saves.
PCSX2's cards are only read, never changed. Each save is checked byte for byte
before it is put on memory card 1. Xenosaga uses fixed save slots, so if memory
card 1 already has a different save with the same name, the import leaves it
alone; pick that save on its own to replace it. The one there now is moved to
~/.local/share/xenosaga-pc/memcard0-replaced/, not deleted.
What you supply
| What | Needed? |
|---|---|
Your disc images (.iso, NTSC-U), chosen in the launcher | yes |
| HD texture packs, upscaled movies, HD fonts, Event Theatre previews | optional add-ons |
Add-ons (HD textures, movies, music, screens)
Optional packs made from the game are never part of this repository or its
releases. If you have them as .zip or .7z: launcher → Add-ons →
Install an add-on pack, or drop the file on the launcher window, or pass it
to the AppImage. The launcher reads the archive, shows what it found (HD
textures, movies, music and sound, title/UI screens, Event Theatre data) and
which game it is for, and asks "Install these into Episode I's mods folder?"
before writing anything.
- Recognised layouts:
mods/<ep>/Replacements/<kind>/…,mods/Replacements/<kind>/…,<kind>/…(kind = textures, movies, music, screens, theatre), PCSX2 texture packs (SLUS-xxxxx/replacements/…, e.g. the community Xenosaga II/III packs, installable straight from their.7z), andtheatre.pak. An optionalxenosaga-addon.ini(game=ep1|ep2|ep3,name=,id=) names the pack and its game. - Only media files are unpacked (images, video, audio,
.txt,.pak); programs, scripts, links and paths that point outside the mods folder are left out. It checks the free space first and shows progress. - Files you already have are kept unless you choose Replace; replaced files
are kept in
mods/<ep>/addons/<pack>.backup/. - To remove a pack: Add-ons → select it → Remove. The list of what each pack
installed is
mods/<ep>/addons/<pack>.files. - The reader is
bsdtarfrom libarchive (BSD-2-Clause), bundled in the AppImage.
mods/ sits next to the AppImage; each game has its own folder
(mods/ep1, mods/ep2).
Saves and settings
| Location | |
|---|---|
| Memory card 1, shared by all episodes (like a real PS2 card; Episode II finds your Episode I clear data on it) | ~/.local/share/xenosaga-pc/memcard0/ |
| Autosaves, per game | ~/.local/share/xenosaga-pc/autosaves/ep1/, .../autosaves/ep2/ |
| Mod Options defaults, per game | ~/.local/share/xenosaga-pc/ep1/, .../ep2/ |
| Launcher settings (game, discs, options per game) | ~/.config/xenosaga-pc/trilogy.ini |
| Log of the last run | ~/.local/share/xenosaga-pc/last-run.log |
Coming from the Episode I-only AppImage: your saves stay where they are. On
first start the launcher takes over launcher.ini, moves autosave/ to
autosaves/ep1/, mod-options.dat to ep1/ and mods/Original +
mods/Replacements to mods/ep1/, and leaves links at the old places, so
the older AppImage still works. Nothing is deleted. Memory card slot 2 is
empty in both ports (the 8 MB card 1 holds every episode's saves).
Legal / what you need
- Your own discs. The port runs only from images of discs you own (NTSC-U: SLUS-20469; SLUS-20892 + SLUS-21133). Nothing here helps you get game files, and no BIOS is needed or included.
- No game data in this repository or its releases: no game executables,
disc images, game assets, screenshots or files derived from them (HD packs,
upscaled movies, preview pictures).
scripts/check_no_game_data.shenforces this for every release build. Keep add-on packs off GitHub. - GitHub limits: repository files stay far below 100 MB (no Git LFS used); the AppImage (about 100 MB) is well under the 2 GB release-asset limit.
- This project's licence. The code written for this project is GPL-3.0 (see License).
- Code licences. The game code comes from the OpokXeno decompilations, which have no licence file as of this writing: their code remains their authors', and this project credits them above. Bundled third-party software keeps its own licence (THIRD-PARTY.md); FFmpeg is GPL-3.0, so its source is offered with each release.
- Trademarks. Xenosaga is a trademark of Bandai Namco Entertainment; this is an unofficial fan project, not affiliated with or endorsed by Bandai Namco or Monolith Soft.
Building
The ports live in the decompilation repositories (one per game); this
repository holds the launcher, the packaging and the update script, and
takes each game from a branch of its repository (games.conf).
Requirements (Arch names): gcc-multilib lib32-sdl2 ninja python python-pillow noto-fonts ffmpeg, plus appimagetool and its runtime-x86_64
(APPIMAGETOOL=, RUNTIME=). Each game's decomp must have its matching PS2
build (build/), made from your own disc's SLUS/OVL files as its README
explains; the PC build reads symbols from it.
scripts/update.sh # merge each game's branch, build both, pack the AppImage
scripts/update.sh --no-merge # rebuild and pack what games/ holds now
scripts/update.sh ep2 # only refresh Episode II (Episode I is packed as built)
DEST=~/Games scripts/update.sh # also copy the AppImage there
games/ep1 and games/ep2 are git worktrees of the game repositories on
branches trilogy-ep1 / trilogy-ep2. Those branches follow the port branches
named in games.conf and add what the trilogy needs (the data-free link glue,
XENO_MOD_OPTIONS). update.sh merges the port branch into them, so working
on a port as usual and running scripts/update.sh is all it takes. If a merge
conflicts, resolve it in games/<ep> and run the script again.
scripts/make_appimage.sh --personal also packs the Event Theatre previews,
for your own machines only. Never publish a -personal AppImage.
Adding Episode III
- Make its port branch build
build-pc/xenosagalike the others, with the same link glue changes (thetrilogy-ep2commit "data-free link glue" shows them:pc/tools/link_glue.py,pc/configure.py,pc/src/pc_vu1.c). - Add its line to
games.conf(ep3 ...). - In
launcher/launcher.c, setavailableto 1 in Episode III'sgames[]entry (its disc names and boot files are already there). - In
scripts/make_appimage.sh, copygames/ep3/build-pc/xenosagaasusr/bin/xenosaga3.
Releasing on GitHub
- Create an empty repository on GitHub named
xenosaga-trilogy-port, with the description and topics from docs/github-description.md, then:git remote add origin git@github.com:<you>/xenosaga-trilogy-port.gitandgit push -u origin main. - Bump
VERSION, commit, runscripts/update.sh, and tag the commit:git tag v0.1.0 && git push --tags. - On GitHub: Releases → Draft a new release → choose the tag → attach the
AppImage from
dist/→ Publish. Or with the GitHub CLI:gh release create v0.1.0 dist/Xenosaga-Trilogy-*-x86_64.AppImage --notes "...". - Upload only release AppImages (not
-personal), and keep the HD downloads (textures, movies, previews) out of the repository and its releases. - FFmpeg in the AppImage is GPL-3.0: add a link to the source of the bundled
version to the release notes (the version is in
usr/share/doc/xenosaga-pc/THIRD-PARTY-BUNDLED.txt; Arch keeps its sources at https://gitlab.archlinux.org/archlinux/packaging/packages/ffmpeg, upstream tarballs at https://ffmpeg.org/releases/), or attach that tarball.
There is no GitHub Actions build: the ports need the games' matching PS2 builds, which come from your discs, so a release is built on your machine.
No game data
- The PC link glue used to compile a few retail byte arrays straight into each
game (VU1 microcode and small tables the decomp names but does not spell
out). Now it emits zero-filled arrays plus a table of
(array, file on the disc, offset, size, FNV-1a hash), and the game fills them
from
SLUS_xxx.xx/OVxx.OVLin your disc image beforemain(). A wrong or missing disc stops with a message instead of running broken. - The VU1 ahead-of-time translator kept a copy of each microcode image to recognise uploads; it now keeps only the layout and a hash, and rebuilds the image from the filled arrays at start-up.
- Event Theatre previews (game screenshots) are an optional download.
scripts/check_no_game_data.sh <AppDir or files>runs in every release build. It looks for byte runs of 32+ bytes shared with the games' original programs, and fails unless a run is a string, a table that the public decompilation's own C source spells out (the same bytes are in the objects compiled from it), or a standard table in a distribution library (glibc's libm, codec libraries) that the PS2 program also linked in. The full list is written tobuild/game-data-check.txt.
What remains in the binaries is code and data compiled from the public decompilation sources and the port's own code, the same material the decompilation repositories publish.
Layout
launcher/ the launcher (C + SDL2, 32-bit like the games); addons.c: add-on installer
appimage/AppRun the AppImage entry point
scripts/ update.sh, make_appimage.sh, check_no_game_data.{sh,py}, find_runs.c
games.conf which repository/branch each game comes from
games/ the game worktrees (not tracked here)
VERSION release version
docs/ GitHub description texts
THIRD-PARTY.md bundled software and licences
The launcher's font is Noto Sans (SIL Open Font License).
License
The code written for this project (the launcher, the scripts, the AppImage files) is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3 or (at your option) any later version. See LICENSE. Copyright (C) 2026 xenosagaport.
Not covered by this licence:
- The decompiled game code in the Episode I/II ports comes from the OpokXeno decompilations, which have no licence file of their own; it remains its authors'. Only the PC port's own additions on top of it are GPL-3.0 (see xenosaga-ep1-port).
- Bundled third-party software and fonts keep their own licences (THIRD-PARTY.md).
- Xenosaga itself, its game data and its trademarks belong to their owners.
Thanks to the decompilation contributors
These ports exist because of the people who decompiled the games. Thank you to everyone who has contributed to the OpokXeno decompilations (from each repository's GitHub contributor list):
- xsg-i-decomp (Episode I): OpokXeno, LinuxJessi, mpetereit, derwetterfrosch, TreeThugga, ZakyPew
- xsg-ii-decomp (Episode II): mpetereit, LinuxJessi, OpokXeno, jessicaboggia, derwetterfrosch
- xsg-iii-decomp (Episode III, in progress): mpetereit, OpokXeno
The decompilations, and so these ports, also rely on these projects, which all three decompilations thank: splat, spimdisasm, Rabbitizer, m2c, decomp-permuter, ps2dev/binutils-gdb, SSXModding/ps2-ee-toolchain, decomp.me's compiler collection and PCSX2 (also the reference for the HD texture pack format these ports read).
If you contributed and are missing here, or would rather not be listed, please open an issue.