How do you patch .nds files?

Discussion in 'NDS - ROM Hacking and Translations' started by sporkonomix, Sep 24, 2011.

  1. sporkonomix
    OP

    sporkonomix Advanced Member

    Newcomer
    78
    24
    Jul 12, 2010
    United States
    I'd like to try out New Super Mario Bros 3 and I have the patch and ROM. However, the files included with the patch are .exes. I can't run them! Can you use .xdeltas with the `patch` utility that comes with most distros? I'm a bit lost here.
     
  2. twistedfatal

    twistedfatal Advanced Member

    Newcomer
    74
    7
    Sep 13, 2009
    United Kingdom
    you will need wine (windows emulator for linux) once you have this you will need to open xdelta gui in wine
     
  3. Rydian

    Rydian Resident Furvertâ„¢

    Member
    27,883
    8,110
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    Or he could just use the linux version of xdelta in the command line, after getting it from his distro's package manager.

    Make patch:
    xdelta -e -s old_file new_file delta_patch

    Apply patch:
    xdelta -d -s old_file delta_patch patched_file

    Those are my copy-paste instructions, but I'm not sure if the syntax will be the same.
     
  4. sporkonomix
    OP

    sporkonomix Advanced Member

    Newcomer
    78
    24
    Jul 12, 2010
    United States
    Unfortunately, the patch is apparently only designed for use with the Windows version of xdelta. I did what I could to apply the patch with no dice. The error message I got was "xdelta: NSMB.xdelta: bad magic number: not a valid delta"

    I'm not installing wine because there's no reason that this shouldn't be doable on Linux.
     
  5. chaosdarkneo

    chaosdarkneo GBAtemp Advanced Fan

    Member
    530
    25
    Sep 13, 2009
    United States
    ...There are numerous reasons why this wouldn't be doable on Linux.

    1. The patch creator uses a Windows machine.
    2. As you said, the xdelta is usable only on the Windows version.

    If the creator had enough time to simply make a patch for Linux (simple enough, right?), then you would be fine. But he didn't.
     
  6. Rydian

    Rydian Resident Furvertâ„¢

    Member
    27,883
    8,110
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    There's xdelta2 and xdelta3 IIRC, or some sort of rift... if one doesn't work try the other.
     
  7. chaosdarkneo

    chaosdarkneo GBAtemp Advanced Fan

    Member
    530
    25
    Sep 13, 2009
    United States
    If you're really desperate, PM me. I have a way for you to get it.