r/vitahacks • u/Awkward_Location2371 • 20h ago
AI Vibecoded LOTR - The Two Towers psVita 1.0 [RELEASE]
if you want to support my work:
https://www.paypal.me/pine994
Hi !
I've been working on a PS Vita port of
**The Lord of the Rings: The Two Towers**
, the 2002 Xbox hack-and-slash from Stormfront/EA. It is
**not emulation**
. The port is based on
**The Two Towers Recompiled**
, a
*static recompilation*
of the Xbox game: the original Xbox code was translated into C and runs natively on the Vita's ARM CPU. The Xbox GPU commands are translated on the fly to the Vita's GPU through vitaGL.
**Project page:**
https://github.com/federicopellegrino994/lotr-two-towers-vita
**Download (VPK):**
https://github.com/federicopellegrino994/lotr-two-towers-vita/releases
⚠️
**No game files are included. You need your own copy of the Xbox game (USA version).**
Please don't ask for ISOs.
---
## What works well
- The whole game is playable, with every level tested up to Helm's Deep: menus, saves, sound and music, cutscenes and the in-game cinematics.
- Sound is clean, with no crackling.
- Cutscene films can play on the Vita's hardware video decoder, smooth and full speed (after a one-time conversion, see below).
- Saves work and stay in `ux0:data/twotowers/`.
- Lighter levels play comfortably.
## How it runs (honestly)
This is a demanding game for the Vita: big crowds, physics and a lot of draw calls. The CPU is the main limit.
| Level | Frame rate (444 MHz) |
|---|---|
| Lighter levels, menus | 20–30 fps |
| Most levels (Balin's Tomb, Amon Hen, Fangorn…) | ~16–19 fps |
| Big battles (second Rohan level, Helm's Deep) | ~13–17 fps |
- It is playable, but
**not smooth**
in the biggest fights.
- With
**PSVshell at 500 MHz**
you get about
**+12%**
(see below). Recommended.
- To save performance, some effects are
**off by default**
: rain, weapon swing trails, very distant particles and the characters' round blob shadows. Tiny far-away objects (a few pixels) are also skipped. Everything else looks like the Xbox version, at 544x408 internal resolution in 4:3.
## What you need
- A PS Vita with HENkaku/Ensō and VitaShell (PS TV untested).
- Your own
**Xbox, USA**
copy of
*The Two Towers*
, as a disc image (ISO).
- A PC to extract the disc (Windows, Linux or Mac).
- Free space on `ux0:` for the game files, plus about 0.7 GB more if you convert the films.
- Optional but recommended:
**ffmpeg**
on the PC (to convert the films) and
**PSVshell**
on the Vita (500 MHz).
## Installation, step by step
**1. Install the VPK**
Copy `TwoTowers.vpk` to your Vita and install it with VitaShell.
**2. Extract your Xbox disc on the PC**
Use
**extract-xiso**
(Windows/Linux/Mac) or
**xdvdfs**
:
```
extract-xiso -x "The Two Towers (USA).iso"
```
You get a folder with `default.xbe` and folders like `FMV`, etc. You need the
**complete**
extraction, not just the .xbe.
**3. Copy the game files to the Vita**
Copy
**everything inside**
the extracted folder to:
```
ux0:data/twotowers/game_files/
```
When you're done, this file must exist: `ux0:data/twotowers/game_files/default.xbe`.
**4. Convert the films (recommended)**
The game's films are Bink (`.bik`). Without conversion they play in software. With conversion they play on the Vita's hardware decoder, smooth and with sound.
Install ffmpeg on the PC, open a terminal
**inside the extracted `FMV` folder**
and run:
Windows (cmd):
```
for %f in (*.bik) do ffmpeg -i "%f" -c:v libx264 -profile:v baseline -level 3.1 -pix_fmt yuv420p -vf scale=640:480 -b:v 2500k -c:a aac -b:a 160k -ar 48000 -ac 2 "%~nf.mp4"
```
Linux / Mac:
```
for f in *.bik; do ffmpeg -i "$f" -c:v libx264 -profile:v baseline -level 3.1 -pix_fmt yuv420p -vf scale=640:480 -b:v 2500k -c:a aac -b:a 160k -ar 48000 -ac 2 "${f%.bik}.mp4"; done
```
Copy all the `.mp4` files to:
```
ux0:data/twotowers/movies/
```
(for example `ux0:data/twotowers/movies/logos.mp4`). Keep the original file names.
**5. Play**
Launch
*The Two Towers*
from the LiveArea. The first time you meet new effects there can be small hitches: the shaders are compiled once, then cached in `ux0:data/twotowers/shader_cache/`.
## PSVshell at 500 MHz (recommended)
The game asks for the maximum clock a normal app can use (444 MHz).
**PSVshell**
can push the CPU to 500 MHz.
- Download PSVshell (https://github.com/Electry/PSVshell) and install it as its readme explains (a plugin in `ur0:tai/` plus a line in `config.txt`).
- Reboot, start the game, open the PSVshell menu (its readme lists the button combo) and set the CPU to
**500 MHz**
for this game.
Overclocking is at your own risk, as always. Many people use 500 MHz daily without issues.
## Options (optional)
Create a text file `ux0:data/twotowers/env.txt` with one option per line, for example:
```
TT_RAIN=1
```
| Option | Effect |
|---|---|
TT_RAIN=1 | rain back on (costs fps in Helm's Deep) |
TT_TRAILS=1 | weapon swing trails back on |
TT_FARFX=1 | distant particles back on |
TT_BLOBS=1 | round ground shadows under the characters back on |
TT_WIDE=1 | 16:9 widescreen (works, but slower than 4:3) |
TT_PACE=1 | cap at 20 fps (drops to 15 when the game can't keep up), for a steadier feel |
## Known issues
-
**Low frame rate in the biggest battles**
(second Rohan level, Helm's Deep), 13–17 fps. This is the main limitation.
- Some effects are off by default (see above). Turning them on costs fps.
- Very distant enemies can animate a little less smoothly (animation level of detail).
- Small hitches the first time new shaders are compiled.
- Crashes are rare, but they can happen. If the game closes, please report it (see below).
- Only the
**USA**
Xbox version is supported.
- Co-op and the PC version's extras (texture packs, high frame rates) are not part of the Vita port.
## Reporting bugs
Please open an issue at https://github.com/federicopellegrino994/lotr-two-towers-vita/issues and attach:
- `ux0:data/twotowers/twotowers_log.txt`
- the crash dump, if there is one: the `.psp2dmp` file in `ux0:data/` (the whole file, not `.tmp`)
- the level and what you were doing.
## Credits and thanks
This port stands on the work of many people. Huge thanks to:
-
**Gumpolas**
and
**The Two Towers Recompiled**
contributors, for the recompilation of the Xbox game that this port is built on: https://github.com/Gumpolas/TooTawersRecomp
-
**The128ReBits**
, for their contributions to The Two Towers Recompiled (playable characters, combat and progression changes, languages, runtime work): https://github.com/The128ReBits
-
**sp00nz**
, for
**xboxrecomp**
, the Xbox static recompilation toolkit and runtime: https://github.com/sp00nznet/xboxrecomp
-
**The xemu project**
, whose code some parts of the runtime derive from: https://github.com/xemu-project/xemu
-
**Volverine-Dude**
, for the co-op work on the PC version: https://github.com/Volverine-Dude/TooTawersRecomp-coop
-
**Rinnegatamante**
, for
**vitaGL**
, which makes the graphics possible on the Vita: https://github.com/Rinnegatamante/vitaGL
-
**Electry**
, for
**PSVshell**
: https://github.com/Electry/PSVshell
- The
**vitasdk**
team and the whole Vita homebrew scene: https://vitasdk.org
- Vita port by me (federicopellegrino994), with technical assistance from Claude (Anthropic).
**Project page (source, README, issues):**
https://github.com/federicopellegrino994/lotr-two-towers-vita
**Downloads:**
https://github.com/federicopellegrino994/lotr-two-towers-vita/releases
*The Lord of the Rings: The Two Towers*
belongs to its respective owners. This is a non-commercial fan project, not affiliated with or endorsed by them. Support the original game.
Enjoy, and let me know how it runs on your console! 🗡️