Locating an offset in the overlay.

Discussion in 'NDS - ROM Hacking and Translations' started by RadioShadow, Dec 21, 2011.

Dec 21, 2011
  1. RadioShadow
    OP

    Member RadioShadow GBAtemp Advanced Fan

    Joined:
    Aug 30, 2007
    Messages:
    525
    Location:
    UK
    Country:
    United Kingdom
    Okay, what I'm trying to do is basically have a text box display at the start of a War Room match in Advance Wars: Dual Strike. Now I've pretty much know how to do this, but I'm unsure how to tell the game which text offset to use. There are actually 255 points which lead to the word "Blank" and don't get used in the game, which is perfect to use as custom text.

    Below is the code to display a text box on top with COs mug on the left:
    17 00 00 00 00 00 00 00
    05 00 00 00 00 00 00 00
    39 00 00 00 00 00 00 00
    05 00 00 00 00 00 00 00
    19 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 40
    18 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00
    04 00 00 00 00 00 00 00
    The two "05" in bold tell the game which CO image to display. The bit I'm a bit confused with is on "40 18".

    I know which pointer that leads to:
    Overlay_0000 - 67AE8
    RAM - 02315048
    Offset at location - B8483102
    ASCII Text in RAM - 023148B8

    I just don't know how the game calculates to read the offset at the location in the overlay. Any ideas?
     
  2. Normmatt

    Member Normmatt Former AKAIO Programmer

    Joined:
    Dec 14, 2004
    Messages:
    2,135
    Country:
    New Zealand
    If i was you I'd start by setting a read breakpoint on 02315048 then trace back the code to workout how it calculates that address..
     

Share This Page