How can you detect the region in a rom file

Discussion in 'NDS - ROM Hacking and Translations' started by paddy999, Jun 11, 2010.

Jun 11, 2010
  1. paddy999
    OP

    Newcomer paddy999 Newbie

    Joined:
    Jun 11, 2010
    Messages:
    2
    Country:
    United Kingdom
    Does anyone know how you can read the region from within a ROM binary. I know that ndstool does this, but I can't find anywhere in the rom that specifies this.
     
  2. Fat D

    Member Fat D GBAtemp Maniac

    Joined:
    Nov 18, 2006
    Messages:
    1,117
    Country:
    Germany
    As far as I know, the DS has no reliable regional identification, however, the region can be guessed from the game ID, the fourth letter displaying the region the game binary was initially released in (e.g. IPKD - German Pokémon HeartGold, CHYP - Euro-Australian Professor Heinz Wolff's gravity etc.).
    The letters are the following:
    J - Japan
    E - North America (likely for English)
    P - Europe, Australia (probably PAL, as that is the defining characteristic of these regions when it comes to home consoles, which use the same system)
    K - Korea
    less common:
    D - Germany ("Deutschland")
    I - Italy
    F - France
    S - Spain

    The system is similar to that for home consoles, so http://wiibrew.org/wiki/Title_database can provide reference in many cases.
     
  3. UniqueGeek

    Member UniqueGeek PMD Researcher

    Joined:
    May 29, 2009
    Messages:
    1,329
    Country:
    United States
    I made a small tool for extracting those from an ARDS XML file, and there are more.

    C
    D - Germany
    E - US
    F - France
    H
    I - Italy
    J - Japan
    K - Korea
    P - Europe/Australia
    Q
    S - Spain
    U
    V
    W
    Y
    X
    Z
     
  4. paddy999
    OP

    Newcomer paddy999 Newbie

    Joined:
    Jun 11, 2010
    Messages:
    2
    Country:
    United Kingdom
    Outstanding, thanks to both of you.

    This was doing my head in, I just could not see how it was done. Since I already extracted the Game Code, I can just add and enumerator for the last character and this will give me the region.

    [​IMG]

    //Paddy
     
  5. dnniwa485

    Member dnniwa485 GBAtemp Fan

    Joined:
    Oct 4, 2009
    Messages:
    458
    Country:
    There are "no" region coding in Nintendo DS (except DSi) game titles.

    The region of the game is based, "where country is that game is released or localized."

    The only thing you can find on the ROM is:

    GameID: ABCF
    GameCode: 917355 ABCG
    ICON:
    Comment Line1: Tryfirst Software
    Comment Line2: NATSUME

    You can easily find those information in banner.bin and header.bin using your favorite hex editor.
    ---

    but there are 4 common localizations that release in NDS:

    J or JPN - Japan released games
    U or US - United States released games
    E or EUR - Europe released games.
    K or KOR - Korean released games.
     

Share This Page