Recovered Hack Help?

Discussion in 'GBA - Emulation' started by Steveice10, Sep 30, 2010.

Sep 30, 2010

Recovered Hack Help? by Steveice10 at 1:33 AM (1,110 Views / 0 Likes) 5 replies

  1. Steveice10
    OP

    Member Steveice10 GBAtemp Maniac

    Joined:
    Jul 19, 2009
    Messages:
    1,052
    Country:
    United States
    Hello, I just recently recovered some GBA hacks with a deleted file recovery tool, and they all look fine from the size and in a hex editor, but VBA refuses to play them. Any help?
     
  2. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,696
    Country:
    United Kingdom
    If VBA refuses to play it then it is time to find the hacks again- I have seen those file recovery programs recover damaged files when it said all was good before and even then VBA is incredibly forgiving of GBA code.

    If you know names I am sure someone can help out

    Some links in the meantime
    http://www.pocketheaven.com/ph/bubbz/
    http://www.romhacking.net/?genre=&plat...le=&author=
    http://www.romhacking.net/?genre=&plat...le=&author=

    Those three should sort the basics- maybe the odd version of fire emblem (if using an older one), some minor league pokemon hacks (poke around http://www.pokecommunity.com/forumdisplay.php?f=37 ), some advance wars hacks (check http://www.warsworldnews.com/ ), some of the golden sun stuff from atrius (do a search, this section has a bunch on it) and maybe some work on boktai 3 http://s4.zetaboards.com/BoktaiOnline/topic/426993/1/
     
  3. Steveice10
    OP

    Member Steveice10 GBAtemp Maniac

    Joined:
    Jul 19, 2009
    Messages:
    1,052
    Country:
    United States
    Ok, I would have downloaded them again, but most of them were ones I made. [​IMG]
     
  4. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,696
    Country:
    United Kingdom
    In that case we might have some options- I was not about to start on debugging a corrupted copy of working rom hack that it would have been easier to just redownload.

    You will want a copy of the original/base rom for this.

    Rather nicely the GBA does not change locations of things during hacking (thinking filesystem rebuild- pointers are a different matter) meaning the changes you see are either corruption from undeleting or your changes. I can think of many ways it would break it but there are equally many reasons why it would continue to work (especially if it is a basic hack* so it is worth trying partial hacks (playable is one thing, recovered work is quite another).

    *if it is pokemon and you used one of those hacking tools I would not hold my breath but most other roms (assuming you do not have to fight compression and/or repointing). On the other hand those tools are not the system itself so they might be able to recover your work (or at least view it for long enough for you to press control and C before reimplementing it).

    Before we get onto that the first place to look is the header- in my example earlier of the first few bytes of the file are more often than not the thing to go (VBA will run with a bad header but it has limits) and your rom hack should not have touched the header (and if it has it should not matter if your replace it) so that is the first stop. GBATA to check (and possibly repair) http://www.no-intro.org/tools.htm or more likely you do a bit of copy and paste from the base rom.

    Assuming it is not a simple header repair from here you get to systematically work through you recovered file and overlaying any changes into the rom you are rebuilding like you would if you were using corruption to find/test something or trying to reverse engineer another hack/using region dupes to infer things.
     
  5. Steveice10
    OP

    Member Steveice10 GBAtemp Maniac

    Joined:
    Jul 19, 2009
    Messages:
    1,052
    Country:
    United States
    If I was using Pokemon Emerald to hack, where would I copy/paste the Header from/to in a Hex Editor to fix it?
     
  6. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,696
    Country:
    United Kingdom
    http://nocash.emubase.de/gbatek.htm#gbacartridges although ignore the leading 8 on those addresses (that is just the place it starts in the normal memory rather than one the rom image which starts at 0).

    The first proper instructions (which may well have been touched if you used a tool- where it searches for free space it will also change where the rom goes looking for it and that means in the actual binary) can be found http://img141.imageshack.us/img141/6633/id...eginninguy2.png (image thanks to bunsy in this thread http://gbatemp.net/index.php?showtopic=39979&hl= ) so I would be hesitant about overwriting too much.
     

Share This Page