Star Wars: Obi-Wan — PC port (static recompilation)
Star Wars: Obi-Wan — PC port (static recompilation) is a Windows port of the Original Xbox game Star Wars: Obi-Wan built by static recompilation.
- Type: PC port
- Game: Star Wars: Obi-Wan
- Runs on Windows
- By The128ReBits
- Latest release v0.4.1, 2026-12-03
- Source: https://github.com/The128ReBits/obiwan-pc-port
README
Star Wars: Obi-Wan — PC port (static recompilation)
English below · Español más abajo
A Windows port of the Original Xbox game Star Wars: Obi-Wan (2001) built by static recompilation: the game's own code is translated to C and compiled for x86-64. Graphics are low-level: the game's Direct3D 8 library runs as recompiled code and writes real NV2A pushbuffer commands, which a runtime thread executes on Direct3D 11. Audio runs through the emulated MCPX APU.
Status: playable. Measured on one PC: about 100–157 fps in a combat test run of the first level (combat is limited
by the game's own CPU code) and about 320 fps in a quieter section of another level. Reducing GPU fence waits gave +9 %
in combat. Measurements and notes are in docs/ (Spanish).
Made by The128ReBits · YouTube · ModDB · Ko-fi · Patreon
🎬 Video: stability test of 0.4.0 across many levels, picked at random (4K, 60+ FPS):
0.4.5 (pre-alpha): controller fix on level entry, in-game settings menu (F7) with pause, keyboard and mouse
updates and widescreen HUD fixes. See docs/NOTAS_0.4.5.md.
0.4.1 (pre-alpha): fixes the false "Controller removed" on level loads, DualSense / DualShock / Switch
controllers now work, levels are no longer all unlocked. See docs/NOTAS_0.4.1.md.
0.4.0: installer and settings in 5 languages, install in about 15 minutes instead of about an
hour, 60+ FPS, Jin'ha freeze and flicker fixed. See docs/NOTAS_0.4.0.md.
Coming next: Spanish, French, German and Italian voices and text (PAL ISOs); text in 20-30 more languages translated with AI; an HD texture pack, a full remaster of the game once the port is polished.
Development continues. Please report bugs in Issues. Anyone may use this code to improve their own Obi-Wan port (keep the licenses and credit); pull requests are welcome.
No game data here
This repository contains only our source code and notes. It does not include the game, its XBE, any extracted
data, saves, or the generated C translation of the game (work/obiwan-claude-completo/src/recomp/gen/). You must own
the game and generate that code locally from your own legally obtained copy.
Layout
| Path | What it is | License |
|---|---|---|
work/obiwan-claude-completo/ | Title project: launcher main.c, title fixes, generator tools | GPL-3.0-only (based on soltros/obiwan-recomp) |
work/xboxrecomp-claude-completo9/ | Runtime: Xbox kernel, NV2A → D3D11, APU, input | MIT (xboxrecomp by sp00nz); xemu-derived APU/NV2A files are LGPL-2.1+, see its NOTICE |
tools/ | Windows build scripts and Obi-Wan.exe (settings and game in one window) | GPL-3.0-only |
docs/ | Investigation notes (Spanish) | — |
Runtime switches are environment variables RECOMP_FIX_<NAME> (on by default, =0 turns a fix off) plus opt-in
diagnostics (RECOMP_PROF=1, RECOMP_EXC_DIAG=1, ...). See docs/CLAUDE_rendimiento_y_fallos_2026-11-25.md.
Play with your own ISO (installer)
You need your own Star Wars: Obi-Wan (USA) Xbox ISO. Other editions (Europe, Spain) are not supported yet.
Easy way: Instalar-Obi-Wan.exe
Download Instalar-Obi-Wan.exe from Releases, open it,
pick your ISO and press Install. It does not contain the game: it copies the game files from your ISO and compiles
the port on your PC. It brings its own small Python; if Microsoft's C++ compiler (Visual Studio 2022 Build Tools) is
missing it offers to download it from Microsoft, checks Microsoft's signature and installs it (administrator
permission once, several GB, Internet needed). Then it creates Start menu / desktop shortcuts and an entry in
Installed apps to uninstall it. About 4 GB free are needed for the game itself.
The installer and settings tool are available in Spanish (es), English (en), French (fr), German (de) and Italian (it). In Performance, an engine FPS cap of 0 runs without the title's 120 FPS ceiling. Set it to 120 to restore the original pacing. The presentation cap and vertical sync still follow their own settings.
In-game settings menu: press F7 or Ctrl+Shift+M, or hold Back+Start (Tab+Enter on the keyboard) for a second. The settings open in the same window with the game paused and the mouse released. On an XInput or SDL2 controller, use the D-pad to navigate, A to select and LB/RB to change pages. Press F7, Ctrl+Shift+M, Esc or B/Start, or click Return to game (F7), to leave the menu. The launcher offers a restart when saved settings differ from those used to start the game. Mouse buttons can be assigned to actions in Controls.
The opening crawl plays when starting a new campaign. When the game temporarily loads the first level to build its audio cache for an existing campaign, the port waits for the copy and goes straight to the selected mission. The widescreen HUD uses the selected proportions as soon as it draws. With original proportions, the radio icon and dialogue panel stay aligned while the panel opens and the text appears.
- Windows SmartScreen will say unknown publisher because the exe is not signed: More info → Run anyway.
- With Controlled folder access on, Documents and Desktop are protected: install to the default folder.
- Uninstalling removes the port executables and shortcuts. The install folder, extracted game files, profiles, saves and your ISO are kept.
To build the installer yourself: tools\build_setup_obiwan.cmd (needs MSVC 2022 and Python 3.12 with capstone 5.0.9).
Updates can reuse code already translated from your own ISO. The installer verifies the inputs and every generated C file and header before reusing them. An installation created before these checks needs one fresh translation.
By hand: Instalar Obi-Wan.cmd
- Install Python 3.10+ and then
py -3 -m pip install capstone==5.0.9. - Install Visual Studio 2022 Build Tools with Desktop development with C++.
- Download this repository (Code → Download ZIP), unzip it and run
Instalar Obi-Wan.cmd. Pick your ISO. It extracts the game files toprivate\game\usa, translates the game code to C and compiles everything (about 4 GB of free disk space). Nothing is written to your ISO. - Open
Obi-Wan.exe: settings and game in the same window. (Jugar Obi-Wan.exeandConfigurar Obi-Wan.exeare still built for old shortcuts.)
Optional: put SDL2 source (tag release-2.32.10) in upstream\SDL2 before step 3 for non-Xbox gamepads; without
it only XInput (Xbox-style) gamepads and the keyboard work.
Building by hand (Windows, MSVC 2022 Build Tools)
tools\build_sdl2.cmd <SDL2 source, tag release-2.32.10>(static SDL2 for generic gamepads, optional).- Generate the title C into
work/obiwan-claude-completo/src/recomp/gen/from your owndefault.xbewithwork/obiwan-claude-completo/tools/generate_obiwan.py(see that folder's README). tools\build_claude_completo9.cmd→build\obiwan-claude-completo-9\obiwan_recomp.exe.tools\build_obiwan_fusion.cmd→Obi-Wan.exe(settings + game, one window). Optional: the separatetools\build_lanzador_obiwan_completo9.cmdandtools\build_configurador_obiwan.cmd.
Credits
Code included in this port (each under its own licence, see the linked NOTICE files):
- Original title project. soltros created the GPL-3.0 title project this Windows port builds on. obiwan-recomp
- XBE translation and Xbox runtime. sp00nz and the xboxrecomp contributors wrote the disassembler, C recompiler and runtime underlying this port, including the USB OHCI and XID implementation. This fork is pinned to v0.16.0 and adds the Obi-Wan level-load controller fix. xboxrecomp · Contributors
- Direct3D 11 renderer. The renderer under
gpu_ttcomes from Gumpolas and the TooTawersRecomp contributors, whose port uses xboxrecomp v0.12.0. The Obi-Wan fork connects it to the v0.16 command executor and adapts HUD placement, including the training prompt. TooTawersRecomp, revision 81d11ad - Xbox sound and graphics hardware. The runtime includes MCPX APU and NV2A register code from xemu, with contributions by espes, Jannik Vogel and Matt Borgerson. The individual origins and licence terms are recorded in the runtime NOTICE.
- Libraries shipped with the installer. The SDL contributors' SDL2 handles DualSense, Switch and other non-XInput controllers. Capstone supplies the x86 decoder and CPython runs the installation and generation scripts. SDL2 · Capstone · CPython
Research references only (read or compared; no code copied from them):
- Camera field of view. The widened camera idea came from goodthanksdev's independent Star Wars: Obi Comp.
The widescreen patch for this port was written separately in
panoramica.c. Obi Comp camera hooks - Other Xbox ports. We compared the shared Xbox runtime with sp00nz's Burnout 3 and read TGP482's BLACK recompile for its HUD placement. Burnout 3 · BLACK HUD
- Hardware documentation. xemu, Cxbx-Reloaded and XboxDevWiki for APU, NV2A and controller behaviour. xemu · Cxbx-Reloaded · XboxDevWiki
Port, fixes and thanks:
- The128ReBits maintains this port, launcher, settings tool and installer, developed with assistance from Claude and Codex. Thanks to leonkyo2-png for reporting the controller failure after entering the level and fransisigoswho for the training HUD screenshot and installer logs. Controller · HUD · Installer
Star Wars: Obi-Wan is © Lucasfilm / LucasArts. This is an unofficial fan project, not affiliated with them.
Español
Port a Windows de Star Wars: Obi-Wan (Xbox, 2001) por recompilación estática: el código del juego se traduce a C y se compila para PC. Los gráficos son de bajo nivel: la biblioteca Direct3D 8 del propio juego escribe órdenes reales de la GPU NV2A y un hilo del runtime las ejecuta sobre Direct3D 11. El sonido pasa por el APU emulado.
Estado: jugable. Medido en un PC: unos 100-157 fps en una prueba de combate del primer nivel y unos 320 fps en un
tramo tranquilo de otro nivel. Las notas están en docs/.
Hecho por The128ReBits · YouTube · ModDB · Ko-fi · Patreon
🎬 Vídeo: prueba de estabilidad de la 0.4.0 en muchos niveles elegidos al azar (4K, más de 60 FPS):
0.4.5 (pre-alfa): arreglo del mando al entrar en nivel, menú de ajustes en partida (F7) con pausa, mejoras de
teclado y ratón y arreglos del HUD panorámico. Ver docs/NOTAS_0.4.5.md.
0.4.1 (pre-alpha): arreglado el falso «Controller removed» al cargar nivel, ya funcionan los mandos
DualSense / DualShock / Switch y los niveles ya no salen todos desbloqueados. Ver docs/NOTAS_0.4.1.md.
0.4.0: instalador y ajustes en 5 idiomas, instalación en unos 15 minutos en vez de cerca de
una hora, más de 60 FPS, arreglados el congelado y el parpadeo de Jin'ha. Ver docs/NOTAS_0.4.0.md.
Próximamente: voces y textos en castellano, francés, alemán e italiano (ISO PAL); textos en 20-30 idiomas más traducidos con IA; pack de texturas HD, una remasterización completa del juego cuando el port esté pulido.
El desarrollo sigue. Los errores, en Issues. Cualquiera puede usar este código para mejorar su propio port de Obi-Wan (respetando las licencias y citando el origen); los pull requests son bienvenidos.
Aquí solo hay nuestro código y nuestras notas: ni el juego, ni el XBE, ni el código traducido del juego. Cada uno tiene que generarlo a partir de su propia copia legal.
Jugar con tu ISO
Necesitas tu propia ISO de Star Wars: Obi-Wan (USA); las ediciones Europa y España todavía no funcionan.
Fácil: Instalar-Obi-Wan.exe
Descarga Instalar-Obi-Wan.exe de Releases, ábrelo,
elige tu ISO y pulsa Instalar. No lleva el juego dentro: copia los archivos del juego de tu ISO y compila el port en
tu PC. Trae su propio Python pequeño; si falta el compilador de C++ de Microsoft (Visual Studio 2022 Build Tools) te
ofrece descargarlo de Microsoft, comprueba la firma de Microsoft y lo instala (permiso de administrador una vez, varios
GB, hace falta Internet). Al final crea accesos directos en el menú Inicio / escritorio y una entrada en Aplicaciones
instaladas para desinstalarlo. Para el juego hacen falta unos 4 GB libres.
En Rendimiento, un límite de FPS del motor de 0 quita el tope interno de 120 FPS. Usa 120 para
recuperar el ritmo original. El límite de presentación y la sincronización vertical tienen sus propios ajustes.
Menú de ajustes en partida. Pulsa F7 o Ctrl+Mayús+M, o mantén Back+Start (Tab+Intro en el teclado) durante un segundo. Los ajustes se abren en la misma ventana con el juego en pausa y el ratón libre. En mandos XInput y SDL2, la cruceta navega, A selecciona y LB/RB cambia de página. Para volver, pulsa F7, Ctrl+Mayús+M, Esc o B/Start, o usa el botón Volver al juego (F7). El lanzador ofrece reiniciar si los ajustes guardados difieren de los usados al arrancar. En Controles se pueden asignar los botones del ratón a las acciones.
La intro se conserva al empezar una campaña nueva. Si el juego usa temporalmente el primer nivel para crear la caché de audio de una campaña existente, ahora termina la copia y pasa directamente a la misión elegida. El HUD en panorámica usa las proporciones seleccionadas desde que aparece. Con las proporciones originales, el icono de radio y el panel de diálogo quedan alineados mientras se abre el panel y aparece el texto.
Al actualizar, el instalador puede reutilizar el código traducido desde tu ISO. Comprueba los datos de entrada y todos los archivos C y sus cabeceras. Las instalaciones anteriores a esta comprobación se traducen una vez más.
- SmartScreen de Windows dirá editor desconocido porque el exe no está firmado: Más información → Ejecutar de todas formas.
- Con Acceso controlado a carpetas activado, Documentos y Escritorio están protegidos: instala en la carpeta que sale por defecto.
- Al desinstalar se retiran los ejecutables y accesos directos del port. Se conservan la carpeta de instalación, los archivos extraídos, los perfiles, las partidas y tu ISO.
A mano: Instalar Obi-Wan.cmd
- Instala Python 3.10 o más nuevo y luego
py -3 -m pip install capstone==5.0.9. - Instala Visual Studio 2022 Build Tools con Desarrollo para el escritorio con C++.
- Descarga este repositorio (Code → Download ZIP), descomprímelo y abre
Instalar Obi-Wan.cmd. Elige tu ISO. Extrae el juego enprivate\game\usa, traduce el código del juego a C y lo compila todo (hacen falta unos 4 GB libres). Tu ISO no se modifica. - Abre
Obi-Wan.exe: ajustes y juego en la misma ventana. (Jugar Obi-Wan.exeyConfigurar Obi-Wan.exese siguen compilando para los accesos directos antiguos.)
Opcional: si pones el código de SDL2 (etiqueta release-2.32.10) en upstream\SDL2 antes del paso 3, funcionan
también mandos que no son de Xbox; sin él, solo mandos XInput (tipo Xbox) y teclado.
Créditos
Código incluido en el port (cada uno con su licencia, ver los avisos enlazados):
- Base del juego y recompilación. soltros creó el proyecto original de Obi-Wan. El desensamblador, el generador de C y el runtime de Xbox, incluida la base USB del mando, vienen de xboxrecomp, de sp00nz y sus colaboradores. obiwan-recomp · xboxrecomp
- Gráficos. El renderer D3D11 viene de Gumpolas y los colaboradores de TooTawersRecomp. Este port lo integra con xboxrecomp v0.16 y adapta el HUD. TooTawersRecomp
- Sonido y registros. Las partes del APU y los registros NV2A procedentes de xemu se detallan en el aviso de licencias. Aviso del runtime
- Bibliotecas que lleva el instalador. SDL2 aporta el soporte para DualSense, Switch y otros mandos sin XInput; Capstone, el decodificador x86; CPython ejecuta la instalación. SDL2 · Capstone · CPython
Solo referencias de investigación (leídas o comparadas; no se copió código):
- Cámara. La idea de ampliar el campo de visión viene del port Obi Comp de goodthanksdev; el parche
panorámico de este port está escrito aparte en
panoramica.c. Obi Comp - Otros ports de Xbox. Burnout 3 de sp00nz (comparado el runtime compartido) y el HUD de BLACK de TGP482. Burnout 3 · BLACK HUD
- Documentación del hardware. xemu, Cxbx-Reloaded y XboxDevWiki. xemu · Cxbx-Reloaded · XboxDevWiki
Port, arreglos y agradecimientos:
- The128ReBits mantiene el port, el lanzador, el configurador y el instalador, con ayuda de Claude y Codex. Gracias a leonkyo2-png por el caso del mando al entrar al nivel y a fransisigoswho por la captura del HUD y los registros de instalación. Mando · HUD · Instalador
