+ Reply to Thread
Results 1 to 13 of 13

Thread: Where can I find sav editing information?

  1. #1
    Member Translation ContributorDeveloperROM Researcher
    Join Date
    Apr 2009
    Age
    24
    Posts
    305

    Where can I find sav editing information?

    I would like to know where I can find information on editing BW sav file. If if helps my main goal is that I want to edit the Battle Box, and fix any checksums I need to.

  2. #2
    "Quote" DeveloperGame Save ResearcherModerator evandixon's Avatar
    Join Date
    Apr 2009
    Location
    A floating island
    Posts
    1,224

    Re: Where can I find sav editing information?

    Pokegen will likely fix checksums, though I don't htink it currently edits the battle box.
    http://projectpokemon.org/forums/sho...nd-information
    (I just noticed that this thread has over 2 million views)
    NDS and GBA Save Converters

    Number 8 in the List of members sorted by post count.
    (Newsbot doesn't count, because it doesn't have as many posts as what is listed)

  3. #3
    Member Translation ContributorDeveloperROM Researcher
    Join Date
    Apr 2009
    Age
    24
    Posts
    305

    Re: Where can I find sav editing information?

    I need to fix the checksums myself.

    I have a lua script I use with DeSmuME that injects 6 random pkm files into the battle box by editing RAM. I want to do this on hardware, I was going to write a small homebrew app that would inject 6 pkm files in to the battle box by editing the sav file. but to do that I also need to fix checksums.

    I been comparing some sav files and found what I need to edit. I need to know how to calculate the battle box checksum which are at 0x20D5E, 0x23F62, 0x44D5E, and 0x47F62, as well as another checksum at 0x23F9A and 0x47F9A.

  4. #4

    Re: Where can I find sav editing information?

    Pretty sure there's no information on the battle box sav structure.

    From our experience with vsplayer data, you might not even be inserting standard pkms by the way :P

    All of the checksums I've seen (entralink storage, etc) are all the standard CRC-16 ccitt style
    Last edited by Kaphotics; Apr 9th, 2012 at 10:04 PM.

  5. #5
    Member Translation ContributorDeveloperROM Researcher
    Join Date
    Apr 2009
    Age
    24
    Posts
    305

    Re: Where can I find sav editing information?

    battle box is standard 136 byte storage pkm. both pokesav and pokegen fixed the checksum for the battle box data. I can edit the battle box data with encrypted pkm files just fine. but the battle box checksum located at the end of the data at save file offset 0x20D5E and mirrored at 0x23F62 for the list of checksums and the checksum for the list of checksums at 0x23F9A i do not know how to calculate them.

  6. #6

    Re: Where can I find sav editing information?

    0x20D5E's checksum is for the region 0x20A00-0x205DB
    Spoiler
    I included the leading zeroes; it wouldn't matter because they dont influence the checksum. Maybe Codr knows about that other region.

  7. #7
    Member Translation ContributorDeveloperROM Researcher
    Join Date
    Apr 2009
    Age
    24
    Posts
    305

    Re: Where can I find sav editing information?

    thanks for the info, ill see if i can get it the checksum calculated in the hombrew app.

  8. #8
    Banned
    Join Date
    Jun 2011
    Posts
    104

    Re: Where can I find sav editing information?

    May I know why you want to insert 6 Pokémon into the battle box by editing RAM with your homebrew app?
    Battle boxes get locked at tournaments so they cannot be modified between battles.
    So, do you plan to cheat at tournaments or what?

  9. #9
    Member Translation ContributorDeveloperROM Researcher
    Join Date
    Apr 2009
    Age
    24
    Posts
    305

    Re: Where can I find sav editing information?

    No, I do not plan to cheats at tournaments, I have no plans to enter any official tournaments at all. I am not as serious as I was in competitive battling as I was in 4th gen. I do not make teams anymore. whenever I battle I just bring 6 random competitively viable pokemon. There is a type of battling called roulette battles where each player ends up with 6 random pokemon to battle with and try to make the best of it. that is how I always battle in 5th gen even if the other player i am battling is using a solid planed out team. I just use 6 random pokemon and make the best of it. I battle alot on DeSmuME emulator and had a script that would take 6 random encrypted pkm files and inject it into the battle box data in ram and when i go to battle i just pick to use battle box and start the match with 6 randoms. but i want to have this work also on a DS as well, since i cannot have the program run while the game is running i need to instead edit the save file before i start the game to have the 6 random pokemon.

    as of now i have the hombrew app correctly calculating the crc of the battle box data and the list of checksums. now i just need to get it to write the data back to the file properly.

  10. #10
    Can you do the Tobi? Conri's Avatar
    Join Date
    Jun 2011
    Location
    Wouldn't you like to know?
    Age
    22
    Posts
    93

    Re: Where can I find sav editing information?

    Quote Originally Posted by KazoWAR View Post
    No, I do not plan to cheats at tournaments, I have no plans to enter any official tournaments at all. I am not as serious as I was in competitive battling as I was in 4th gen. I do not make teams anymore. whenever I battle I just bring 6 random competitively viable pokemon. There is a type of battling called roulette battles where each player ends up with 6 random pokemon to battle with and try to make the best of it. that is how I always battle in 5th gen even if the other player i am battling is using a solid planed out team. I just use 6 random pokemon and make the best of it. I battle alot on DeSmuME emulator and had a script that would take 6 random encrypted pkm files and inject it into the battle box data in ram and when i go to battle i just pick to use battle box and start the match with 6 randoms. but i want to have this work also on a DS as well, since i cannot have the program run while the game is running i need to instead edit the save file before i start the game to have the 6 random pokemon.

    as of now i have the hombrew app correctly calculating the crc of the battle box data and the list of checksums. now i just need to get it to write the data back to the file properly.
    I am very interested in this app of yours. Any chance it might go public when finished? Roulette battling, in my opinion, is a great way to battle and learn more about different pokemon's battling capabilities. It also, as you said, makes the trainer make the best of the team, where a trainer's real skill comes into play. I believe a trainer should be able to figure out how to use pokemon in a team, even if they are not properly planned for competitive battling. Any good trainer can make a competitive team, but it takes a great trainer to make the best of what you have.

  11. #11
    Member Translation ContributorDeveloperROM Researcher
    Join Date
    Apr 2009
    Age
    24
    Posts
    305

    Re: Where can I find sav editing information?


  12. #12
    Super Moderator Translation ContributorDeveloperGame Save ResearcherROM ResearcherRAM ResearcherIRC AOPSuper Moderator
    Join Date
    May 2010
    Age
    28
    Posts
    1,007

    Re: Where can I find sav editing information?

    can you post the source file for this? i'm curious. or maybe the whole programmer's notepad project if you're feeling ambitious.

  13. #13
    Member Translation ContributorDeveloperROM Researcher
    Join Date
    Apr 2009
    Age
    24
    Posts
    305

    Re: Where can I find sav editing information?

    cleaned up the source and added comments for the nds file, the source for the exe is included too but i didn't touch it up.

    The original link was updated.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
PPN Top 50