ED64 Mempak uploader

Discussion in 'Everdrive 64' started by saturnu, Aug 28, 2012.

  1. saturnu

    saturnu Spirited Member

    Joined:
    Dec 8, 2011
    Messages:
    143
    Likes Received:
    29
    Last edited: Aug 29, 2012
  2. lovewiibrew

    lovewiibrew Site Supporter 2012

    Joined:
    May 23, 2011
    Messages:
    148
    Likes Received:
    16
    I'm a newb here. This allows us to put game saves ONTO a mempack?
     
  3. saturnu

    saturnu Spirited Member

    Joined:
    Dec 8, 2011
    Messages:
    143
    Likes Received:
    29
    this allows you to overwrite your real Controller-Pak with filename.mpk files or Dexdrive filename.n64 savegames if you convert them first to the mpk format.
     
  4. reprep

    reprep Gutsy Member

    Joined:
    Jun 8, 2012
    Messages:
    475
    Likes Received:
    1
    I need the opposite then. A way to transfer save game files to SD card or PC. I can't bother with dexdrive as i don't have a serial port.
     
  5. saturnu

    saturnu Spirited Member

    Joined:
    Dec 8, 2011
    Messages:
    143
    Likes Received:
    29
    hm maybe that's doable through the cart-savegame files and a converter on the pc-side, for the ED64 sd-interface there aren't much information released. ^^ so that's the main problem with that
     
  6. reprep

    reprep Gutsy Member

    Joined:
    Jun 8, 2012
    Messages:
    475
    Likes Received:
    1
    I hope KRIKzz will help us on that. I don't want to lose my saves on the controller pak one day. I wish to be able to store them somewhere safe.

    BTW does your program wipe all save data on controller pak and rewrites it with the content of the .mpk file or just add the content of the .mpk file to empty slots. I think the first is true though i wanted to confirm.
     
  7. saturnu

    saturnu Spirited Member

    Joined:
    Dec 8, 2011
    Messages:
    143
    Likes Received:
    29
    yes, it replaces all data :D but it's not a big deal to add support for single notes, i already experimented with that. ^^
     
  8. reprep

    reprep Gutsy Member

    Joined:
    Jun 8, 2012
    Messages:
    475
    Likes Received:
    1
    It would be a good feature to be able to use downloaded game saves for controller pak games. Currently it can only be done for games saving to the cartridge.

    The ultimate feature would be to be able to back-up game saves too.

    Currently there are two solutions for backing up controller pak saves AFAIK

    1)Dexdrive. Cons:It needs a serial port and having hard time to work with new OSes.
    2)Adaptoid USB adapter. Cons:Too expensive, over 100$
     
    Last edited: Aug 29, 2012
  9. KRIKzz

    KRIKzz Well Known Member

    Joined:
    Apr 5, 2010
    Messages:
    1,672
    Likes Received:
    2
  10. saturnu

    saturnu Spirited Member

    Joined:
    Dec 8, 2011
    Messages:
    143
    Likes Received:
    29
  11. saturnu

    saturnu Spirited Member

    Joined:
    Dec 8, 2011
    Messages:
    143
    Likes Received:
    29
    hi, i did a little bit of testing with the IO. it looks like there is nearly everything included to read from the sd.
    i used the error.h and types.h from the super-everdrive and added some missing stuff and i wrote a new sleep() function that is missing too.
    the sys.h doesn't seem to be very important for the IO.
    dma_read_s(); is now the last function that is really missing in the ED64-IO.zip.

    but the the main problem is that if i try to read from regs_ptr[0]; it hangs/freezes instantly.

    i tried to get the firmware version with 'firm = evd_readReg(REG_VER);'
    and the initial function evd_init(); hangs at val = regs_ptr[0];, too

    and btw. did i have to initialize the everdrive again or is the fpga still in sd mode after the homebrew is loaded. ^^
    or are the registers locked with evd_lockRegs()?

    sorry for that many questions :D
    i hope krikzz or someone else can help me to get bit further

    greetings, saturnu
     
  12. KRIKzz

    KRIKzz Well Known Member

    Joined:
    Apr 5, 2010
    Messages:
    1,672
    Likes Received:
    2
    Regs is locked when you start your code, but should be enought to write unlock value to KEY reg. regs_ptr[REG_KEY] = 0x1234;
    I included sys.c/h, types.h and reload archive on server. Probably your code hangs cuz your types.h contains wrong definations
     
  13. saturnu

    saturnu Spirited Member

    Joined:
    Dec 8, 2011
    Messages:
    143
    Likes Received:
    29
    perfect! big thanks again ^^

    EDIT: ok i wrote my first Controller-Pak backup onto the sd card :D i think the mempak backup/restore program is getting closer
     
    Last edited: Aug 31, 2012
  14. veganx

    veganx Dauntless Member

    Joined:
    Jan 8, 2011
    Messages:
    743
    Likes Received:
    2
    Would be possible for a mempak emulator to avoid using the hardware part at all?

    Save and load direct from the SD card?
     
  15. saturnu

    saturnu Spirited Member

    Joined:
    Dec 8, 2011
    Messages:
    143
    Likes Received:
    29
    i think if you write a prepatcher that replaces the save functions of each game with an altered one that saves to a file it could be possible...
    sounds like a nice project for someone with a lot of n64 dev-experience^^
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page