How do you patch .nds files?

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

Sep 24, 2011
  1. sporkonomix
    OP

    Newcomer sporkonomix Advanced Member

    Joined:
    Jul 12, 2010
    Messages:
    78
    Country:
    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

    Newcomer twistedfatal Advanced Member

    Joined:
    Sep 13, 2009
    Messages:
    74
    Location:
    United Kingdom
    Country:
    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

    Member Rydian Resident Furvertâ„¢

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    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

    Newcomer sporkonomix Advanced Member

    Joined:
    Jul 12, 2010
    Messages:
    78
    Country:
    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

    Member chaosdarkneo GBAtemp Advanced Fan

    Joined:
    Sep 13, 2009
    Messages:
    530
    Country:
    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

    Member Rydian Resident Furvertâ„¢

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

    Member chaosdarkneo GBAtemp Advanced Fan

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

Share This Page