CRC on Saves

Discussion in 'NDS - ROM Hacking and Translations' started by donotbugme, Dec 10, 2006.

  1. donotbugme
    OP

    donotbugme Newbie

    is there a formula for the CRC on m3 sav's or game saves?

    like is it game dependant?
     
  2. jeklnoo

    jeklnoo GBAtemp Fan

    Member
    335
    0
    Oct 20, 2006
    United States
    game dependant.
     
  3. donotbugme
    OP

    donotbugme Newbie

    are there any tutorials to finding out how to calculate the crcs for saves after editing?
     
  4. Tanas

    Tanas GBAtemp Addict

    Member
    2,258
    25
    Aug 19, 2006
    Just rar the save and winrar will tell you the crc...
     
  5. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,696
    9,565
    Nov 21, 2005
    United Kingdom
    You could luck out and find the save is a bios crc16 but if it is not I am afraid you are in need of some assembly skills.
    BIOS crc16 is not your standard crc16 so either implement one with the data from here:
    http://nocash.emubase.de/gbatek.htm#biosmiscfunctions
    or this is what I use in hex workshop (the bios crc16 is used in the hash of the header):
    [​IMG]
     
  6. donotbugme
    OP

    donotbugme Newbie

    you wouldn't happen to have an example of how it's calculated using crc16 would you fast6191? i.e for a game
     
  7. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,696
    9,565
    Nov 21, 2005
    United Kingdom
    Those options are for the BIOS crc16 function, the only time I ever use it is when I mess around with the DS rom header:
    at 15E hex is the BIOS CRC-16 of 0 to 15D hex.
    If you want to write an app to calculate it the link I gave details how it happens.