1. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    I've managed to successfully inject my flash cart's save into the wii u (new super mario bros). it's a little more difficult than n64 saves. I had to reduce the file size from 512KBs to 8KBs by trimming everything until 1FFF in hex (8,192 bytes or the same size as a psx save exactly). then, I injected just the save with saviine, not the save state or rest mode save or else it will load and replicate the save from before. it took me a moment to figure that out. anyway, saved settings for the game will be reset, which I think might be what the .conf file is for. however, it works. :D
     
  2. AmandaRose

    AmandaRose Do what I do. Hold tight and pretend it’s a plan
    Member

    Joined:
    Aug 19, 2015
    Messages:
    7,200
    Country:
    United Kingdom
    Very interesting news. Great work as always @godreborn
     
    godreborn likes this.
  3. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08
    Member

    Joined:
    Mar 17, 2010
    Messages:
    19,817
    Country:
    Norway
    Save size will depend on the game. Most flashcarts just use a large size for every game so they don't need to keep a list of every game and their corresponding save size (SC DS One had such a list, which meant for newly released games, you would need to look up the save size online or through trial and error set it to the correct one for the game to save), since games will still work correctly with a larger size than needed but not a smaller one. The Wii U emulator appears to be a bit more intelligent than that, hence it expects the save size to be the correct one.
     
    Codemastershock and AmandaRose like this.
  4. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    yes, I examined both saves in hex to determine if it was even doable. it's 0'd out at that point with Fs, so it's heavily padded even at 8KBs.
     
    TheCasualties likes this.
  5. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    I suppose it's possible the saves may not be uniform, so you'd have to compare them. the save I got to work with an emulator is 1KB. 8,192 bytes is equal to one block, which is why it's the same as a psx save.
     
  6. Eddypikachu

    Eddypikachu GBAtemp Advanced Fan
    Member

    Joined:
    Mar 25, 2015
    Messages:
    892
    Country:
    United States
    Huh, I didn't have to trim any saves for my spirit tracks save file whenever I imported my flashcard save to the spirit tracks game I had in loadiine :O it just worked by just renaming the save file for me
     
  7. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    you may not have to trim (not sure), but I did. the section you're trimming is padded, so it doesn't matter much. the beginning of the save looked exactly the same, so it's a header, followed by save, then padding to equal a block.
     
  8. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    alright, I just tested it. the conf file can remain as it be your saved settings. the file must be trimmed though. without trimming, I got no save data read (new game in all slots). just put hex length at 2000 when you search for block from one.
     
  9. notrea11y

    notrea11y GBAtemp Regular
    Member

    Joined:
    Dec 24, 2019
    Messages:
    111
    Country:
    United Kingdom
    Now if someone could write a script/gui tool to automate the process.
     
  10. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    it might depend on the flash cart being used if it worked for loadiine. I'm using the supercard dstwo, so the save was 512KBs. it's not completely padded down below. it has some sort of footer that doesn't exist on the wii u.
     
  11. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    I've now successfully injected a save from the wii u to the nds. you just have to inject one block into the save file.
     
    Lostbhoy likes this.
  12. Lostbhoy

    Lostbhoy GBAtemp Regular
    Member

    Joined:
    Aug 23, 2009
    Messages:
    288
    Country:
    Very nice tinkering! Well done that man!
     
    godreborn likes this.
  13. Eddypikachu

    Eddypikachu GBAtemp Advanced Fan
    Member

    Joined:
    Mar 25, 2015
    Messages:
    892
    Country:
    United States
    I use the acecard 2i btw :O
     
  14. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    how big is the save? the save on the wii u is 8KB (8,192 bytes to be exact) while my supercard's is 512KBs.
     
  15. Stealphie

    Stealphie GBAtemp Maniac
    Member

    Joined:
    Mar 27, 2019
    Messages:
    1,141
    Country:
    Brazil
    I wonder if someone can make a script to instantly trim save files?
     
    godreborn likes this.
  16. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    I played around with save including making a new save to play the first world again. no issues, so I think it's good. also, no issues on the ds doing the reverse. I don't know what would happen with a trimmed save though. I just injected the 8,192 bytes or hex length of 2,000 into the 512KB save and it worked.
     
  17. Eddypikachu

    Eddypikachu GBAtemp Advanced Fan
    Member

    Joined:
    Mar 25, 2015
    Messages:
    892
    Country:
    United States
    The spirit tracks save on my flashcard is 1,024KB and the spirit tracks save on my wii u (from loadiine) is also 1,024! :O They're the same size that's why I didn't need to trim anything when transferring over save files from one to the other, acecard 2i doesn't create all that padding in the save file I guess
     
  18. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    it's possible not all saves are the same size. I only tested new super mario bros. however, the save injection method probably works for every game.
     
    Stealphie likes this.
  19. Eddypikachu

    Eddypikachu GBAtemp Advanced Fan
    Member

    Joined:
    Mar 25, 2015
    Messages:
    892
    Country:
    United States
    Try spirit tracks on your supercard and see if it gives you a 1024KB save like it did for me on my acekard 2i
     
  20. godreborn

    OP godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,205
    Country:
    United States
    looks like all my saves are 512KBs. spirit tracks is 512KBs as well.
     
    Last edited by godreborn, Aug 16, 2020
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Injection, Success, Flash