rac-j2me-remastered

rac-j2me-remastered is a decompilation and PC port project for the J2ME games Ratchet & Clank: Going Mobile and Clone Home.

README

Ratchet & Clank: Going Mobile & Clone Home Remastered

Ratchet & Clank: Going Mobile and Clone Home Remastered

Native Windows ports of the two Ratchet & Clank games made for J2ME (mobile Java) phones, rebuilt from the original games' own decompiled code. They are not emulated, and they add widescreen, high frame rates and modern controls.

Status: complete. Both games are finished, released as full versions, and have been played from start to finish. The project is no longer in active development, though new features may still arrive as occasional updates, and the launchers will pick those up automatically.

GameOriginalLauncherYou supply
Going MobileSony Pictures Mobile, 2005, 176x220 buildGoingMobile.exeRAC-GoingMobile-a1.jar
Clone HomeUnreleased "Ratchet and Clank 2" prototype, 240x320CloneHome.exeRAC-CloneHome.jar

Download and play

The games are not included. They belong to their rights holders, so you need your own copy of the .jar listed above.

  1. Download the zip for your game from the Releases page and unzip it anywhere.
  2. Run the launcher and click Choose file... to pick your .jar. The launcher unpacks it for you.
  3. Choose Fullscreen or Windowed and press Play.

There is no installer, and no Visual C++ redistributable is needed. The launcher checks GitHub for newer builds on start-up, offers an Update button when there is one, and keeps your saves.

What the ports add
Going MobileClone Home
Widescreen (Original, Auto, 4:3, 16:10, 16:9, 21:9)YesYes
Frame rate (Original, 60 to 240, Unlimited), with interpolated framesYesYes
Game logic stays at its intended speedFixed at about 30 Hz25 Hz by default, adjustable
Borderless fullscreen (F11 or Alt+Enter)YesYes
Keyboard, mouse and XInput gamepadYesYes, in a PlayStation layout

Widescreen shows more of the level and never stretches sprites or the HUD. All of these options are in the game's own Settings menu. Each zip has a README.txt covering controls and troubleshooting.

Troubleshooting

If there is no sound, open a command prompt in the game's folder and run bin\goingmobile_port_a1.exe --sound-test or bin\clonehome_port.exe --sound-test. It plays every sound and writes audio.log to the save folder below. The music is MIDI: Windows has a synthesizer built in, while Wine needs one installed (for example FluidSynth or TiMidity).

Game files stay in data\ next to the launcher. Saves and display settings live in %LOCALAPPDATA%\rac-gm-port-a1\ (Going Mobile) or %LOCALAPPDATA%\rac-ch-port\ (Clone Home). To uninstall, delete the game's folder, and delete that one too if you want to remove your saves.

How it was made

Both games are plain JVM bytecode with minifier-style obfuscation, so Vineflower recovers close-to-original Java directly. From there, each game was read through, renamed, and its custom binary formats were parsed and verified byte for byte.

  • Going Mobile was transcribed to C++ by hand from a renamed Java tree. Three builds of the game exist, and comparing them is what unlocked the obfuscated assets. The port targets the 176x220 a1 build.
  • Clone Home is translated mechanically: tools/java2cpp.py turns the renamed Java into C++, and a hand-written engine and platform layer sit underneath. Patches for widescreen, settings and interpolation are applied during translation, so the renamed Java stays a plain decompile.

Both ports are C++17 on raw Win32 and GDI, with no SDL, Direct3D or OpenGL.

Repository layout

PathContents
goingmobile/, clonehome/One folder per game, laid out as below
<game>/decompiled*/Raw Vineflower output, one folder per build
<game>/src*/Renamed, compile-checked Java
<game>/docs/Roadmaps, class maps and asset format write-ups
<game>/port/The C++ port, launcher and packaging scripts
tools/Extraction, decompilation, renaming, parsing and art scripts
roms/, <game>/extracted*/Your original jars and their contents (gitignored, never commit)

In Going Mobile, _a1 marks the shipping build: the port is in goingmobile/port/src_a1/. The unsuffixed and _a folders are older builds kept for reference.

Documentation
TopicGoing MobileClone Home
Reverse-engineering recordROADMAPROADMAP
Port development logPORT_ROADMAPROADMAP
Classes and membersCLASS_MAPCLASS_MAP
Binary formatsASSET_FORMATSASSET_FORMATS
Comparison of buildsBUILD_COMPARISONOnly one build

The scripts are described in tools/README.md.

Building from source

You need Windows, Visual Studio or the VS Build Tools with the C++ workload, CMake and Ninja. Regenerating sources also needs Python 3 and a Java 17+ JDK (see tools/README.md).

python tools\extract_jar.py      & rem unpack your jars from roms\
goingmobile\port\build.bat       & rem builds goingmobile\port\build\goingmobile_port_a1.exe
clonehome\port\build.bat         & rem builds clonehome\port\build\clonehome_port.exe

To build the same package that gets released, run <game>\port\build_dist.bat <version> and then <game>\port\check_dist.ps1, which confirms that no game data or VC runtime slipped in. The output is in <game>\port\dist\.

Releases and self-update

Pushing a tag such as goingmobile-v1.2.3 or clonehome-v1.2.3 runs that game's release workflow, which builds, checks and publishes the zip. The tag sets the version, and any 0.x or suffixed version is marked as a pre-release.

The launchers find updates by listing this repository's releases and taking the newest tag with their game's prefix that has a .zip attached. Keeping updates working for people who already have the game means:

  • Do not rename or move the repository. The owner and repository name (samioan/rac-j2me-remastered) are compiled into every released launcher.
  • Keep the goingmobile-v and clonehome-v tag prefixes, and keep a .zip on each release.

Legal

This project is not affiliated with, endorsed by, or supported by Sony Interactive Entertainment, Sony Pictures, Insomniac Games, or the games' original developers and publishers. Ratchet & Clank is a trademark of Sony Interactive Entertainment LLC. See NOTICE.md for attribution and third-party licences.