How to import arm9.bin back into a rom with CrystalTile2?

Discussion in 'NDS - ROM Hacking and Translations' started by Salvo123, Feb 8, 2018.

  1. Salvo123
    OP

    Salvo123 Newbie

    Newcomer
    1
    Feb 8, 2018
    Canada
    Hello,

    I am new to editing roms and I just used CrystalTile2 to extract an arm9.bin from a rom, and used a hex editor to change some of the values. But I am not sure how to import/add the arm9.bin back into the roms files.

    Thanks for any help
     
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    19
    Nov 21, 2005
    United Kingdom
    If you have not changed the size (changed say and sub command to a nop or add when it deals with lives sort of thing) then I quite like ndsts from
    http://www.no-intro.org/tools.htm

    If you are just doing it for your internal use for now then you can unpack the whole ROM and rebuild with ndstool or one of its many alternatives. You can do it for a final build as well but the ending patch might be bigger if everything is moved thanks to the rebuild.

    For CT2 on the file browser if you right click the file you should have some options for it. One does compression (be aware I have seen it falsely accuse things of being compressed before) and the other should do straight import.
    Speaking of alternatives then crystaltile2 gained some competition which does better for certain things, stuff like tinke being a good start.
     
    Salvo123 likes this.
  3. Salvo123
    OP

    Salvo123 Newbie

    Newcomer
    1
    Feb 8, 2018
    Canada
    Thanks I figured out how to import my file within CT2, but I am having a problem now. I get this message:
    - File is too small! Enter a new location(V): No data after the previous position ROM makes new is recommended.

    I am trying to change the shiny encounter rate in HG/SS ROM and these are the steps I've followed in a thread on another forum:
    - Decompress arm9.bin
    - Go to offset 0070080* and change the value 08 into FF
    - Now I am trying to import this arm9.bin back into original ROM file
     
  4. FAST6191

    FAST6191 Techromancer

    pip Reporter
    19
    Nov 21, 2005
    United Kingdom
    It is saying it wants you to unpack the whole ROM, swap out the file and rebuild, similar to the ndstool thing above. That or put a location somewhere else in the ROM for it to grab it from (don't know why it does not do it itself as it would be easy for a program to do but oh well. Alternatively the newly compressed file might be smaller than it was before but again it should have handled it better than that.

    Compression wise the DS binaries have their own somewhat specialist type of it, well known and well supported by tools though.
    I would probably suggest cue's compression stuff for this
    https://gbatemp.net/threads/nintendo-ds-gba-compressors.313278/
    http://www.romhacking.net/utilities/826/

    It is the format called BLZ, elsewhere you might see it referred to as binary compression.

    From there you can use the conventional build techniques mentioned.
    ndstool if you did not have a copy
    https://filetrip.net/nds-downloads/...ntendo-ds-rom-tool-ndstool-1-50-1-f29352.html
    Usage for it should be on there.
     
    Salvo123 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice