How does one convert Codebreaker Codes to Action Replay Codes?

Discussion in 'GBA - Hardware, Devices and Utilities' started by Stephano, Aug 13, 2017 at 4:58 AM.

  1. Stephano
    OP

    Stephano I love you Charlie

    Member
    1,154
    898
    Feb 18, 2016
    United States
    Home
    So i have an action replay for my GBA which i use all the time for my GBA Fire Emblem games. A long time ago, i picked up a translated copy of FE6. However, there are no known AR codes for this game. There are, however, codebreaker codes available.

    So what is the easiest way to convert between the two code formats, if possible?
    As well, if i am able to convert the codes, how will i receive the master code for the other codes to work.



    I also have another question. My FE6 cartridge is very... strange, unlike other games where the battery is separate from the ROM, with this Translated FE6 cartridge, the save battery is actually tied to the ROM itself. It cannot be reflashed with a different battery file, and when attempting to load a battery save on a backed up ROM, it will refuse to load the battery and only play off the current save file on the ROM
    No other game i have behaves like this.
    Is there any reason why this happens?
     
  2. Shadow#1

    Shadow#1 Wii & 3DS Softmod Expert

    Member
    3,722
    979
    Nov 21, 2005
    United States
    Saves went tied to a "ROM" its always a separate chip
     
  3. Stephano
    OP

    Stephano I love you Charlie

    Member
    1,154
    898
    Feb 18, 2016
    United States
    Home
    What are you implying exactly?
    Only this game behaves like this. Pokemon ruby and various other games don't. :unsure:
     
  4. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,158
    8,899
    Nov 21, 2005
    Battery save is the term used by various emulators to mean normal save as opposed to savestate, assuming the OP mainly comes from that world rather than flash carts...
    As for the actual problem I am not sure. I would have to look at the cart to see what it is doing. Were it a big boy flash cart then it could be that the save is being overwritten with the one stored but every cheap and nasty repro I have seen does not do that. It could be that the tool you are using got confused when trying to write the save if it thinks it is a different type, however it would probably have said that. Personally I would suggest just getting and using a flash cart.

    Anyway choice link to have during all this
    http://doc.kodewerx.org/hacking_gba.html

    Codes did get encrypted so you may need a copy of CBAcrypt
    http://doc.kodewerx.org/tools.html#gba

    I am not sure what we are using to convert these days (everything I use supports both), or if indeed it is that easy to convert on the GBA. The CBA tends to be considered a lesser method, and master codes are not really necessary for AR/gameshark. If the codes start with 8 or 3 codes it is trivial, if they are the others then you might have to think for a second but the AR has all the same abilities (and a few more besides).
     
  5. Stephano
    OP

    Stephano I love you Charlie

    Member
    1,154
    898
    Feb 18, 2016
    United States
    Home
    Okay here we go...
    So my Fire emblem 6 cartridge is translated and does act very strangely. It lags when saving and has erased it's own data for one reason though.
    My Pokemon Ruby cartridge is Normal.
    I dumped both Roms and both Battery Saves. I was able to import the battery save of Ruby Just fine, but i had to use a hex editor to change the size of the FE6 save.
    Interestingly, when i loaded up the ROM backup of Pokemon Ruby with no save, it acted like a normal empty game
    But when i started my ROM backup of Fire Emblem 6 without a save battery, my files and what not where still attached to the cartridge

    I should tell y'all what program i'm using. I'm using GBA_Backup_Tool on the NDS.

    So i change some stuff to both files, make a battery export and try to put it back on the cartridge.
    Pokemon worked with the modded battery, but nothing changed with the FE6 Backup

    So this is my situation


    As for the AR and codebreaker stuff. The programs didn't seem to help.
    CBAcrypt would always give me an error when i put in a codebreaker code
    As for ARcrpyt, none of the codes i converted worked. I even tried to find a master code and it wouldn't work
    From this list... https://www.gamefaqs.com/gba/563015-fire-emblem-fuuin-no-tsurugi/faqs/35138
    I converted these codes
    upload_2017-8-14_11-26-49.png
    upload_2017-8-14_11-27-2.png
    I replaced the ## with a "71", an item value

    Its a simple code and couldn't get it to work when i put it through AR crpyt
     
  6. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,158
    8,899
    Nov 21, 2005
    Looks like it is decrypted already
    From the link above
    Code:
    3aaaaaaa 00xx 	8-bit RAM write
    xx is written to 0aaaaaaa.
    The AR equivalent
    Code:
    00aaaaaa xxxxxxyy  [a0aaaaa..a0aaaaa+xxxxxx]=yy
    Original code
    3202AB9C 0071
    Code in AR form
    0022AB9C 00000071

    As a sanity check
    http://problemkaputt.de/gbatek.htm#gbamemorymap
    02000000-0203FFFF WRAM - On-board Work RAM (256 KBytes) 2 Wait
    02040000-02FFFFFF Not used

    0202AB9C is then certainly a place I would expect to find values for inventory items.

    As for the save stuff I am at a loss, theoretically I guess you could append a save to a ROM image and it would dodge some of the saving issues but I have never heard of a flash cart doing that and that would be some exotic electronics for a repro (if they are not a simple ROM chip swap/breakout board usually we are left wondering if they employed a blind monkey on a dextox to use a flooring nail heated over a blowtorch to do the soldering). At the same time general policy around here is repros are bad and you should not be using them (pirate or not it is up to you, pay someone else for a pirated copy of something and now that is a dick move). Get a wholesome emulator or flash cart instead.
     
  7. Stephano
    OP

    Stephano I love you Charlie

    Member
    1,154
    898
    Feb 18, 2016
    United States
    Home
    Thank you again for your help.
    As far as me buying a repo, the reason why i did is because i like having physical copies of things. A flashcard wouldn't do it of me in this case. I mainly just wanted a physical copy of this specific game so that i could complete my case collection of the three GBA games. Take a look!
    upload_2017-8-14_17-42-28.png
    As for the code you gave me I do not know if it works or not due to me not having the enabler code.
    I have tried finding it myself but have not been so lucky. :(
     
  8. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,158
    8,899
    Nov 21, 2005
    I think I would rather have got a flash cart (probably something like a 3 in 1), flashed that and printed my own box and label if that mattered. Paying for pirated games, much less those also including the word of some hackers, just seems truly distasteful. I will give that it is less troublesome on the GBA compared to the NES and SNES where hacks might be a bit more emulator centric.

    You could try the code in an emulator if the AR failed -- enabler codes are only a problem for said devices which have to try to inject their own hooks in there where emulators do not usually have the problem.
     
  9. Stephano
    OP

    Stephano I love you Charlie

    Member
    1,154
    898
    Feb 18, 2016
    United States
    Home
    Well, the emulator i'm using doesn't seem to like the AR codes i'm inputing. I'm using VBA. I get an error saying it wants it in XXXXXXXX:YYYYYYYY format despite it already being in that format.