Castlevania: Portrait of Ruin save editor?

Discussion in 'NDS - ROM Hacking and Translations' started by CHRoNiCWiLL, Dec 14, 2006.

  1. CHRoNiCWiLL
    OP

    CHRoNiCWiLL Member

    Newcomer
    13
    0
    Dec 13, 2006
    Canada
    Any one develop a save editor program yet (Chinese is ok)?
    Or maybe someone could help me hack a save file at the beginning of the game with quick exp and max money.
     


  2. WangJang

    WangJang Advanced Member

    Newcomer
    78
    0
    Jul 16, 2006
    United States
    USA
    can you upload a save ? i will take a look if i can find the checksum routine.
     
  3. dsrules

    dsrules GBAtemp Psycho!

    Member
    3,587
    497
    Sep 20, 2005
    or just use dipstar codes to cheat
     
  4. WangJang

    WangJang Advanced Member

    Newcomer
    78
    0
    Jul 16, 2006
    United States
    USA
    never mind about the save, i found one seems i can't get this save type working in the emulator [​IMG]

    Sorry.
     
  5. Normmatt

    Normmatt Former AKAIO Programmer

    Member
    2,142
    543
    Dec 14, 2004
    New Zealand
    Which savetype is it and are you using the latest DeSmuME code?
     
  6. WangJang

    WangJang Advanced Member

    Newcomer
    78
    0
    Jul 16, 2006
    United States
    USA
    yea just grabbed a fresh snapshot and it seems to be working now, just need to find where the checksum is located inside the save so i can see where its been used.
     
  7. donotbugme

    donotbugme Newbie

    how do you go about reversing it wang ?
     
  8. WangJang

    WangJang Advanced Member

    Newcomer
    78
    0
    Jul 16, 2006
    United States
    USA
    well i first find which part of the save file contains the checksum, then i set a breakpoint on reading of this section, from there i work from the assembly and see if its the correct part thats doing the checking.

    I am busy for the next few days so i won't be able to play with this till then.
     
  9. WangJang

    WangJang Advanced Member

    Newcomer
    78
    0
    Jul 16, 2006
    United States
    USA
    Had a little free time so i tried a few extra stuff and i hit it lucky [​IMG]

    I have the save checksum(s) figured out now there is more than one, trying to get a figure on the save format now, so i can see what needs fixing etc.

    If anybody has some clues to the save format (layout) tell me please [​IMG] it can save some great time.
     
  10. thegame07

    thegame07 GBAtemp Psycho!

    Member
    3,860
    103
    Oct 16, 2006
    i have a ds-x is there anyway i can help ???
     
  11. WangJang

    WangJang Advanced Member

    Newcomer
    78
    0
    Jul 16, 2006
    United States
    USA
    Nothing at the moment you can really do, thanks for asking though!

    After loading the game onto a real flastcart i can see the menu's (yay!) so now i can see it is broken down into 6 slots + the quick save slot.

    Regarding the save file checksum, its actually a "hash" after actually going through the algorithm a few times, and looking at the checksum it jumped out at me, it was a standard SHA-1 implementation.

    3 Parts of the save file are Hashed, and stored in the bottom of the save file.

    Main Header.
    Data Block 1
    Data Block 2

    Main Header is one Hash

    Data Block 1 + Block 2 are per slot, so if you used all 7 slots you would have (2 * 7) =14 Hash's + Main Hash inside the save file.

    I have managed to locate the blocks + sizes for all of them, so as i said i have resigned the save file fine.

    I am still a little wary on how the checksums are arranged though, but i think i have it correct so i am going to hunt some values down so i can edit some stuff and see how it goes from there.
     
  12. thegame07

    thegame07 GBAtemp Psycho!

    Member
    3,860
    103
    Oct 16, 2006
    love your work keep it up [​IMG] i would have helped if i could:D
     
  13. WangJang

    WangJang Advanced Member

    Newcomer
    78
    0
    Jul 16, 2006
    United States
    USA
    I wouldn't mind having somebody beta test it later this week [​IMG] i will pm you later if you are intrested.

    I have all the data blocks and hash's sorted now and where they go etc.

    Should have a basic editor out sometime this week.
     
  14. dakine

    dakine Member

    Newcomer
    14
    0
    Oct 28, 2006
    i'd love to help beta test it. i'm pretty far in the game (more than half way) and i also have a dsx and ez4lite so i can test both to see if it works. again thanx for all the effort.
     
  15. thegame07

    thegame07 GBAtemp Psycho!

    Member
    3,860
    103
    Oct 16, 2006
    yeah i will be happy to help [​IMG]
     
  16. pysio

    pysio Member

    Newcomer
    29
    0
    Nov 30, 2005
    Poland
    game is very easy - 20h and 95% of all
     
  17. -EX-

    -EX- Racer

    Banned
    534
    0
    Aug 16, 2006
    Tokyo
    I have DS-X, SC Mini and the original Japanese cart as well, I can test saves on anything. I've finished the game, have all items list, all drops, I know everything about it. PM me when you need a test.
     
  18. ferdz_33

    ferdz_33 Newbie

    Newcomer
    8
    1
    Aug 21, 2006
    i'd love to beta test too. though i only have a supercard mini-sd to test it with. [​IMG]
     
  19. chuuu

    chuuu Newbie

    Newcomer
    9
    0
    Dec 5, 2006
    Belgium
    if you betatest, make sure you backup your savegame before editing [​IMG]
     
  20. MohammadKoush

    MohammadKoush Member

    Newcomer
    42
    1
    Jan 19, 2004
    United States
    wow cant wait plz i am at the end boss and still low on power would love to try things on my save thanx