BatchGBA

Discussion in 'GBA - Hardware, Devices and Utilities' started by TrolleyDave, May 18, 2009.

  1. TrolleyDave
    OP

    TrolleyDave Philosolosophising

    Former Staff
    7,762
    231
    Jan 1, 2007
    Wales, UK
    [​IMG]

    A simple to use batch trimmer and SRAM patcher for GBA games. Simply browse to the folder containing the games you want to patch/trim, select the games you want (hold CTRL to multi-select) and hit Patch/Trim Roms! To have your games trimmed simply tick the checkbox marked Trim Roms.

    By default the path for the patched/trimmed games is a folder called OUTPUT in the folder you have BatchGBA in but this can be set to a path of your choice.

    The patcher also does more than one pass on the game so it should automatically patch multi-game roms.

    Download available on my blog here.
     
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,364
    9,167
    Nov 21, 2005
    Nice work TrolleyDave, I still get the odd question for batch patching/trimming of GBA stuff and this should work well for it.
     
  3. TrolleyDave
    OP

    TrolleyDave Philosolosophising

    Former Staff
    7,762
    231
    Jan 1, 2007
    Wales, UK
    Cheers mate, thanks for all the help you gave me when I was coding it! I still can't get SMB3 working properly though, but it doesn't work in GBATA either. I need to try the EZ client and see if it works in there.
     
  4. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,364
    9,167
    Nov 21, 2005
    If you are using an EZ4 the super mario games need 8:3 naming for some reason (we know it has to do with loading the save back into the ram on next launch but have not figured out why yet).
    I keep meaning to change it when I make a client pack but it is tedious.

    As for the help I should be thanking you, I pulled apart a few basic patches and you ran with it to completion (saved me a lot of effort).
     
  5. TrolleyDave
    OP

    TrolleyDave Philosolosophising

    Former Staff
    7,762
    231
    Jan 1, 2007
    Wales, UK
    If you hadn't have explained how the patching worked I don't think I'd have sussed it out so quickly though. Does the SMB3 run fine on the EZ4 with the 9.3 naming? If it does then the EZ-Client must patch it properly. I'll check that out to see what changes I need to make to my code. It seems to be the only game I can't get to run properly after patching. It just freezes after starting a new game with Mario doing a funky dance.
     
  6. ssjkakaroto

    ssjkakaroto Advanced Member

    Newcomer
    86
    0
    Dec 14, 2005
    Hi TrolleyDave, what about the patch for Pokemon games? I posted on your blog about it (http://trolleyguy1971.wordpress.com/2009/01/23/batchgba-013-released/).
     
  7. TrolleyDave
    OP

    TrolleyDave Philosolosophising

    Former Staff
    7,762
    231
    Jan 1, 2007
    Wales, UK
    I haven't had a chance to do it yet but I'll do it when I've got time. I need to patch them with the EZ-Client and then take the data apart, I need to do the same thing for SMB3 as well. I've been working on DSFCC so when I'm finished with that I'll sort it out. The game saves and loads properly doesn't it? It just pops up that error message when you start?
     
  8. Wehttam

    Wehttam Advanced Member

    Newcomer
    74
    0
    Jul 14, 2008
    United States
    Sioux Falls, SD
    Seeing this kind of thing on the internet is like a shining light in the middle of all the e-peen hate.

    Thanks for this. I keep having problems with Yggdra Union, and i think it's because it's too big for my Ezflash. I know it's too big for SRAM. But i'm trying to load it into NOR ritenao. And batchGBA couldn't trim it or something. I guess the game does fill up the full 32mbits. 2nd Edit: Yep, running it through NOR worked fine. Thanks for the help? [​IMG]

    Edit: I haz a kveschun: What is SRAM patching? Why might i need to do it? What games do we know need it? Is there a comprehensive list or something?

    Thanks again
     
  9. fgghjjkll

    fgghjjkll GBATemp MegaMan

    Member
    GBAtemp Patron
    fgghjjkll is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,041
    42
    Jul 7, 2008
    i think its to help do some NDS GBA stuff...
    like migrating pokemon and unlocking new shit in megaman
     
  10. TrolleyDave
    OP

    TrolleyDave Philosolosophising

    Former Staff
    7,762
    231
    Jan 1, 2007
    Wales, UK
    The only saving available in the slot 2 devices is the SRAM save types and not all GBA carts used that type of saving method, some used eeprom. So to allow the game to save on the slot 2 device it has to be altered from whatever save type it was to SRAM.
     
  11. Wehttam

    Wehttam Advanced Member

    Newcomer
    74
    0
    Jul 14, 2008
    United States
    Sioux Falls, SD
    Wait so what if i'm using a slot 1 m3real (currently using the iSakuReal OS thing) with a slot 2 ezflash? Am i affected by this? I noticed that all my games save properly, and when i sram patched some just for the heck of it, it said they used eeprom (yet, like i said, they saved perfectly fine before i did this).
     
  12. TrolleyDave
    OP

    TrolleyDave Philosolosophising

    Former Staff
    7,762
    231
    Jan 1, 2007
    Wales, UK
    It's still a slot 2 device, the cartridge is running from slot-2. It just gets copied from the slot-1 card to the slot-2 devices memory and then it runs from there. It doesn't actually change the save type string stored in the rom, when it SRAM patches the game it alters the game code itself. Don't ask me exactly what it's doing, I took the data from GBATA!
     
  13. ssjkakaroto

    ssjkakaroto Advanced Member

    Newcomer
    86
    0
    Dec 14, 2005
    It's been a while since I've tested it, but I'll check.
     
  14. Wowfunhappy

    Wowfunhappy GBAtemp Advanced Fan

    Member
    568
    158
    May 14, 2008
    United States
    Huge bump, I know, but the download link is dead. Does anyone still have it?