# Xenosaga Episode II Python Extractor Open up **Xenosaga Episode II: Jenseits von Gut und Böse** (PS2) on your computer. Look at the characters in Blender, listen to the music, read every line of the script, repaint a texture, or translate the whole game into your own language, even one written in an alphabet the game never had.
![]() |
![]() |
![]() |
| KOS-MOS and Shion, taken out of the game with their own animation, shown in Blender |
The game speaking Arabic, right to left (PS2 emulator, a disc the kit made) |
Hindi subtitles on the opening movie (the same disc) |
|
|
|
|
|
|
|
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| KOS-MOS
|
|
|
|
|
| :---: | :---: | :---: | :---: | :---: |
| `albelt00` | `gaignun00` | `yuri00` | `febronia00` | `kirsch00` |
|
|
|
|
|
| :---: | :---: | :---: | :---: |
| `helmer00` | `miyuki00` | `virgil00` | `pope00` |
### Environments
| | |
|---|---|
| 




The game's animations come out too. Every body and face animation becomes an
action in Blender, attached to the character's skeleton, so you can press
play. All 4,340 animations on the disc can be read, and 142 models get theirs
attached automatically.
On the right, KOS-MOS and Shion play the first clip of their field animation
files, straight from the kit's files. The game does not name its animations,
so "walk" is just what this one looks like.
Two things to know: hair, coats and skirts stay stiff, because the game moves
them with a physics simulation the kit does not have yet; and nobody has
compared the animations side by side with the running game yet.
```sh
python cli.py model --iso "Disc 1.iso" --path 'model\char\pc\shion00.pxy' --out shion00.glb \
--motion 'motion\shion00.xap#0,1,2' --motion 'yamamoto\mot\shio00.xap#0,1' --face
```
How the animations were decoded and checked: [docs/MOTION.md](docs/MOTION.md).
*Both pictures were taken back out of the changed disc, not from the edited
files: KOS-MOS's hair turned pink in all four of her texture files, green
arms and a yellow ring painted on in Blender, and the title menu's words
tinted gold. This disc copy has not been played in the emulator yet; the
older `recolor` command's gold title menu has.*
```sh
cp -R out/browse edited/ # paint in the copy
python cli.py texture-import --iso "Disc 1.iso" --tree edited/ --dry-run
python cli.py texture-import --iso "Disc 1.iso" --tree edited/ --out modded.iso --preview prev/
```
The first command line only reports what would change; the second writes the
new disc and a folder of previews. The rules (colour lists, see-through
parts, models from Blender):
[docs/MODDING.md](docs/MODDING.md#editing-textures-texture-import).
## Translating the game
**The translation editor** is the easy way, for any language. It shows every
line of the game in one page, sorted by where it appears and who says it.
You type your translation next to the English; it checks each line as you
type and shows how it will look in the game's own font. When you are done,
press **Build** and you get a disc that plays in your language. No
programming needed.
* 382 languages to choose from, from French to Cherokee.
* Letters the game's font lacks (French `œ`, Polish `ł`…) are added for you,
at the size of the game's own letters. A whole new alphabet is drawn from a
font on your computer.
* Length guides, automatic backups, and a **Check project** button that
looks over everything before you build.
* Projects in Hindi, Chinese, Cherokee, Arabic and Korean were built with it
and played in the emulator. Arabic and N'Ko are drawn with their letters
joined, the way they are written.
| | |
|---|---|
|  |  |
| *Korean menus* | *Korean in the opening scene* |
|  |  |
| *Arabic and N'Ko, joined* | *Korean in a field window* |

*The editor: places in the game on the left, the English and your
translation in the middle, a preview in the game's font underneath.*
*Starting a project: pick your language, and the editor says which letters
it will add and shows a test sentence in the game's font.*
**Start here:** [docs/TRANSLATING.md](docs/TRANSLATING.md), a step-by-step
guide for beginners. Every detail of the editor is in
[docs/TRANSLATION-EDITOR.md](docs/TRANSLATION-EDITOR.md).
To open it: the **Translation editor** button in the app, or
`translate.command` / `.bat` / `.sh`. It will also be a download of its own
(`Xenosaga-II-Translation-Editor`) from the next release on.
**Two discs, one translation.** Disc 1 and Disc 2 share almost all their
text; only the movie subtitles differ. Translate Disc 1, export your work,
and import it into a Disc 2 project.
**Prefer plain text files?** `text-export` writes every kind of text as UTF-8
files you can edit in anything, and `text-import` puts them back, refusing
any line that would not fit or that the font cannot draw.
`text-coverage` lists every place the game shows text and which tool writes
each one ([MODDING](docs/MODDING.md#what-is-covered-text-coverage)). The
editor uses the same code underneath.
## Translating into another alphabet
The USA game only knows Latin letters. To show another script, the kit
draws the letters your translation needs into empty slots of the game's own
font, then writes your text using those slots. It handles the hard parts for
you: letters that change shape when joined (Arabic), right-to-left lines,
and line wrapping. When a language needs more letters than the font has
room for (Korean, Chinese), the build opens up extra rows of the font, up
to 3,255 letters.
To prove it works, a test disc with Arabic, Hindi, Georgian and Amharic was
built and played in the emulator. These are pictures of the game drawing them:
| | |
|---|---|
|  |  |
| Arabic, two lines in the field message box | Hindi, a line in a cutscene |
|  |  |
| Amharic, the save screen's title | Amharic, the "Saving..." message |
On the right are the 144 letters the kit drew into the font for that test
disc. You can also preview a line without starting the game:
|
|
| A frame of the opening movie | Menu pictures: citizen portraits, window pieces, the title menu words |
|
|
|
| One page of the game's main font | "The Story So Far", one of the full-screen pictures |
|
|
|
| KOS-MOS's textures, enlarged | A recolour preview: her hair, before and after |
## The window

The app is a page in your browser that only your own computer can see. It
has one card per job, grouped by goal: **Start here** (unpack the discs,
check them, turn them into files), then looking at one thing, changing
pictures, changing text and fonts, translating into a new alphabet, and
tools for developers. Each card says in plain words what it needs and what
it makes, and afterwards shows where the result went, with a button that
opens the folder. Cards that change the game are marked "new disc copy".
The panel on the right lists the discs it found. *Show command* prints the
command line a card will run, for anyone who wants to learn the terminal
way. (The discs in this picture are empty stand-ins.)
## Regions and the demo disc
The kit tells by itself which version a disc is
(`python cli.py region --iso DISC.iso` says so out loud). Give it Disc 1 and
Disc 2 of the same version; mixing versions gets a warning.
* **USA discs:** everything on this page.
* **Japanese discs** (SLPS_253.68 / .69): read like the USA discs, and their
text can be edited in place. New alphabets do not work there yet.
* ***Xenosaga Freaks*** (SLPS_253.53) carries a 2004 demo of Episode II. The
kit finds it, unpacks it and shows its scripts, which still hold their
Japanese text ([docs/SCRIPTS.md](docs/SCRIPTS.md)).
The differences file by file are in [docs/FORMATS.md](docs/FORMATS.md).
## Good to know
**Safe by design.** Every change goes into a new copy of the disc, never the
original. A copy is either complete and checked, or not written at all.
**What has been played in the emulator:** subtitles and lines in new
scripts, the translation editor's builds (Hindi, Chinese, Cherokee, Arabic,
Korean), the gold title menu, and a file moved to the end of Disc 1.
**Not yet played in the emulator:** the KOS-MOS texture demo, the
animations, most text edits besides subtitles, a dialogue file that grows,
and the large-alphabet mode beyond the first field window (no battles,
shops or Disc 2 yet).
**Known gaps:**
* **Translation:** the name card on the main menu, the window titles and the
NO DATA tile use a small second font with Latin letters only, so new
scripts show blank there (the editor warns you). The battle screen is
untested. Right-to-left menu lines stay on the left unless the game
centres them.
* **Animation:** hair and cloth stay stiff, and some animation files are not
paired with a model automatically ([MOTION](docs/MOTION.md)).
* **Models:** whether they come out mirrored, and the exact colours, have
not been compared with the game ([BLENDER](docs/BLENDER.md)).
* **Textures:** ten menu sheets that use several colour lists still come
out grey or garbled ([FORMATS](docs/FORMATS.md)).
* **Text:** movie subtitles can only grow by a few letters each. Words drawn
into pictures and movies (like the staff roll) cannot be changed with text
tools.
* **Music:** a few effects of the sound driver (slides between notes, some
volume sweeps, loop points) are not recreated yet ([MUSIC](docs/MUSIC.md)).
The full list, with the details: [docs/UPDATES.md](docs/UPDATES.md) and each
guide's own "limits" section.
## Docs
| Read this | When you want to |
|---|---|
| [TOUR.md](docs/TOUR.md) | see everything the kit does, with real output |
| [BROWSING.md](docs/BROWSING.md) | know what the kit writes and where to look first |
| [BLENDER.md](docs/BLENDER.md) | bring the models into Blender |
| [MODELS.md](docs/MODELS.md), [MOTION.md](docs/MOTION.md) | learn how the models, skeletons and animations work, and how each part was checked |
| [MODDING.md](docs/MODDING.md) | change the game: textures, text, the game's own messages, any file |
| [TRANSLATING.md](docs/TRANSLATING.md) | **translate the game into your language, step by step, no programming** |
| [TRANSLATION-EDITOR.md](docs/TRANSLATION-EDITOR.md) | look up every detail of the translation editor |
| [ALPHABETS.md](docs/ALPHABETS.md) | translate into a script the game never had |
| [DIALOGUE.md](docs/DIALOGUE.md) | get every line in play order, with subtitles and voice clips |
| [SCRIPTS.md](docs/SCRIPTS.md) | read the scene scripts |
| [MUSIC.md](docs/MUSIC.md) | play the music and see how close it comes to the console |
| [FUN-FACTS.md](docs/FUN-FACTS.md) | read sixty-odd things the disc gives away: staff folders, a quest you cannot fail, an unused hard-disk installer |
| [FINDS.md](docs/FINDS.md), [HISTORY.md](docs/HISTORY.md) | read about curiosities left on the disc, and the background |
| [FORMATS.md](docs/FORMATS.md) | see how every file is laid out, byte by byte (for tool writers) |
| [CODEBASE.md](docs/CODEBASE.md) | find your way around the code (for programmers) |
| [UPDATES.md](docs/UPDATES.md) | see what changed, release by release |
## Credits and licence
MIT licence ([LICENSE](LICENSE)). This kit borrows from its two siblings,
and each borrowed file names its source at the top. From the Episode I kit:
the disc reader, the decompression (first learned from
[Lakuwu's xenotool](https://github.com/Lakuwu/xenotool)), the letter-drawing
and text-shaping code (`glyphs.py`, `langpack.py`) and the reader behind
`exetext.py`. From the Episode III kit: the texture decoder `txy.py` (from
its `chrtex.py`), the colour maths of `recolor`, and `udf.py`, which keeps a
grown disc readable by every tool; its disc-descriptor handling is ported
from **Anzinono**'s
[xenosaga3-translation-kit](https://github.com/Anzinono/xenosaga3-translation-kit)
(MIT). Text shaping uses HarfBuzz through uharfbuzz, fonts are read with
fontTools, and the models were checked with the Khronos glTF validator and
Blender.
Xenosaga Episode II was made by Monolith Soft and published by Namco. This
project is not affiliated with either and contains no game data.
**Sibling kits:** [Episode I](https://github.com/LinuxJessi/Xenosaga1PythonExtractor) ·
[Episode III](https://github.com/LinuxJessi/Xenosaga3PythonExtractor)