File format · .s3m

ScreamTracker 3 (.S3M) Module File Repair and Recovery

ScreamTracker 3 S3M music module files: format structure, common corruption causes, recoverable data, and how damaged tracker songs are repaired.


ScreamTracker 3 module files — recognized by their .S3M extension — are digital music compositions created with ScreamTracker 3, a seminal MS-DOS-era tracker program developed by Future Crew in the early 1990s. Alongside formats like MOD, XM, and IT, the S3M format became one of the most widely used module formats in the demoscene and tracker music communities. Each S3M file is a self-contained "song" that packages musical patterns, instrument references, and sample data into a single file, allowing the music to be played back identically on any compatible player. Our team frequently encounters damaged or unreadable S3M files from musicians, archivists, and hobbyists — and in most cases, a substantial portion of the musical data can be recovered.

What the S3M Format Is and What Software Uses It

ScreamTracker 3 was released around 1993 by Future Crew, a renowned Finnish demoscene group. The S3M format was designed as an evolution of earlier tracker formats (such as the original 4-channel MOD format), offering support for more channels (up to 32), both digitized instrument samples and AdLib/OPL2 FM-synthesis instruments, and a more flexible pattern system. The format proved enormously popular throughout the 1990s demoscene and was supported by a wide range of trackers and players.

Software that creates, edits, or plays S3M files includes:

  • ScreamTracker 3 — the original editor, running under MS-DOS.
  • FastTracker II and OpenMPT (ModPlug Tracker) — later trackers that can import or export S3M files.
  • MilkyTracker — a cross-platform tracker with S3M import support.
  • Renoise — a modern tracker that can import S3M modules.
  • Numerous media players, including VLC media player, MikMod, ModPlug Player, XMPlay, and foobar2000 (with components), can play S3M files.

The S3M format also influenced later formats. The IT (Impulse Tracker) format, for example, built upon many of ScreamTracker 3's concepts while adding further capabilities.

Structure and Key Technical Facts

An S3M file is a binary file with a well-defined internal structure. The format stores all the information needed to reproduce the song: the sequence of patterns to play, the note and effect data within each pattern, the list of instruments used, and the actual audio sample data for sampled instruments. The key structural elements are:

  • File header — The header occupies the first 96 bytes of the file and contains critical metadata: a song title (28 bytes), a signature identifier, the number of orders (pattern entries in the song sequence), the number of instrument entries, the number of pattern entries, flags, the created-with tracker version, and the file format version. The header also contains a pointer (offset) to where the pattern data and instrument data begin in the file.
  • Order list — Following the header is the order list, which defines the sequence in which patterns are played. Each entry is a single byte referencing a pattern number. The order list can be up to 255 entries long, terminated by a 0xFF byte.
  • Parapointers — S3M files use a system of 16-bit pointers (often called "parapointers") to locate instruments and patterns within the file. Each pointer is divided by 16 to yield the actual byte offset, a design choice rooted in the MS-DOS memory model.
  • Instrument headers — Each instrument has a header that describes its type (digitized sample or FM/AdLib instrument), volume, and — for sampled instruments — a pointer to the sample data, the sample length, loop points, and tuning information.
  • Pattern data — Patterns contain the actual note, instrument, volume, and effect commands arranged in rows and channels. S3M patterns use a variable-length run-length encoding scheme for efficiency.
  • Sample data — At the end of the file (or at offsets indicated by the instrument headers) is the raw PCM audio data for each digitized instrument.

The file signature (magic bytes) for an S3M file is typically found at byte offset 44: the characters SCRM (hex: 53 43 52 4D). This signature is one of the most reliable ways to identify a genuine S3M file regardless of its filename or extension.

Why S3M Files Become Corrupt or Unreadable

Despite their relatively robust design, S3M files can become damaged for many reasons. The most common causes we see include:

  • Incomplete or interrupted writes — If ScreamTracker or another editor crashes, or if the system loses power while saving, the file may be truncated. A truncated S3M file might have a valid header but be missing pattern data or sample data at the end.
  • Transfer and encoding errors — In the BBS and early internet era, S3M files were frequently transferred over unreliable connections. Modern transfers can also introduce errors if a file is sent through systems that alter line endings or character encoding. S3M files are binary; any tool that reinterprets them as text can corrupt them.
  • Improper decompression — S3M files were commonly distributed inside compressed archives (ZIP, ARJ, RAR, LHA). If the archive itself is partially damaged, the extracted S3M may contain byte-level errors.
  • Disk and storage degradation — Files stored on aging floppy disks, failing hard drives, or degrading optical media can develop bad sectors, leading to unreadable regions within the file.
  • Header damage — If the file header is overwritten or corrupted, players may refuse to open the file entirely, even if the bulk of the pattern and sample data is intact. A corrupted SCRM signature or invalid parapointer values will cause most software to reject the file.
  • Malware or ransomware — Though less common for module files, malware can encrypt, rename, or damage S3M files like any other file on disk.

What Data Can Be Recovered

The good news is that S3M's self-contained, structured design makes partial recovery very feasible in most cases. Depending on the nature and extent of the damage, we can typically recover:

  • The song title and header metadata — Even when pattern data is damaged, the header often survives intact, preserving attribution and basic song parameters.
  • Pattern data — Musical patterns (the note, instrument, and effect information) can often be recovered even if some rows or channels are corrupted. Partially damaged patterns may be reconstructable by analyzing the run-length encoding and identifying valid versus damaged regions.
  • Instrument definitions — Instrument headers contain volume, loop, tuning, and sample-pointer information. If these headers survive, the instruments can be restored even if the sample data needs separate recovery.
  • Sample data — Raw PCM audio samples are usually the largest portion of the file. Even when headers or patterns are damaged, we can often locate and extract the audio data directly by scanning for valid sample waveforms, then re-link them to reconstructed instrument entries.
  • The order list — The song's pattern sequence can frequently be recovered from the order list, allowing the original arrangement to be restored.

If the file is truncated — missing its ending — we can usually recover everything up to the point of truncation and reconstruct a playable file from the surviving data.

How Recovery Works

Recovering a damaged S3M file involves several stages, each tailored to the specific failure mode:

  1. Initial assessment and hex-level inspection — We begin by examining the file at the byte level to determine the nature and extent of the damage. We check the SCRM signature, validate the header fields, and verify that the parapointers point to valid offsets within the file.

  2. Header reconstruction — If the header is damaged, we rebuild it using known format specifications and any recoverable information from the surviving data. This may involve recalculating offsets, restoring the signature, and validating field values.

  3. Pattern repair — Damaged pattern data is analyzed row by row. S3M's encoding uses special markers to indicate channel and row information; by parsing these markers, we can identify where corruption begins and ends, often allowing us to reconstruct valid (if incomplete) patterns.

  4. Sample extraction — We scan the file for continuous regions of valid PCM audio data. Each region is evaluated for characteristics consistent with tracker samples (e.g., reasonable length, valid loop points, waveform continuity). Recovered samples are then re-associated with their instrument entries.

  5. Reassembly and validation — Once the components are recovered and repaired, we reassemble them into a valid S3M file. The reconstructed file is then tested in multiple players (such as OpenMPT, XMPlay, and VLC) to confirm that it loads and plays correctly. Where appropriate, we can also convert the recovered data to a more modern format (such as IT or XM) if the original S3M cannot be fully restored.

  6. Alternative format export — In cases where the S3M structure is too damaged for a faithful reconstruction, we can often export the recovered patterns and samples into a new project file, preserving the musical content even if the original file structure is lost.

FAQ

What is an S3M file?

An S3M file is a music module file created with ScreamTracker 3, a tracker program developed by Future Crew in the early 1990s. It contains a complete song — including note patterns, instrument settings, and audio samples — in a single self-contained file.

How can I tell if my S3M file is corrupt?

Common signs include the file refusing to open in any tracker or player, error messages about invalid headers or unknown formats, playback that stops abruptly, or instruments that sound wrong or are missing. A hex editor can confirm whether the SCRM signature at byte offset 44 is intact.

Can a truncated S3M file be recovered?

Yes, in most cases. If the file was cut off due to an interrupted save or transfer, everything before the truncation point is typically recoverable. We can reconstruct a playable file from the surviving data, though any patterns or samples that were in the missing portion will be absent.

What software can play recovered S3M files?

Recovered S3M files can be played in OpenMPT, XMPlay, VLC media player, MikMod, ModPlug Player, foobar2000 (with the appropriate component), and many other media players that support tracker module formats.

Can you recover S3M files from damaged floppy disks or old hard drives?

Often, yes. If the storage media is still partially readable, we can extract whatever data survives and work from that. Even partially read files can yield recoverable patterns and samples.

Is it possible to convert a damaged S3M file to a modern format?

Yes. If the S3M file cannot be fully repaired, we can often extract the musical data — patterns, instruments, and samples — and export it to a more modern module format such as IT or XM, or even to a project file for a contemporary tracker like OpenMPT or Renoise.


If you have a damaged or unreadable S3M file — whether it's a cherished composition from the demoscene days, an archived module from a BBS collection, or a file that simply won't load in your modern player — send it to us for a free evaluation. We'll assess the damage, determine what can be recovered, and provide a clear plan for getting your music back.

Send us your .s3m file for a free evaluation

Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.

Start a free evaluation