Skip to content

About

Project to patch and modernize the abandonware PC port of Megaman Legends, adding widescreen support, modern controller layout, sound fixes and more!

Resources

Stars

14 stars

Watchers

2 watching

Forks

Latest commit

 

History

189 Commits

Folders and files

Repository files navigation

Mega Man Legends Modernization Project

A modernization project for the 2001 PC port of Mega Man Legends, for Windows and Android, with an experimental Linux version. It replaces the game's renderer, input and timing with modern versions and adds true widescreen, 60 fps, modern controls and an in-game settings menu.

The project works with your own copy of the game. It contains no game assets: the game's data, music and voices always come from your copy. It does include a translation of the game's program code (see How it works), which only runs with the files of your own copy.

Current version: 0.9.10 beta. The 0.1 releases are kept on the legacy-0.1 branch and are no longer maintained.

Contents

What's new in 0.9

  • Moving while locked on, and backpedaling. The original lets Mega Man run and strafe while shooting, but not walk backward, and locking on keeps him in place. Now he also walks backward while shooting, his legs moving while the shot plays on his arms. While firing locked on, over the shoulder or with camera aim, he moves every way around the target: he runs forward, strafes, and backpedals or jogs backward facing it, slower toward the back. Jumps keep him facing the target.
  • Combat styles. Classic plays like the original, Adventure adds lock-on over the shoulder and moving while locked on, and Shooter is a third-person shooter: the camera stays over Mega Man's shoulder, the aim button zooms in to aim freely at the crosshair (no lock-on), and aim assist slows the camera over enemies. Every option can also be set on its own, on the new Combat page of the settings. The start menu asks which style you want the first time.
  • Animation blending. Mega Man's animation changes cross-fade instead of snapping: raising and lowering the buster, starting and stopping, turning a run into a backpedal, landings.
  • Close camera fade. With a wall at his back or in a narrow hallway, the camera moves over his head and Mega Man turns see-through as it comes close, so he doesn't fill the view.
  • HUD. The minimap moves to the top-left corner, a HUD size setting shrinks the gauges and the map into their corners, and the boss and Roll gauges sit above the dialogue boxes.
  • What's new in updates. When an update is available, the start menu's update rows show a short summary of what it brings.

0.9.1:

  • Button prompts. The start menu, the in-game menu and the title screen's hints name the buttons as your controller shows them: Xbox, PlayStation 4, PlayStation 5 or Switch, picked automatically from the controller connected or set by hand.
  • Localization names (US version, experimental). An option puts the original Japanese release's names into the US text and subtitles: Rock, the Kobun, Digouters, Reaverbirds and more. The lines stay the US script's.
  • Fix: special weapons keep Mega Man planted while they fire again, as in the original. Backpedaling and moving while locked on are for the buster only.

0.9.2:

  • 120 fps (experimental, tested on Android). For screens that refresh at 120 Hz, the renderer draws three in-between frames per game frame. Where the screen or the GPU can't keep up, it goes back to 60 fps by itself.
  • FPS counter. An optional counter in the top-right corner shows how many frames per second reach the screen.
  • Aspect ratio: Fill screen, 16:9 or 4:3. Fill screen (experimental) makes the picture as wide as your screen, as the old widescreen setting did; on screens wider than 16:9, a few scenes don't draw all the way to the sides. The new 16:9 keeps a 16:9 picture, with bars on wider screens.
  • Fix: at Jet Skate speed, Mega Man's fists swapped places in the in-between frames, so his arm flickered and deformed.

0.9.4:

  • Shader presets everywhere. RetroArch shader presets now work with Vulkan, in the Recompiled engine, on Android and on Linux, not only with the Classic engine on Direct3D 11.
  • Camera keeps Mega Man in view. Locking on to tall or high targets, aiming at the sky and standing against a wall no longer put the camera above him where he can't be seen.
  • Fix: in cutscenes, characters right next to the camera disappeared from the shot.
  • Fix: after a lock-on or aim ended mid-run, Mega Man could stay stuck between aiming and walking (#16).
  • Fix: on screens wider than 16:9, scenery and characters near the sides popped in and out.
  • Fix: with animation blending, a quick forward then back while aiming showed Mega Man on his side for a frame.

0.9.5:

  • Touch controls (Android). A controller drawn over the game, for playing without one: a floating stick on the left, camera drag on the right, and the face, shoulder and menu buttons. Auto shows them only while no controller is connected. See Touch controls.
  • All difficulties from the start (optional): Easy, Normal and Hard on the title menu without clearing the game first. Saves are not changed.
  • Longer draw distance. The terrain is drawn twice as far, so the far side of the biggest maps (such as the gate behind Lake Jyun's far wall) no longer shows sky. A new Draw distance setting can end it just past the fog instead, for slower devices.

0.9.6:

  • Separate volumes for the music, the sound effects and the voices, in both menus (#17). The music can go up to 400%, each track only as far as it plays without distorting, for the quiet tracks some audio mods use.
  • Shot homing setting (#6). With the crosshair, the original homing pulled buster shots onto an enemy above or below where you aimed. Shot homing (Combat page) keeps it (High), limits it to the enemy under the crosshair (Low), or turns it off (Off). The combat styles set it: Classic High, Adventure Low, Shooter Off.

0.9.7:

  • 60 fps at 4:3 (#18). With Aspect ratio: 4:3 original, the in-between frames repeated the previous one, so the game moved at 30 fps. They are interpolated again, and the opening's sky no longer shows the sea at the top of the picture.

0.9.8:

  • Green Sharukurusu in the Cardon Ruins (#20). The enemy was nearly invisible, or wore scraps of other textures. The US version's stage file puts its texture in the wrong place; the app now corrects this as the game loads the file. Your game files are not changed.

0.9.9:

  • Shadows through the ground and over text (#19). Drop shadows showed through hills, walls and steps, and could cover the dialogue boxes and the HUD. The ground and the text now cover them.
  • Flickering textures in heavy areas at 60 and 120 fps. With HD character models, a long draw distance and a wide screen, parts of the picture flickered away and back in the busiest places. The in-between frames now include everything, however big the scene is.

0.9.10:

  • Gadget van (#22). Roll's hair no longer fades out where the pillar crosses it, and the dark slabs at the sides of the room that widescreen showed are gone. The rest of the room is unchanged.
  • Jet Skates speed. New setting Jet Skates speed: Original is the skates' top speed in the 1997 game, Fast (the default) is 30% above it. It is in the Controls settings of both menus.
  • No restart on Start+Select (#23). Pressing Start and Select together no longer resets the game, as with Shift and Enter on the keyboard.

What's new in 0.8

  • Start menu on Windows. The settings, the game import and the updates now live in the same start menu as on Android and Linux, before the game starts. Setup installs the app into a folder of its own, and the start menu imports your US version, Rockman DASH, or both.
  • New start menu layout on every platform. It uses the whole widescreen: the settings on the left in labelled sections, and on the right the selected setting's full description, its choices, and the progress of imports, downloads and updates. Settings have clearer, more technical names, and the app page is now called Game, the first page.
  • Skip the start menu. Start menu at launch: Skip goes straight into the game with your saved settings.
  • Back to the start menu from the game: hold Back (or F2) for 1.5 seconds on the title screen. A ring fills while you hold it.
  • First launch: when no game has been imported yet, a short prompt explains what the app needs and imports your copy.
  • Title screen hints can be turned off. The shortcut card now also lists the way back to the start menu.
  • Linux is part of the release (still experimental).
  • Fix: Rockman DASH with the Original (32-bit) executable crashed when a debug option for the recompiled game was set in mml.ini.

0.8.1 adds:

  • Update notice. With the start menu set to Skip, the game checks for a new release itself, and the title screen says when one is out. Holding Back / F2 then opens the start menu on its Update row.
  • Updates on Linux. The start menu's Update downloads the new archive, checks it, installs it over the app and starts it again.
  • Fix (Linux): holding Back / F2 on the title screen could crash instead of opening the start menu.

0.8.2 adds:

  • Jet Skates on RB. Hold RB to skate at once, with no start-up pause. Speed follows the stick, up to 30% faster than the original at full tilt, and jumps work on skates.
  • Over-the-shoulder camera (Settings, Lock-on camera). While locked on, the camera moves in beside Mega Man and looks past his shoulder at the enemy. With nothing targeted, it replaces the original aim, which stops Mega Man in place: he keeps moving and shots go to the crosshair. R3 swaps the side. L3 alone now switches the modern controls on and off.
  • Shots go to the crosshair. With camera aim or the over-the-shoulder camera, shots now meet at whatever is under the crosshair (an enemy, a wall, the floor) at any distance.
  • The crosshair reacts to enemies: it turns fully opaque and closes in while an enemy is under it.
  • Aim sensitivity: a slower camera while aiming over the shoulder, for finer aim (60% by default).
  • Fix: the game could crash at the title screen with the Japanese voices or the subtitles on, in some builds of the recompiled game.

0.8.3 adds:

  • Modern controls on the boat. On Roll's boat rides, the sticks and the mouse aim with analog speed and RT shoots, as everywhere else. See Boat shooting sections.
  • Zoom on the boat: hold LT (or right click) to zoom in on distant enemies, with a slower aim.
  • Crosshair on the boat: it shows where the shots go, while zoomed and after each shot.

0.8.4 adds:

  • Full draw distance on the big maps. Far geometry past the original draw distance (Uptown's town wall and gatehouse behind the dome, the far shore at Lake Jyun) is drawn instead of appearing only when you come closer.
  • Install anywhere (Windows). Setup installs the app into any folder on any disk, your game folder included: the app then plays that copy where it is, with its saves, and copies nothing.
  • Fix (Windows): Setup pointed at a game folder installed the old launcher instead of the start menu.

0.8.5 adds:

  • Texture filtering: Nearest neighbor. The game's textures can now be drawn sharp, without smoothing. Texture filtering offers Nearest neighbor, Bilinear and Anisotropic 16x.
  • Fix (Vulkan): with 60 fps and Model details at Maximum, the big fields (Yass Plateau, Clozer Woods, the boat ride) flickered: some frames lost the near ground, the cliffs and Mega Man.
  • Fix: on high ground (Yass Plateau), dark shapes and flicker appeared at Mega Man's feet as the camera turned, and his shadow was missing.
  • Fix: the balloons in Balloon Fantasy flickered at 60 fps.
  • Fix: on the boat rides, aiming all the way up took the camera under the water.
  • Fix: the subtitles of the boat repair scene now play on that scene.

0.8.6 adds:

  • Faster room transitions (optional). Doors and ladders can play their transition 2, 4 or 8 times faster (Game page, Room transitions). Gameplay never runs faster.
  • Fix: in rooms with large floors (City Hall), the floor near a low camera was drawn over Mega Man, counters and other objects standing on it.
  • Fix: at 60 fps, turning the camera in rooms without outdoor ground (the Apple Market) made shop fronts and parts of Mega Man flicker.
  • Fix: with lock-on, special weapons now aim at the height of the locked enemy, like the buster.
  • Fix (modern controls): for a moment after each room change, the original button layout was active (the shoot trigger turned Mega Man).

0.8.7 adds:

  • Fix (modern controls): with the game's Turn option set to Directional, strafing while firing made Mega Man turn in place without shooting. The modern controls now work the same with either Turn setting; the option still applies to the classic controls.

The separate launcher (MML Launcher.exe) is retired: updating a game folder that an earlier Setup patched in place replaces it with the start menu (see Installation on Windows).

What's new in 0.7

  • Rockman DASH, the Japanese PC version, is supported on Windows and Android, with both engines. Setup installs the patch in the US version, in Rockman DASH, or in both. On Android, both versions can be imported side by side, each with its own saves, and the start menu picks the one to play. A Menu buttons setting chooses the US or the Japanese confirm and back buttons in Rockman DASH.
  • English subtitles for the cutscenes (experimental), which the original release never had. They are the work of the Rockman DASH PSP English project and are downloaded from its repository by Setup or by the Android start menu.
  • Japanese voices for the US version (experimental), built from your own copy of Rockman DASH: the cutscenes, the in-game lines and the title screen.
  • Linux version (experimental): a native x86-64 build with the start menu, the game import, Vulkan, controllers, mouse and keyboard, the subtitles and the Japanese voices. It is a separate download (see Installation on Linux).

Experimental. The subtitles and the Japanese voices have not been checked through the whole game yet. The subtitles are timed to the English voice acting. With the Japanese voices they follow the same cutscene timing, so they stay close, but they are not always exactly in sync with the Japanese line being spoken.

What's new in 0.6

  • Android version. A native arm64 build of the game, not an emulator, rendered with Vulkan. It imports your own copy of the game from a folder on the device and runs at 60 fps on current handhelds.
  • Start menu on Android: every setting before the game starts, button remapping, and the import of your game files.
  • Vulkan renderer on Windows, next to Direct3D 11 (Renderer setting).
  • Standalone engine on Windows (Advanced setting): the recompiled game in a 64-bit program, without the original executable's code.
  • Render thread: the renderer's work runs beside the game, which gives smoother frame pacing and more headroom on slower CPUs.
  • Fades now cover the whole screen at high resolutions.
  • New icon.

Features

Graphics

  • True widescreen. The game renders to a wide surface: the 3D view gets the extra width, HUD elements sit at the screen's edges at correct proportions, and 4:3 backgrounds are stretched to fit. Three aspect ratio choices:
    • Fill screen (experimental; the default) makes the picture as wide as your display: 16:9, 16:10, an ultrawide monitor or a phone. Screens wider than 16:9 now draw all the way to the sides, but that has not been tested much yet.
    • 16:9 keeps a 16:9 picture on any screen, with bars on wider or narrower displays.
    • 4:3 keeps the original framing.
  • 60 fps. The game logic still runs at 30 fps; the renderer draws an interpolated frame in between. Can be switched back to 30 fps.
  • 120 fps (experimental). For screens that refresh at 120 Hz, the renderer draws three interpolated frames per game frame. Where the screen or the GPU can't keep up, it goes back to 60 fps by itself. So far tested on Android only.
  • FPS counter. An optional counter in the top-right corner shows how many frames per second reach the screen.
  • Resolution and image quality. Render at your display's resolution or at 1x to 5x the game's resolution, with up to 8x MSAA, 16x anisotropic filtering and a choice of bilinear or nearest-neighbour upscaling.
  • Draw distance options. Lighter or no distance fog, full-detail models at any distance instead of the original low-poly swaps, and a draw distance that can stop just past the fog for slower devices.
  • Renderers. Direct3D 11 or Vulkan on Windows, Vulkan on Android and Linux.
  • Display modes (Windows). Borderless (the default, with normal Alt+Tab, screenshots and capture), exclusive fullscreen or windowed.
  • Post-processing. RetroArch shader presets (CRT and others) through librashader, with either renderer on every platform, and ReShade with a working depth buffer (Windows, Direct3D 11).
  • HD texture packs. Replace any game texture with a PNG of any size, or dump the originals to make your own.
  • Animation blending. Mega Man's animation changes cross-fade instead of snapping.
  • HUD layout. The minimap in the top-left corner, and an optional smaller HUD.

Controls

  • Modern controls. Camera-relative movement, a free camera on the right stick, aim on the triggers, and dodge rolls in any direction. Can be switched off at any time to play with the original controls and camera.
  • Lock-on targeting. Hold aim to lock on to the nearest enemy in view. Mega Man keeps facing the target while moving freely; flick the right stick (or use the mouse wheel) to switch targets. The reticle colour is configurable. An optional over-the-shoulder camera moves in beside Mega Man and looks past his shoulder: at the locked enemy, or at the horizon when nothing is targeted, where it replaces the original aim (which stops Mega Man in place) so he keeps moving and shots go to the crosshair. R3 swaps the side.
  • Camera aim (optional). Shots go where the camera looks, up and down included, and meet at whatever is under the optional crosshair, which reacts when an enemy is under it. Mega Man turns to the camera's direction only while firing, so movement stays free in every direction.
  • Moving while locked on, and backpedaling. The original lets Mega Man run and strafe while shooting, but not walk backward, and locking on keeps him in place. Now he also walks backward while shooting, his legs walking while the shot plays on his arms. While firing locked on, over the shoulder or with camera aim, he moves every way around the target: he runs forward and sideways, and backpedals facing it (an optional backward jog, backpedal=jog, is faster). Changes of direction ease in, and jumps keep him facing the target. walk_shoot=0 restores the original behavior.
  • Analog movement. A light stick tilt walks, a full tilt runs.
  • Boat shooting sections. Where Mega Man rides Roll's boat and only aims and shoots, the modern layout applies too: analog aim on the sticks and the mouse, RT to shoot, LT to zoom in, and a crosshair that shows where the shots go.
  • Jet Skates on RB. Hold RB to skate at once from standing or running, with no start-up pause. Speed follows the stick, up to 30% faster than the original at full tilt. Jumps work on skates and keep their speed. Hard turns and turn-arounds keep the original lean, sound and smoke.
  • Any controller. SDL3 supports Xbox, PlayStation, Switch and most other pads, and the built-in controls of Android handhelds. The D-pad works as a second movement input, as in the PS1 version.
  • Mouse and keyboard (Windows and Linux). Mouse look, WASD movement and mouse aiming.
  • Combat styles. Classic plays like the original, Adventure adds lock-on over the shoulder and moving while locked on, and Shooter turns it into a third-person shooter: the camera stays over Mega Man's shoulder, the aim button zooms in to aim freely, shots go to an always-on crosshair, and aim assist slows the camera over enemies. Each option can also be set on its own (Settings, Combat). The start menu asks which style you want the first time; when the start menu is skipped, a notice in the game points to the setting.
  • Remapping. Every controller button and keyboard key used by the modern controls can be rebound.
  • Vanilla mode. Leaves the game's controls completely stock.

Quality of life

  • In-game settings menu (F1, or Back + Start). Changes apply instantly, which makes it easy to compare graphics options side by side. Settings are saved and shared with the start menu.
  • Quick save (F6, or Back + RB) to a dedicated slot, from anywhere you have control of Mega Man.
  • On-screen notices for quick saves and the modern controls toggle, and a short list of shortcuts on the title screen (can be turned off).
  • Back to the start menu from the title screen: hold Back (or F2).
  • Update notice. With the start menu set to Skip, the game checks for a new release itself, and the title screen says when one is out.
  • New intro video, with an option to skip it entirely.
  • Timing fix for the cutscene audio drift on modern PCs.
  • Faster room transitions (optional): doors and ladders play their transition 2, 4 or 8 times faster.
  • All difficulties from the start (optional): Easy, Normal and Hard on the title menu without clearing the game first. Saves are not changed.
  • Separate volumes for the music, the sound effects and the voices, in both menus. The music can go above 100%, each track only as far as it plays without distorting, for the quiet tracks some audio mods use.

Subtitles and Japanese voices (optional, US version, experimental)

  • English subtitles for the cutscenes, which were never subtitled in the original release. They show with the English voices and with the Japanese ones. They are the work of the Rockman DASH PSP English project and are downloaded from its repository by the start menu (see Credits).
  • Japanese voices, built from your own copy of Rockman DASH (the Japanese PC version): the cutscenes, the in-game lines and the title screen. The start menu switches between the English and the Japanese voices.

Experimental. The subtitles and the Japanese voices have not been checked through the whole game yet. The subtitles are timed to the English voice acting. With the Japanese voices they follow the same cutscene timing, so they stay close, but they are not always exactly in sync with the Japanese line being spoken.

Requirements

Windows

  • The Mega Man Legends PC port (2001 Capcom CD-ROM release), or Rockman DASH, the Japanese PC version. The installer checks the game executable and only patches the supported builds. Rockman DASH is also what the optional Japanese voices for the US version are built from.
  • Windows 10 or 11 (64-bit) and a GPU with Direct3D 11. Vulkan 1.1 for the Vulkan renderer.
  • A controller is optional. Mouse and keyboard are fully supported.

Android

  • A copy of the Mega Man Legends PC port or of Rockman DASH (the same files as above), copied to the device.
  • Android 9 or newer on a 64-bit (arm64) device with Vulkan 1.1.
  • About 2.5 GB of free space (the game is copied into the app).
  • A controller, a handheld with built-in controls, or the on-screen touch controls.

Linux (experimental)

  • A copy of the Mega Man Legends PC port or of Rockman DASH (the same files as above).
  • A 64-bit (x86-64) distribution with glibc 2.38 or newer (for example SteamOS 3.5, Ubuntu 24.04, Fedora 39, Debian 13 or a current Arch) and a GPU driver with Vulkan 1.1.
  • About 2.5 GB of free space (the game is copied into the app's folder).
  • For the folder picker, the desktop's file chooser (the XDG portal) or zenity; for the subtitles download and updates, curl or wget.

Installation on Windows

  1. Download MML-Setup.exe from the latest release.
  2. Run it, choose where to install the app (any folder, on any disk) and click Install. To play your game where it is, choose the game's own folder (the one with MEGAMAN.EXE).
  3. Start Mega Man Legends from the desktop shortcut (or mml_run64.exe --menu in the app's folder). The start menu opens.
  4. If you installed into another folder, the start menu asks for your game on first launch: choose Import Mega Man Legends (US) and pick the folder with MEGAMAN.EXE, or Import Rockman DASH (JP) and pick the folder with ROCKMAN.EXE, then wait for the copy to finish.
  5. Press Play (Start, or Enter).

In the game folder, the app plays that copy of the game with its saves, and nothing is copied. MEGAMAN.EXE is not changed: the patched program is added beside it as MEGAMAN_NATIVE.EXE the first time the start menu opens. Conflicting wrapper DLLs from other fix packs are moved to Modernization\quarantined-wrappers, and the game's intro is kept as CAPCOM.AVI.original. In a Rockman DASH folder, the US version can't be added as well: for both versions, install the app into a folder of its own.

In another folder, the import copies the game into the app's folder (Rockman DASH into its own Japanese folder, with its own saves) and patches the copy. It verifies the game executable by hash and refuses an unknown build, and it leaves the folder you picked unchanged. To bring your saves along, make sure the DASH_*.MCD files are in that folder. The other version can be imported any time on the Game page, which also downloads the English subtitles and builds the Japanese voices.

Updating: the start menu checks GitHub for a new release when it opens (Check on launch, Game page) and installs it with Update. You can also run the new MML-Setup.exe on the same folder. The imported games, settings and saves are kept.

Earlier installs: a game folder that an earlier Setup patched in place is updated where it is. The start menu replaces the old launcher (MML Launcher.exe): Setup removes it, the shortcuts that started it open the start menu instead, and the settings are kept, since the launcher saved them in mml.ini. Setup moves conflicting wrapper DLLs from other fix packs to Modernization\quarantined-wrappers instead of deleting them, and keeps the original executable as MEGAMAN.EXE.vanilla-backup and the original intro as CAPCOM.AVI.original.

Smart App Control (Windows 11)

If Windows says that Smart App Control blocked MML-Setup.exe, or that it can't verify the publisher, Smart App Control is on. It only runs programs that Microsoft already knows or that are signed with a paid code-signing certificate. This project is free and unsigned, so Smart App Control blocks Setup and the game.

Windows offers no way to allow a single app. Signing only Setup would not help either: the patched game (MEGAMAN_NATIVE.EXE) is created on your PC, so it would still be unsigned.

To play, turn Smart App Control off:

  1. Open Windows Security.
  2. Go to App & browser control > Smart App Control settings.
  3. Choose Off.

Microsoft Defender Antivirus and SmartScreen keep protecting your PC with Smart App Control off. On some versions of Windows, Smart App Control can't be turned back on afterwards without reinstalling Windows, so read what the setting says on your PC before you decide.

If the app worked at first and is blocked after a restart, Smart App Control was in its evaluation mode and has since turned itself on.

This is not the same as the blue Windows protected your PC screen (SmartScreen). There, click More info and then Run anyway.

Installation on Android

  1. Copy your Mega Man Legends folder (the one with MEGAMAN.EXE, DAT, BGM and SPH) from your PC to the device, for example into Download. To bring your saves along, make sure the DASH_*.MCD files are in that folder too.
  2. Download MML-<version>.apk from the latest release and install it (allow installing apps from your browser or file manager when Android asks).
  3. Open Mega Man Legends. On first launch the start menu asks for your game.
  4. Choose Import Mega Man Legends (US), pick the game folder in Android's folder picker, and allow access.
  5. Wait for the copy to finish (a few minutes), then press Play.

For Rockman DASH, copy its folder (the one with ROCKMAN.EXE) and import it with Rockman DASH (JP) on the Game page in the same way. It is kept apart from the US version, with its own saves, and Version to play picks the one that Play starts.

On the same page, English subtitles downloads the subtitles for the cutscenes (press A), and Voice language builds the Japanese voices from an imported Rockman DASH (about 260 MB). Once there, the same rows turn them on and off.

The import checks and patches the executable the same way the Windows installer does, copies only what the game uses, and leaves the picked folder unchanged. The folder can be deleted afterwards. To update the app, install the new APK over the old one: the imported game and the saves stay.

Installation on Linux (experimental)

The Linux version has only been tested on Windows' Linux subsystem (WSL) so far, with a software renderer. It has not been tested on real Linux hardware or on the Steam Deck yet. Reports are welcome (see Reporting bugs).

  1. Download mml-linux-<version>-x86_64.tar.gz from the latest release and extract it anywhere.
  2. Copy your Mega Man Legends folder (the one with MEGAMAN.EXE, DAT, BGM and SPH) to the computer. To bring your saves along, make sure the DASH_*.MCD files are in that folder too.
  3. Start mml in the extracted mml-linux folder. On first launch the start menu asks for your game.
  4. Choose Import Mega Man Legends (US) (A, or Enter on the keyboard) and pick the game folder.
  5. Wait for the copy to finish, then press Play (Start, or Enter).

The game is copied into ~/.local/share/mml-modernization (or $XDG_DATA_HOME/mml-modernization), which also holds mml.ini, the saves and mml.log. To use another folder instead, start the game with ./mml --game-dir <folder>. Rockman DASH, the subtitles and the Japanese voices work as on Android (see Installation on Android).

Updating: the start menu checks GitHub for a new release when it opens, and Update (Game page) downloads the new archive, checks it, copies its files over the app's and starts it again. It needs write access to the mml-linux folder. You can also extract the new archive over the old folder by hand. The game folder and the saves are not in it, so they stay.

In the start menu, the keyboard works as the controller does: the arrow keys choose, Space changes, Enter plays, Esc quits, and Q and E switch pages.

Controls

Controller (modern controls)

Input Action
Left stick / D-pad Move (light tilt walks)
Right stick Camera; while locked on, flick to switch targets
A Jump
B Special weapon
X Dodge roll
Y Talk / check
LT or LB Aim / lock-on
RT Shoot
RB (hold) Jet Skates
L3 Modern controls on/off
R3 Swap shoulders (over-the-shoulder camera)
Start Game menu
Back Select
Back + Start Settings menu
Back + RB Quick save

On Android, the system's Back button closes the settings menu, or closes the game when pressed twice. In the start menu, Start plays and B quits. On the title screen, hold Back for 1.5 seconds to go back to the start menu.

Touch controls (Android)

Without a controller, Android shows on-screen controls laid out like a controller, drawn semi-transparent over the game. Several fingers work at once, so you can move, turn the camera and press buttons together.

Area What it does
Left side of the screen Left stick: touch anywhere there and drag to move (the stick appears under your thumb); double-tap and hold for L3
Right side of the screen Camera: drag anywhere outside the buttons, like a right stick; double-tap and hold for R3
A, B, X, Y (right) The face buttons; slide your thumb from one to the next
LT, LB (top left), RB, RT (top right) Triggers and shoulder buttons
Back (under LT), Start (under RT) Back and Start; press both for the settings menu

The buttons carry the names set in Button prompts (Xbox letters for Auto). Touch controls (Controls page, Android only) sets when they show: Auto (the default) only while no controller is connected, so they hide when one connects and return when it disconnects; On always; Off never. Touch opacity (20% to 80%, default 40%) sets how see-through they are; a button or stick you are pressing is drawn stronger. A layout you can edit is planned after 1.0.

Mouse and keyboard (Windows and Linux, modern controls)

Input Action
W A S D / arrow keys Move
Mouse Camera
Left Ctrl (hold) Walk
Space Jump
Left click Shoot
Right click Aim / lock-on
Mouse wheel Next target while locked on
Left Shift Dodge roll
E Talk / check
Q Special weapon
Tab Game menu
M Select
C or mouse button 4 (hold) Jet Skates
Middle click Swap shoulders (over-the-shoulder camera)
F5 Modern controls on/off
F1 Settings menu
F6 Quick save
F2 (hold, title screen) Back to the start menu

All of these can be remapped in the start menu (Buttons). With modern controls off, or in Vanilla mode, the game uses its original controls and camera.

Camera aim

With Shots aim: Camera (Controls settings), shooting works like a third-person shooter while modern controls are on:

Situation What happens
Fire (shoot or special weapon) Mega Man turns to where the camera looks, and the shot goes there, up and down included
Move while firing He keeps facing the camera's direction and runs or strafes around it, firing continuously; moving sideways and backward is slower than forward
Move toward the camera while firing He backpedals (or jogs backward), still facing and shooting the camera's way; once you stop firing he turns and runs toward the camera
Stop firing He keeps facing that way for a moment, then moves freely again
Fire while jumping He keeps facing where the camera looks; the jump drifts where the stick points, less far backward
Talk, check or kick Camera aim does not apply: he faces what he is interacting with
Aim / lock-on held Lock-on works as usual; camera aim does not apply

Crosshair: shows where camera-aimed shots go. It appears with the first shot, fades out a few seconds after the last one, and uses the lock-on reticle colour. It needs the project's renderer (Direct3D 11 or Vulkan).

With Shots aim: Character (the default), shots go where Mega Man faces, as in the original game.

mml.ini [controls] Values
aim character (default), camera
crosshair 1 (default, while aiming), always, 0
walk_shoot 1 (default): backpedal while shooting, and move around a locked-on target; 0: as in the original, no backpedaling while shooting, and lock-on keeps him in place (running and strafing while shooting work either way)
aim_button lockon (default): Z-targeting; free: aim over the shoulder at the crosshair, no lock-on
camera_shoulder 0 (default); 1: the camera stays over the shoulder, and aiming zooms in
aim_assist 0 (default); 1: the camera slows and the crosshair closes in over an enemy
shot_homing crosshair-aimed buster shots: high (the original): they home in on an enemy near the middle of the screen at any height; low: only on the enemy under the crosshair; off: never. Lock-on and special weapons keep their homing. The combat styles set it (Classic high, Adventure low, Shooter off); left out, it follows the aiming settings the same way. The game's enemy hitboxes are very forgiving, so with low or off a shot that passes near the edge of an enemy can still hit it
backpedal walk (default): backpedal while firing; jog (experimental): the run played backward, faster

Backpedaling and moving while locked on apply to the buster. The special weapons keep Mega Man planted while they fire, as in the original (the few the original lets fire while running still do so in a run).

Boat shooting sections

On the boat rides Roll steers and Mega Man only turns, aims up and down, and shoots. With modern controls on:

Input Action
Right stick, left stick, D-pad, mouse or W A S D Turn and aim up or down (analog)
RT / left click Shoot
B / Q Special weapon
LT, LB / right click (hold) Zoom in (slower aim, using Aim sensitivity)

The crosshair shows where the shots go. It appears while zoomed and with each shot, fades out a few seconds after the last one, and follows the crosshair setting. Turn speed follows the camera speed and invert settings. With modern controls off, the boat uses the original controls.

Quick save

Quick save writes to save slot 10, which appears as "Quick save" on the load screen. It never overwrites a slot-10 save made from the game's own save menu, and it only works while you are in control of Mega Man (not in menus or cutscenes).

Settings

Settings are changed in the start menu before playing. The in-game settings menu changes most of them while playing. All of them edit the same file (mml.ini in the app's or the game's folder). The start menu shows each setting's full description and choices beside the list.

Page Settings
Game Version to play, importing each version, English subtitles, voice language, localization names (US / Japanese), music volume (up to 400%), effects volume, voice volume, start menu at launch (show / skip), intro video, title screen hints, room transitions, all difficulties, updates
Display Graphics API (Direct3D 11 / Vulkan / DirectDraw legacy), display mode, render resolution, aspect ratio (fill screen / 16:9 / 4:3), frame rate (30 / 60 / 120), FPS counter, V-Sync, executable
Graphics Anti-aliasing, texture filtering, upscaling filter, shader preset and its input resolution, fog distance, draw distance (full / up to the fog), level of detail, texture replacement, texture dump, animation blending, HUD size
Controls Control scheme, modern controls on launch, input API, confirm button (Rockman DASH), button prompts (Auto / Xbox / PlayStation 4 / PlayStation 5 / Switch), touch controls (Auto / On / Off, Android) and their opacity, camera sensitivity and inversion, stick dead zone, light stick tilt, dodge roll speed, mouse sensitivity
Combat Combat style (Classic / Adventure / Shooter presets, or Custom), camera position (behind / over the shoulder), fade up close, aim button (lock-on / free aim), lock-on camera, shots aim, aim sensitivity, aim assist, move while shooting, backpedal (walk / jog), crosshair (off / while aiming / always), reticle colour
Buttons Controller and keyboard remapping

Settings that only exist on Windows (Graphics API, display mode, executable, input API, shaders) are hidden on Android and Linux, and so are mouse and keyboard and V-Sync on Android.

Executable (Windows):

  • Original (32-bit) (default): the game's own executable with mml.dll.
  • Recompiled (64-bit): mml_run64.exe, the recompiled game. It does not support shader presets yet.

DirectDraw (legacy) uses DDrawCompat instead of the project's own renderer. It has no 60 fps, shaders, ReShade depth, in-game menu, notices or title screen shortcuts, and is only meant as a fallback.

Shaders, ReShade and texture packs

  • RetroArch shaders (Windows, Classic engine, Direct3D 11): presets are not included. Download RetroArch's slang-shaders into Modernization\shaders, then pick a preset in the start menu or the in-game menu. CRT presets work best with the shader input set to "Game resolution".
  • ReShade (Windows, Direct3D 11): install ReShade for MEGAMAN.EXE with the DirectX 10/11/12 API. Depth-based effects work with antialiasing off. The installer leaves an existing ReShade in place.
  • Texture packs: see docs/TEXTURE-PACKS.md for how to install a pack and how to dump and replace textures. On Android and Linux, packs go into the app's Modernization\textures folder (they are copied with the import when they are in the game folder).

Uninstalling

Windows: delete the app's folder (by default C:\Games\Mega Man Legends Modernization) and the desktop shortcut. The folder holds the imported games and the saves made with them: copy the DASH_*.MCD files out of it (and out of its Japanese folder) first if you want to keep them. The folder you imported from is not changed.

Windows, the app installed into the game folder: don't delete the folder, it is your game.

  1. Rename CAPCOM.AVI.original back to CAPCOM.AVI.
  2. Delete MEGAMAN_NATIVE.EXE (or ROCKMAN_NATIVE.EXE), mml.dll, mml_run64.exe, mml.ini, DDrawCompat.ini.16to9, DDrawCompat.ini.4to3, THIRD-PARTY-NOTICES.txt, and the x64, licenses and Modernization folders. Restore any wrappers you had from Modernization\quarantined-wrappers first.
  3. Delete the added DLLs: SDL3.dll, librashader.dll, ddraw.dll, dinput.dll, dsound.dll and dsoal-aldrv.dll.

MEGAMAN.EXE itself was never changed, and the saves stay where they are.

Windows, a game folder patched in place by an earlier Setup:

  1. Rename MEGAMAN.EXE.vanilla-backup back to MEGAMAN.EXE.
  2. Rename CAPCOM.AVI.original back to CAPCOM.AVI.
  3. Delete mml.dll, mml_run64.exe, mml.ini, DDrawCompat.ini, the Modernization and x64 folders, THIRD-PARTY-NOTICES.txt and the licenses folder.
  4. Delete the added DLLs: SDL3.dll, librashader.dll, ddraw.dll, dinput.dll, dsound.dll and dsoal-aldrv.dll. If you had your own wrappers before, restore them from Modernization\quarantined-wrappers first.

Android: uninstall the app. This also removes the imported game and the saves made on the device, so copy the DASH_*.MCD files out of Android/data/org.mml.legends/files first if you want to keep them.

Linux: delete the mml-linux folder, then ~/.local/share/mml-modernization (the imported game and the saves: copy the DASH_*.MCD files out of it first if you want to keep them).

Known issues

  • Some in-engine cutscenes may show black or missing textures.
  • Antialiasing disables depth-based ReShade effects.
  • ReShade depth works only with the Classic engine on Direct3D 11.
  • The in-game settings menu, notices, title-screen shortcuts and the way back to the start menu require the project's own renderers (not DirectDraw legacy).
  • With the Legacy controller backend, the controller still reaches the game while the in-game menu is open.
  • Android: no mouse and keyboard support yet. The touch controls' layout can't be changed yet.
  • The subtitles and the Japanese voices are experimental: they have not been checked through the whole game yet.
  • With the Japanese voices, the subtitles (timed to the English voice acting) are not always exactly in sync with the Japanese line being spoken.
  • Japanese voices: lines that only the Japanese version voices stay silent, and a long Japanese line can be cut off where the game moves on after the English line's length.
  • Linux: tested only on Windows' Linux subsystem so far, not on real hardware or the Steam Deck. It needs glibc 2.38 or newer.
  • Running the Windows version through Proton or Wine has not been tested.
  • Windows 11: Smart App Control blocks the app, because it is not signed. See Smart App Control.

Roadmap

  • Linux: testing on real hardware and the Steam Deck, and a build for older distributions.
  • Touch controls: a layout you can edit (after 1.0).
  • Later candidates: bloom and ambient occlusion, HUD repositioning options, and further mod support.

Reporting bugs

Open an issue and include:

  • mml.log from the app's folder on Windows (or the game folder, for installs patched in place; on Android: Android/data/org.mml.legends/files; on Linux: ~/.local/share/mml-modernization). It is rewritten every time the game starts, so copy it right after the problem. Its first line identifies the build.
  • On Windows, Modernization\menu.log (the start menu).
  • What you were doing, and a screenshot if the problem is visual.
  • If the installer or the start menu's import rejected your game: the hash it reported (in menu.log on Windows, in mml.log on Android and Linux). Other builds of the PC port exist, and their hashes help add support for them.

How it works

  • A small static patch to MEGAMAN.EXE enlarges two renderer tables that overflow with the extended draw distance, fixes the culling around them, and adds mml.dll to the executable's imports so Windows loads it with the game. The patch is hash-verified and a backup is kept. The Android and Linux imports apply the same patch.
  • The recompiled game. A static recompiler (tools/recomp, built on Ghidra) translates the game's x86 program into C. That code runs the game in the standalone engine, on Android and on Linux, with the original executable's code never running. The executable is still loaded for its data, so your own copy is always needed.
  • The runtime (C) does everything else: it replaces the game's DirectDraw / Direct3D 3 output with its own renderer (Direct3D 11 or Vulkan; widescreen placement, 60 fps interpolation, effects, the in-game UI), reads controllers through SDL3, implements the modern controls, and fixes the timing. On Windows Classic it is mml.dll, loaded by the game; in the standalone engine, on Android and on Linux it also provides the Windows functions the game calls.
  • Wrappers (Windows Classic) handle the rest: DSOAL and OpenAL Soft for the game's DirectSound3D audio, DDrawCompat for the Compatibility renderer, and Xidi for the Legacy controller backend.
  • The start menu and the in-game menu only edit mml.ini. Every part can be switched off.

The reverse-engineering tooling (a Ghidra project setup and symbol map) is in tools/ghidra.

Building from source

The recompiled game code is generated from your own MEGAMAN.EXE with tools/recomp and is never stored in the repository; without it the runtime builds without the standalone engine.

Windows. Requirements: Visual Studio Build Tools (C++ workload, x86 and x64 tools), the Android NDK's clang-cl (set RECOMP_CLANG to it) and Python 3 with pip install pyinstaller pillow.

Command Output
native\build.bat native\build\mml.dll
native\build_runner.bat x64 native\build\mml_run64.exe
build\build_release.bat dist\MML-Setup.exe (also rebuilds the runtime and the start menu)

build_release.bat needs MML_GAME_DIR set to a game folder that holds the redistributable DLLs (SDL3.dll, x64\SDL3.dll, librashader.dll and the wrappers) and the intro video, so they can be packaged. librashader is built from source; see docs/BUILDING-librashader.md.

Android. Requirements: the Android SDK with build-tools, platform 35 and NDK 27, the JDK that comes with Android Studio, SDL3's source and SDL3 built for Android (arm64-v8a).

Command Output
python android/build_android.py android\build\mml.apk

The paths are set with environment variables (ANDROID_SDK, JAVA_HOME, SDL3_SRC, SDL3_ANDROID); MML_GAME_DIR provides the intro video to bundle. See the top of android/build_android.py.

Linux. Requirements: clang, Python 3, glslangValidator and spirv-opt (glslang and SPIRV-Tools), the development files of FreeType and fontconfig, and SDL3 built for Linux (installed into a folder with include and lib).

Command Output
python3 linux/build_linux.py linux/build/mml-linux and mml-linux-<version>-x86_64.tar.gz

The paths are set with environment variables (SDL3_LINUX, SDL3_SRC, MML_LINUX_OUT); MML_GAME_DIR provides the intro video to bundle. See the top of linux/build_linux.py.

Icons are made from the artwork in art/icon with tools/icons/make_icons.py.

Credits and licenses

The project's own code is MIT licensed (see LICENSE). It ships these open-source components; full licenses are in licenses/ and sources in THIRD-PARTY-NOTICES.txt:

  • SDL3 (controller input; on Android and Linux also the window, audio and the app), zlib
  • librashader (RetroArch shader presets), MPL-2.0
  • pl_mpeg (intro video), MIT
  • DSOAL and OpenAL Soft (audio), LGPL-2.1
  • DDrawCompat (Compatibility renderer), 0BSD
  • Xidi (Legacy controller backend), BSD-3-Clause

On Linux, text is drawn with the system's own FreeType and fontconfig, which are not included.

The Legacy controller configuration builds on the Xidi setup from KuroRaiden's Mega Man Legends PC Fix repack (@NC_KuroRaiden).

Subtitles and Japanese voices

The cutscenes' English subtitles show with the English voices and with the Japanese ones. The Japanese voices are built on the player's own computer or device from their copy of Rockman DASH (the Japanese PC version). Nothing of either game comes with the patch.

  • Subtitles: the English subtitles are the work of the Rockman DASH PSP English project (JamesAZ0 and its contributors), who transcribed the US voice acting and timed the lines to it. Setup (or the start menu on Android and Linux) downloads its script/subtitles_en.csv (commit 7d49ceb) from that repository and converts it for the PC version; this repository and the patch's downloads never contain it. That project's work is under the MIT license (Copyright (c) 2026 The Rockman DASH PSP English project contributors). The lines belong to Capcom.
  • Through that project: it credits OpenAI's Whisper, which it used to transcribe the English voice acting for the timings, Estil's GameFAQs script, which it used to check the transcripts, and OmbraRD's DashEditor, whose research into the game's file formats was the starting point of its tools.
  • The Japanese PSX English patch: Gaiko's Mega Man Legends Japanese PSX English patch (v1.1.13, Romhacking.net) led us to the PSP project and its subtitle timing.

Research

  • The Cutting Room Floor: its list of the regional differences between Mega Man Legends and Rockman DASH guides the optional Japanese-version features.

Mega Man Legends is a trademark of Capcom. This project is not affiliated with Capcom.

About

Project to patch and modernize the abandonware PC port of Megaman Legends, adding widescreen support, modern controller layout, sound fixes and more!

Resources

Stars

14 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages