Castlevania: Portrait of Ruin save editor?

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

Dec 14, 2006
  1. CHRoNiCWiLL
    OP

    Newcomer CHRoNiCWiLL Member

    Joined:
    Dec 13, 2006
    Messages:
    12
    Country:
    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

    Newcomer WangJang Advanced Member

    Joined:
    Jul 16, 2006
    Messages:
    78
    Location:
    USA
    Country:
    United States
    can you upload a save ? i will take a look if i can find the checksum routine.
     
  3. dsrules

    Member dsrules GBAtemp Psycho!

    Joined:
    Sep 20, 2005
    Messages:
    3,288
    Country:
    or just use dipstar codes to cheat
     
  4. WangJang

    Newcomer WangJang Advanced Member

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

    Sorry.
     
  5. Normmatt

    Member Normmatt Former AKAIO Programmer

    Joined:
    Dec 14, 2004
    Messages:
    2,135
    Country:
    New Zealand
    Which savetype is it and are you using the latest DeSmuME code?
     
  6. WangJang

    Newcomer WangJang Advanced Member

    Joined:
    Jul 16, 2006
    Messages:
    78
    Location:
    USA
    Country:
    United States
    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

    Newcomer WangJang Advanced Member

    Joined:
    Jul 16, 2006
    Messages:
    78
    Location:
    USA
    Country:
    United States
    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

    Newcomer WangJang Advanced Member

    Joined:
    Jul 16, 2006
    Messages:
    78
    Location:
    USA
    Country:
    United States
    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

    Member thegame07 GBAtemp Psycho!

    Joined:
    Oct 16, 2006
    Messages:
    3,860
    Country:
    United Kingdom
    i have a ds-x is there anyway i can help ???
     
  11. WangJang

    Newcomer WangJang Advanced Member

    Joined:
    Jul 16, 2006
    Messages:
    78
    Location:
    USA
    Country:
    United States
    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

    Member thegame07 GBAtemp Psycho!

    Joined:
    Oct 16, 2006
    Messages:
    3,860
    Country:
    United Kingdom
    love your work keep it up [​IMG] i would have helped if i could:D
     
  13. WangJang

    Newcomer WangJang Advanced Member

    Joined:
    Jul 16, 2006
    Messages:
    78
    Location:
    USA
    Country:
    United States
    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

    Newcomer dakine Member

    Joined:
    Oct 28, 2006
    Messages:
    14
    Country:
    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

    Member thegame07 GBAtemp Psycho!

    Joined:
    Oct 16, 2006
    Messages:
    3,860
    Country:
    United Kingdom
    yeah i will be happy to help [​IMG]
     
  16. pysio

    Newcomer pysio Member

    Joined:
    Nov 30, 2005
    Messages:
    29
    Country:
    Poland
    game is very easy - 20h and 95% of all
     
  17. -EX-

    Banned -EX- Racer

    Joined:
    Aug 16, 2006
    Messages:
    534
    Location:
    Tokyo
    Country:
    Japan
    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

    Newcomer ferdz_33 Newbie

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

    Newcomer chuuu Newbie

    Joined:
    Dec 5, 2006
    Messages:
    9
    Country:
    Belgium
    if you betatest, make sure you backup your savegame before editing [​IMG]
     
  20. MohammadKoush

    Newcomer MohammadKoush Member

    Joined:
    Jan 19, 2004
    Messages:
    42
    Country:
    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
     

Share This Page