How to make patches?

Discussion in 'NDS - ROM Hacking and Translations' started by LGameTales, Apr 3, 2010.

Apr 3, 2010

How to make patches? by LGameTales at 7:35 PM (1,674 Views / 0 Likes) 12 Comments

    • Newcomer

    LGameTales New Member

    Member Since:
    Apr 3, 2010
    Message Count:
    4
    Country:
    United States
    I've been asking around, How do you make a patch for NDS ROMS?

    What program? I've tried both Hex Editor and Lunar IPS, but neither of them work for me. Help?
    • Member

    basher11 GBAtemp's Official Vocaloid Lover

    Member Since:
    Jun 29, 2009
    Message Count:
    4,306
    Country:
    United States
    try Xdelta GUI.
    • Newcomer

    LGameTales New Member

    Member Since:
    Apr 3, 2010
    Message Count:
    4
    Country:
    United States
    Hm.. Ill try it out.

    Edit:

    Nah, no tutorial on how to use it, and I've already taken hours trying to figure one of these programs out myself. The only 2 programs there don't do anything for me. Thx anyway.
    • Newcomer

    OzanOs New Member

    Member Since:
    Mar 14, 2010
    Message Count:
    84
    Country:
    Germany
    men for xdelta you just have to select the clean rom first and the edited one as second and let the prog create a patch..
    • Newcomer

    LGameTales New Member

    Member Since:
    Apr 3, 2010
    Message Count:
    4
    Country:
    United States
    Edited one?

    I don't have an edited one, thats what my question was. How do you make it?
    • Member

    StorMyu "I'm too old for this"

    Member Since:
    Jan 2, 2010
    Message Count:
    776
    Country:
    France
    wow wow, what kind of "patch" you want to do....?
    • Newcomer

    Slashmolder New Member

    Member Since:
    Jul 5, 2008
    Message Count:
    64
    Country:
    United States
    Learn DS assembly. Disassemble the nds file. Find the problematic code and byte patch it.
    • Member

    Rydian Resident Furvertâ„¢

    Member Since:
    Feb 4, 2010
    Message Count:
    27,886
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    You still haven't done step 1 and you're worrying about step 5.

    What are you wanting to patch, how, why?

    Let us see the big picture.
    • Reporter

    FAST6191 Techromancer

    Member Since:
    Nov 21, 2005
    Message Count:
    17,365
    Country:
    United Kingdom
    I can not speak for xdelta gui but I can speak for xdelta- it is my chosen patching method unless I have something better. Go command line if you have to. I am still rocking a v1. something version (it has moved on somewhat since this version but

    "xdelta.exe: usage: xdelta.exe COMMAND [OPTIONS] [ARG1 ...]
    xdelta.exe: COMMAND is one of:
    xdelta.exe: delta Produce a delta from ARG1 to ARG2 producing ARG3
    xdelta.exe: info List details about delta ARG1
    xdelta.exe: patch Apply patch ARG1 using file ARG2 producing ARG3"

    Assuming however the command line stuff has not changed in this regard your command will look something like
    "xdelta delta originalrom.nds hackedrom.nds patchfile.file"

    Anyhow IPS rarely works on DS roms for two main reasons- 1 is that it is limited to 16 megs in size* and 2 is that it is a dumb method and any shift in the data will be seen as a change; chances are you used some tool to rebuild the entire rom which means the entire rom has effectively changed.

    *technically it is 16 minus the end of file (EOF in ASCII) and some implementations (IPS is not exactly a standard) have a window option so you can patch a 16 meg window at X bytes in but not many patchers implement such an extension (again IPS has no real spec).

    Some threads you might want to read:

    http://gbatemp.net/index.php?showtopic=998...p;#entry1332416
    http://gbatemp.net/index.php?showtopic=127...p;#entry1683892
    • Member

    Rydian Resident Furvertâ„¢

    Member Since:
    Feb 4, 2010
    Message Count:
    27,886
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    Syntax for the current version is as follows.

    Make patch:
    xdelta.exe -e -s old_file new_file delta_patch

    Apply patch:
    xdelta.exe -d -s old_file delta_patch patched_file
    • Newcomer

    LGameTales New Member

    Member Since:
    Apr 3, 2010
    Message Count:
    4
    Country:
    United States
    If I knew how I would've tried it.
    • Member

    ShinRyouma New Member

    Member Since:
    Dec 6, 2008
    Message Count:
    956
    Location:
    Surabaya
    Country:
    Indonesia
    To translate NDS games you can use Hex Editor, I use CrytalTile2 to translate NDS games. Of course it's not easy to translate games, but if you're a programmer it would be very helpful.
    To make a patch I always use xdelta, very easy to use.
    • Member

    StorMyu "I'm too old for this"

    Member Since:
    Jan 2, 2010
    Message Count:
    776
    Country:
    France
    Yes but the text function of CT2 is horrible....

SPONSORED LINKS
 

Share This Page