How to extract Title ID from a cia?

Discussion in '3DS - Homebrew Development and Emulators' started by Damian666, Feb 5, 2016.

  1. Damian666
    OP

    Damian666 Coder from Hell

    Member
    4
    Mar 24, 2010
    Netherlands
    In your code...
    I want to know how I can find the ID, I want to use it to make a small program to rename cia's etc.

    some have the CTR-**** as string in them, which is easy, but some lack these, so that's not good...

    any ideas?
     
  2. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
  3. Damian666
    OP

    Damian666 Coder from Hell

    Member
    4
    Mar 24, 2010
    Netherlands
    In your code...
    thanx for the reply mate, but I meant on a pc, not the 3ds :)
     
  4. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
  5. Damian666
    OP

    Damian666 Coder from Hell

    Member
    4
    Mar 24, 2010
    Netherlands
    In your code...
    yeah, I read file in a string, then search for CTR-, mostly works, but also very unreliable :(

    that's why I try title id now, so if I read it correctly, its at hex 0x3A50 ?
     
  6. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    Yes, at least for a good amount of CIA files:
    [​IMG]
     
  7. Damian666
    OP

    Damian666 Coder from Hell

    Member
    4
    Mar 24, 2010
    Netherlands
    In your code...
    nice, lets see if I can get something done with it :)
     
  8. Damian666
    OP

    Damian666 Coder from Hell

    Member
    4
    Mar 24, 2010
    Netherlands
    In your code...
    yeah... still not very reliable I'm afraid >.<

    if you drag a file on this prog, it should show the ID, but not always...

    if you just click it, it asks to select a cia file.

    your program has a id, but things like the hbl cia doesn't...
     

    Attached Files:

  9. RainThunder

    RainThunder GBAtemp Regular

    Member
    3
    Jun 22, 2012
    Hanoi
    You can extract titleid of CIA files from its tmd. Read here and here for more info.

    Warning: Spoilers inside!
     
    Last edited by RainThunder, Feb 5, 2016
    tranxuanthang likes this.
  10. PRAGMA

    PRAGMA GBAtemp Advanced Maniac

    Member
    9
    Dec 29, 2015
    Ireland
    127.0.0.1
    If you just need to figure out what ID your game is to delete it or something just look it up on: http://3dsdb.com
     
  11. Damian666
    OP

    Damian666 Coder from Hell

    Member
    4
    Mar 24, 2010
    Netherlands
    In your code...
    that py code works nicely, now I have to figure out to get that to vb or something :P
     
  12. Luglige

    Luglige hiatus

    Member
    5
    Jan 24, 2016
    Antarctica
    under your bed
    I love rom hacking (SNES and NES are my favorites) but I wanna learn to "Rom hack" 3ds or something like that. I know that SNES and 3DS are way different (i think) but it would be cool to learn about it. Maybe I'll learn someday
     
  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