Golden Sun Hex Editing...

Discussion in 'GBA - Game Development, ROM Hacks and Translations' started by kortexgt, Feb 26, 2010.

Feb 26, 2010

Golden Sun Hex Editing... by kortexgt at 5:57 AM (2,758 Views / 0 Likes) 5 replies

  1. kortexgt
    OP

    Newcomer kortexgt Newbie

    Joined:
    Feb 26, 2010
    Messages:
    3
    Country:
    United States
    I would like some help editing the .sav file for Golden Sun. I have read the guide (link below) and still don't quite understand. For example...let's say I want to add a mythril shirt to Ivan, unequipped. The guide says Ivan's items are from the address "880 - 89D." Great. So I go there in WinHex and then I'm lost. I tried looking up an item that that I know he has... He has an equipped Unicorn ring which is "0A." I don't see that anywhere in the block. The block is below.

    Q1) How do I recognize my current items?
    Q2) How do I add unequipped items?

    Block 880 - 89D
    00000880 000000008023000301030000000101000000000000000000C0FFC0FF0000 00 00

    Guide:
    http://www.gamefaqs.com/portable/gbadvance/file/468548/43776


    Please help [​IMG].
     
  2. Velveteer

    Member Velveteer GBAtemp Regular

    Joined:
    Sep 16, 2008
    Messages:
    129
    Country:
    Australia
    I believe that Visualboy Advance has a live text editor. You may have more luck with that.
     
  3. how_do_i_do_that

    Member how_do_i_do_that Blue Wizard is about to die.

    Joined:
    May 16, 2008
    Messages:
    4,811
    Country:
    Antarctica
    Read the section : 1.4 Item Hacking

    Items are in the form of XXYY, where XX is the Equipped or Quantity setting and YY is the item code.

    The unicorn ring is 0A and having 1 ring is set as 000A. Hexediting a ring as equipped causes you to lose stats associated to the item when you unequip it.

    In VBA the offset is found under the Memory viewer, under the WRAM, address as x02000870.


    The offsets are different if your editing the save file directly.


    [​IMG]
     
  4. kortexgt
    OP

    Newcomer kortexgt Newbie

    Joined:
    Feb 26, 2010
    Messages:
    3
    Country:
    United States
    Meh I'll try both options. I still am not understanding....
     
  5. how_do_i_do_that

    Member how_do_i_do_that Blue Wizard is about to die.

    Joined:
    May 16, 2008
    Messages:
    4,811
    Country:
    Antarctica
    How hard is it to understand the picture, it shows the memory address area to change.


    Velveteer is refering to the same thing as I am, it is unfortunate for you that he doesn't know what it is called.


    It is not both options, I only gave you one option. AS for the not understanding, TRY NOT SKIPPING EVERY OTHER DAMN WORD.

    Since I have to SPELL IT OUT for you, PAY ATTENTION.

    [​IMG]



    --------------------
    1.41 Item Addresses
    --------------------

    Issac: 5E8 - 604
    Garet: 734 - 751
    Ivan: 880 - 89D
    Mia: 9D0 - 9ED

    These are RELATIVE ADDRESSES, THAT MEANS in the save file, the address for Ivan's files can be 04880 - 0489D. To also compound your lack of understanding, the save file has 3 save game slots in it. That means if your working on say the 3rd save slot in the game would have to be at a higher offset than 04880 - 0489D, something like F2880 - F289D or something similar. That is why you want to use the memory editor in VBA. You work with only one set of addresses in the save slot. You don't have to worry about screwing up the checksum, etc.

    In a hexeditor of the save file the things are bits are flipped as YYXX instead of XXYY in the memory editor. This is where IVAN's stuff is not what you marked. This only applys to the first save slot in the save file.

    [​IMG]
     
  6. kortexgt
    OP

    Newcomer kortexgt Newbie

    Joined:
    Feb 26, 2010
    Messages:
    3
    Country:
    United States
    I got it. Thank you so much!
     

Share This Page