Skip to content

Releases

Metal Slug 3 Recompilation v0.2.1 — audio fix

Choose a tag to compare

@omegakatana92 omegakatana92 released this 27 Oct 02:33

Metal Slug 3 Recompilation v0.2.1 — audio fix

This release fixes the audio dropout at character select and delivers a
continuous attract/title/select/Mission 1 soundtrack. No ROMs or BIOS images
are included; use your own legally obtained MAME mslug3 and neogeo dumps.

Root cause

The Z80 M1 bank window was masked with
(M1 size - 0x10000 - 1) & 0x3ffff (0x2ffff). That mask clears bit 16, so
a bank value of 0x10000 wrapped to file offset 0. During soldier select the
M1 driver selected that bank, read the fixed M1 code instead of the music
sample table, and stopped the BGM stream.

The correction uses MAME's audio-region mask, (size - 1) & 0x3ffff
(0x3ffff), with no extra 0x10000 file base. audio_take_samples() also
calls audio_sync() so the Z80 sequencer keeps running when the 68000 is not
polling a sound port. This matches the verified KOF '96 correction.

Validation

  • WAV: 67.6 s, 55,555 Hz stereo, peak 29,938, 0 silent one-second
    windows from 30 s onward
    . The 22–29 s gap is the same attract-mode gap in
    MAME; character select and Mission 1 are continuous.
  • At frame 2700, all four M1 bank windows, Z80 PC, command ring and driver RAM
    match MAME byte-for-byte.
  • Native and interpreter modes both produce the corrected timeline.
  • --verify: 1,829,992 blocks checked, 0 mismatches.
  • Native coverage: 99.86%.

Assets

File Platform
Metal_Slug_3-AudioFixed-x86_64.AppImage Steam Deck / Linux x86_64
Metal_Slug_3-Windows-x64-AudioFixed.zip Windows x64 (exe, SDL2, scripts, licences)

The AppImage auto-discovers /home/deck/.local/share/mslug3/roms, adds
--fullscreen for normal launching, and does not bundle ROMs or BIOS.

SHA256

817DB99DCF839F34F90289E37681E8A2A162E59782D1AF050AD9DC534892F8BB  Metal_Slug_3-AudioFixed-x86_64.AppImage
0C2E79AE4135BD0323F12D5CED750148C83793343AD51905C22CECEFCDC2DDA9  Metal_Slug_3-Windows-x64-AudioFixed.zip

Remaining limitations

Physical Steam Deck hardware/Gaming Mode and physical controllers were not
tested here. Subjective mix/volume was not auditioned; validation is WAV
analysis, MAME bank/state comparison and scripted gameplay. Bank-window code
still uses the bundled Musashi interpreter.

Source tag: v0.2.1.

Metal Slug 3 Recompilation v0.2.0

Choose a tag to compare

@omegakatana92 omegakatana92 released this 26 Oct 16:27

Metal Slug 3 — native static recompilation (v0.2.0)

First public source/build release of the Metal Slug 3 recompilation built on
neogeorecomp.

The game's Motorola 68000 program is translated ahead of time to C and runs
against an MVS board model, not an emulator frontend. Bank-window code falls
back to the bundled Musashi interpreter for correctness.

Assets

File Platform Notes
Metal_Slug_3-Windows-x64.zip Windows x64 Includes Metal_Slug_3.exe, SDL2.dll, ROM preparation scripts, README and third-party licences. Recommended for Windows.
Metal_Slug_3.exe Windows x64 Standalone executable; SDL2.dll is in the zip.
Metal_Slug_3-SteamDeck-x86_64.AppImage Steam Deck / Linux x86_64 chmod +x after downloading. Tested headless and fullscreen under WSL2, not on physical Deck hardware.

No game ROMs or Neo Geo BIOS images are included. You must supply your own
legally obtained MAME mslug3 set and neogeo system ROMs. See the README in
the zip/repository for the ROM preparation steps.

Verification performed

  • Windows x64 Release and Linux x86_64 builds, including the AppImage.
  • Boot → attract → coin/start → soldier select → Mission 1 gameplay.
  • --verify: 1,829,992 blocks checked over 3,200 gameplay frames, 0 mismatches.
  • Native coverage on a 4,000-frame scripted run: 99.86%.
  • Audio: 67.6 s, 55,555 Hz stereo WAV, peak 9,760 (non-silent) on Windows,
    Linux and the AppImage. The real M1 driver and YM2610 are running. Subjective
    audio quality/volume balance was not auditioned.
  • Gameplay screenshot inspected locally; game imagery is not included in this
    repository or release.

Known limitations

  • Physical Steam Deck hardware/Gaming Mode and physical gamepads were not tested.
  • Subjective audio quality and physical Deck audio output were not auditioned.
  • Some stretches of the audio capture are silent (attract-mode gaps/effects).
  • Code reached through swapped bank windows runs in Musashi; the fixed bank is
    native.
  • No memory card support.

Licence

Original project code is PolyForm Noncommercial License 1.0.0 — no
commercial use. neogeorecomp is MIT; Musashi and superzazu/z80 are MIT; ymfm
is BSD-3-Clause; MAME-derived tables are BSD-3-Clause; SDL2 is zlib. Game ROMs,
BIOS images and ROM-derived artifacts are not distributed.

SHA256

F0655358EC32845E0BE2DA9287549546D2D41761DDA2394ACE62AF3A8FB0CB0D  Metal_Slug_3-Windows-x64.zip
E8A7C286777EFBAE632B18D324024A34C660D8A39E01EA1541F210923161BB01  Metal_Slug_3.exe
3308ADF2693ACBF0C2B5BD09280499E362D5AD8BDFA72985946AADFD886133C2  Metal_Slug_3-SteamDeck-x86_64.AppImage

Source: tag v0.2.0 (https://github.com/omegakatana92/Metal-Slug-3-Recomp).