Repository navigation
Releases
AvP: Extinction PC v0.1.1
Fixes found by playing the public v0.1.0 on the day it went out.
- Right drag was inverted up and down. Left-right grabbed the map and up-down pushed it the other way, so diagonal drags went off along the wrong diagonal. The pan now moves the view by exactly what the ground under the pointer moves, in any direction.
- Updating a GitHub install failed with "file already exists". Fixed in the installer.
- A crash or black screen when skipping the logo movies on a fast PC.
- Session recording is off unless you tick it in the launcher.
New install: download the source zip below, unzip it to a path without spaces (for example C:\Games\AvPE), put your USA Xbox disc image in PUT YOUR GAME HERE and run Install.bat.
Updating from v0.1.0: download and unzip this release, start the game so the launcher opens, and drop the unzipped folder on the launcher window. It keeps your game files, saves and settings and rebuilds in a few minutes.
The full record of the port: What this port changes, and what it took.
AvP: Extinction PC v0.1.0
What this port changes, and what it took
This is a record of everything in the v0.1 release of the Aliens versus Predator: Extinction PC
port: what it adds to the original Xbox game, what it fixes, and the work behind it. It only
covers what ships in this repository and in the decompilation it builds on. Things that were
tried and dropped are noted at the end.
At a glance
- A month of work, October 14 to November 13, 2026.
- 225 commits to the port and its tools and 348 commits to the decompilation it builds on.
- All 7,994 of the game's functions rewritten as C++ by the decompilation, across 604 source
files, and every one checked against the original machine code. 7,978 run in the port in
place of their machine-translated versions; the other 16 (pause handling, controller input,
level loading, the movie thread) are served by the PC layer's own versions. - 76 functions of Microsoft's Xbox libraries (files, save games, the C runtime) replaced
and checked the same way. - 18,763 passing function checks on record, and 16 recorded play sessions replayed
after every batch of changes. - 10 faults fixed in the recompiler toolkit and runtime, and 4 behaviours of the original
game corrected for play on a PC.
The whole project was built with AI assistance (Claude), directed and play-tested by one person.
No leaked or proprietary source code was used. It is a first release. More eyes on it are
welcome, and so are bug reports.
How the port works
The game ships as one Xbox program, default.xbe. The port does not emulate it. Instead:
- Static recompilation. A fork of the xboxrecomp
toolkit translates every function in your copy ofdefault.xbeinto C, which is compiled
for 64-bit Windows or Linux. The toolkit also stands in for the Xbox kernel and memory
layout. On its own this already runs the game. - Decompiled code swapped in. A companion decompilation rewrites the game as C++ with the
game's own structures and names (the names come from the symbol table the PlayStation 2
release shipped with). Each rewritten function replaces its translated version. The whole
game now runs this way; what is still translated is most of Microsoft's library code, which is generated on your PC from your own disc and never
distributed. - A PC layer. Drawing, sound, input and timing are done by code written for the port:
the game's Direct3D calls, with the 21 vertex shaders it assembles at run time, become
OpenGL 3.3 and GLSL; its DirectSound calls go to an SDL mixer; movies are decoded by FFmpeg.
No game code or data is in this repository. You build the port from your own disc.
What you get
Running on a PC
- Native Windows build (and Linux), no emulator.
- Any resolution: the game is drawn at the size of your window or screen.
- Widescreen: the battlefield fills a wide screen with a wider view, not a stretched one. The
HUD sits at the edges of the screen or stays centred, or you can keep the original 4:3
picture. The title screen is pillarboxed and the menus spread to the screen's edges. - A frame cap of your choice, 60 by default. The Xbox game held each frame for 2, 3 or 4
screen refreshes, so a frame that took 33 ms was shown for 49. The mission clock follows
real time at any rate. - Borderless fullscreen that behaves on a modern desktop (Alt+Tab, the Snipping Tool and HDR
displays), a window, or exclusive fullscreen. Changes apply at once. - The logo and intro movies, from your own disc files. Any key skips the one playing.
- A Windows installer: put your disc image or extracted disc in a folder and double-click
Install.bat. It fetches pinned, checksummed build tools into its own folder (no
administrator rights), checks that the game is the release it supports and says so if it is
not, builds the game from your copy, and leaves it in a game folder with a desktop shortcut. - A launcher for resolution, display mode, widescreen layout, frame cap and movies. Dropping a
newer package on it updates the game and keeps your saves and settings.
Controls
- A modern RTS layout for mouse and keyboard. Left click selects (hold for the game's
selection circle, drag for a box); right click is the default action; Shift+right click
attack-moves; Alt+right click sets waypoints. - Ctrl+A selects everything of yours on screen. Control groups: Ctrl+1 to 4 makes one,
Shift+Ctrl adds the selection to it, the number selects it, and twice quickly centres the
camera on it. - Right drag moves the map with the mouse, the way StarCraft II and Age of Empires IV do it,
smoothed so a slow diagonal drag does not step along the screen's axes. - Stance and order hotkeys, WASD or screen-edge scrolling, middle drag to turn and tilt the
camera, and a wheel zoom that moves the same amount at any frame rate. - Clicking the minimap moves the camera there, and the HUD's buttons answer the mouse: the
Dropship button opens the Uplink, where every row can be clicked. - Every mission action can be rebound, and the mouse buttons swapped.
- A controller works at the same time as the keyboard and mouse.
Menus and interface
- Mouse in every menu: point to highlight, click to choose, right click to go back, wheel
to scroll. The button hints at the bottom of the screen are clickable too. - Options > PC Settings and Key Bindings, built as pages of the game's own menu system, in
the main menu and the pause menu. Changes apply at once. - A Controls page with a keyboard and mouse picture that follows the keys bound now.
- PC button prompts: tutorials and the HUD name keys instead of pad buttons, and follow
your bindings. - Sharp fonts: the game's letters, 8 to 12 pixels tall on the Xbox, drawn again at 4x.
- Esc skips a mission intro, and there is a Quit Game item on the main menu.
Saves
- Quicksave (F5) and quickload (F9), kept in the game's own save list.
- Autosaves: three slots used in turn, a minute into a mission and then every 10 minutes of
play.
Unchanged on purpose
Unit stats, costs, difficulty, missions and AI are the original's. Nothing about how the game
plays was rebalanced.
For problem reports
- Optional session recording, off unless you tick it in the launcher: frame times, memory and game events, with F12 pictures and
Ctrl+F12 marks, packed byPack session.bat. It is kept in the game folder, records no user
name, PC name or outside path, and sends nothing anywhere.
Bugs fixed
In the original game
These never showed on an Xbox, or showed less. A PC makes them plain.
- The pointer moved twice. In missions the game applies the pointer's motion in two
places each frame. With a pad's stick that is just a speed. With a mouse the pointer ran
ahead of the hand at double rate. The port halves the motion it reports, so the pointer
tracks the mouse one to one. - A zoom with no limits. The camera's zoom was a developer control on the keypad, and it
adds to the eye's distance with no bounds at all. Zoomed out past about twice the starting
distance the far clipping plane cuts the terrain away from the top of the screen; zoomed in
past zero the distance goes negative and the eye flips under the map. The port holds the
distance within fixed limits and keeps the viewing angles. - Three logo movies at once. The front end starts the three logo movies on three threads
at the same moment and leaves the Xbox's movie player to show one at a time. The port plays
them in the order the game made them, so the next logo no longer starts over the one
showing. - Uneven frame pacing. Described above: the game's presentation step rounds every frame
up to a whole number of 60 Hz refreshes, which turned a steady 30 frames a second into a
mix of 49 ms and 33 ms frames whenever a frame ran slightly long.
In the recompiler toolkit and runtime
These are faults in the translation and its runtime, found by running the port and tracing
them back. The fixes are in the fork of the toolkit this repository carries (xboxrecomp/)
and in the tools next to it.
- A game with no sound effects. Of 331 sound definitions loaded, one survived. A four-byte
value in the sound library's data happened to look like the address of an instruction in
the middle of a constructor, so the function finder began a function there, between a test
and the jump that uses it. The translated second half ran with the wrong flag and emptied
the lookup table at every registration. The tools now find such false starts and merge them
back before translating. - A mission crash from the same cause.
GEnviroSwarm::Processwas split in two at a byte
that only looked like a function start. - A crash on unloading a level. The runtime failed to honour a memory release
(MEM_DECOMMIT), which slowly drifted the Xbox heap until a level unload crashed. Replaying
the original code against the port's found it on the first day. - A divide by zero in DirectSound voice setup, for voices with no channels.
- A shader assembler that was never translated. The disassembler read only some of the
program's code sections, so library code was missing, including the routine that assembles the game's vertex shaders
at run time. Reading all eight raised the function count from 9,505 to 10,291. - 80-bit floating-point loads and stores were translated as 32-bit reads, or dropped. All
29 of them are constants in the C runtime's maths (pi/2, infinity, not-a-number). - Return to the dashboard on Linux. The Xbox's raw disk partition, which the game mounts
as its utility drive, did not exist in the runtime outside Windows, and the title quit. - **The g...
FFmpeg n7.1 (LGPL build used by the installer)
The FFmpeg libraries the installer links for movie playback. Build recipe: tools/ffmpeg. Licence: LGPL-2.1-or-later.