For patch authors

Patch Author Kit: Release XDelta Patches That Just Work

Most support questions a patch author gets are “it says the file isn’t the right one”. Almost all of them disappear when the patch and readme say exactly which file they need. This kit gives you the settings, the checksum table and a readme you can copy.

  • Updated
  • Checked against Delta Patcher 3.1.6
  • 3 min read
  • Verified against primary sources · how we check

In short

  • Keep checksums on when creating the patch, so a wrong file fails loudly instead of producing a broken game.
  • Name the exact source file: name, size, CRC32 and SHA-1, in the readme and in the patch description.
  • Publish the checksum of the patched result too, so users can confirm success.
  • Test the release on a clean copy, then let users check their file against your patch.

Recommended Delta Patcher settings

Patch creation settings for public releases
SettingRecommendationWhy
Add Checksum to patchOnUsers get a clear error on the wrong file instead of a corrupt one
DescriptionName the source file and its CRC32/SHA-1Delta Patcher shows it as “Patch info” the moment the patch loads
Main compression level9 for release buildsSmallest patch; creation is slower, applying isn’t
Secondary compressionLZMA for big patches, none for maximum compatibilityLZMA shrinks patches further; very old tools (xdelta 3.0u in xdelta UI) can’t read it
Src Window SizeAuto, or larger than the file for big disc imagesLets the encoder find moved data across the whole file

Step-by-step instructions for each option are in how to create an XDelta patch. No install available? The online patcher also creates checksummed patches with a Delta Patcher description.

How to tell users which file they need

Users can’t see inside your head, and “use the USA ROM” isn’t enough. Two copies of “the USA ROM” are routinely different revisions, dumps or trims. Give them:

  1. The database name, such as the No-Intro or Redump name with region and revision tags.
  2. The exact size in bytes, and say whether it’s trimmed or headered.
  3. CRC32 and SHA-1. CRC32 is what most users can check; SHA-1 is what databases list. Get both with the file hasher.

If you create patches with the xdelta3 command line, it records your original file’s name inside the patch by default. Don’t pass -A unless you mean to remove it. The patch inspector shows that name to users.

Checksum table

If you support several versions, publish one patch per source version and a table like this:

Example checksum table (placeholder values)
Source fileSize (bytes)CRC32Patch to use
Game Title (USA).sfc (unheadered)2,097,1521234ABCDgame-usa.xdelta
Game Title (USA) (Rev 1).sfc (unheadered)2,097,1525678EF01game-usa-rev1.xdelta
Game Title (Europe).sfc (unheadered)2,097,1529ABC2345game-eur.xdelta

Readme template

Copy this into your release and replace the placeholders:

README.txt
GAME TITLE: English Translation v1.2
=====================================

APPLY THIS PATCH TO
  File:     Game Title (Japan).nds   <- No-Intro name
  Size:     134,217,728 bytes (untrimmed)
  CRC32:    1234ABCD
  SHA-1:    0123456789abcdef0123456789abcdef01234567

The patch will NOT work on trimmed, headered or already-patched files,
or on other regions/revisions.

HOW TO APPLY
  1. Check your file: https://deltapatcher.com/rom-hasher/
  2. Apply with Delta Patcher (https://deltapatcher.com/download/)
     or in a browser: https://deltapatcher.com/online-xdelta-patcher/
  3. Keep "Checksum validation" ON.

RESULT
  CRC32 of the patched file: 89ABCDEF

"The file you are trying to patch is not the right one"?
  Your file differs from the one above. See
  https://deltapatcher.com/common-errors/not-the-right-file/

CREDITS / CONTACT
  ...

Release checklist

You’re welcome to link to this site’s pages from your readme: the patch inspector for “which file do I need”, the error guides for failures, and the mobile guide for phone users. It saves you from answering the same questions in your comments.

Continue learning