Masters of Teras Kasi recompilation targets Windows, macOS and Linux

Star Wars: Masters of Teras Kasi is making an unusual jump from the original PlayStation to modern PCs. Not through a standard emulator, and not through a ground-up remake either. Masters Of Teras Kasi Recomp takes the original PlayStation code, translates it into C and builds it as a native application for Windows, macOS and Linux. It’s still a work in progress. That matters. This isn’t a polished PC re-release you install and forget about. It’s a technical recompilation project that shows how a PlayStation game can be moved to current hardware while keeping much of its original game code intact.

A Star Wars fighting game from 1997

Masters of Teras Kasi first appeared on PlayStation in North America in 1997, with the European release following in 1998. LucasArts took the Star Wars licence and dropped it into the kind of one-on-one 3D fighting game that was everywhere during the PlayStation era.

The setup is straightforward. Fighters face each other in 3D arenas, using a mix of punches, kicks and weapons. Depending on the character, that can mean lightsabers, blasters, staffs or plain close-range combat.

The story takes place after the destruction of the first Death Star. Emperor Palpatine wants revenge against the Rebel Alliance and recruits Arden Lyn, a fighter trained in the Teras Kasi martial art. From there, the roster pulls together familiar Star Wars characters including Luke Skywalker, Princess Leia, Han Solo, Chewbacca and Boba Fett. Mara Jade also appears, while Darth Vader and several other characters can be unlocked. It’s an odd piece of Star Wars game history, but technically it now has a second life on very different hardware.

The PC version isn’t using normal emulation

The interesting part is how Masters Of Teras Kasi Recomp actually works. The project uses PSXRecomp to analyse the original PlayStation executable and translate its MIPS R3000A machine code into C. That translated code can then be compiled for a modern computer. A separate runtime handles the PlayStation hardware behaviour that the original game still expects to see.

So the game logic isn’t simply running inside a full PlayStation emulator. Much of the original code becomes native host code instead. You still need the original game data. The build process expects a compatible US PlayStation disc dump along with a suitable PlayStation BIOS. From there, the tools generate the required code locally and build the application on the computer. Current packages support Windows, Linux, and Mac.

It already includes netplay

There’s more here than getting the game to boot. Two player netplay has already been added to the project. The networking system checks the disc data used by both players before starting a match, helping prevent problems caused by different game versions or mismatched files. Save handling also has to work differently once two computers are involved. The host coordinates saving and loading, while memory-card data is compared and transferred when required.

That’s the kind of detail that makes recompilation projects more complicated than they first appear. Getting the CPU instructions translated is only part of the job. Timing, storage, controllers, graphics and networking all have to behave closely enough to what the original software expects.

Performance still needs work

The current version can already run matches at around 60 frames per second, but not every part of the game is there yet. Some code paths still depend heavily on interpreted handling for sections of memory that can change while the game is running. That costs performance and can lead to problems such as audio stuttering. The opening video is a good example.

The project includes profile-guided optimisation specifically to improve the intro sequence. The compiler gathers performance data while the intro runs, then uses that information when rebuilding the game. Without the optimisation, the intro sits at roughly 39 frames per second. With it enabled, performance rises to around 48 to 50 frames per second. That’s a fairly clear snapshot of where development stands. The game works as a native desktop program, but there’s still plenty of low-level work happening underneath.

A useful test case for PlayStation recompilation

MastersOfTerasKasiRecomp is interesting less because of the game itself and more because of what it demonstrates. Static recompilation gives developers another way to run old console software on modern hardware. Instead of recreating the entire game or placing it inside a conventional emulator, the original machine code gets translated ahead of time and compiled for the host system.

Masters of Teras Kasi now serves as a practical PlayStation example of that method. It already has native builds, working graphics and audio, two-player netplay and targeted performance optimisation. It isn’t finished yet. But it’s already running far beyond the hardware it was originally written for.

Spread the love
error: