ROM Hack Locating an offset in the overlay.

RadioShadow

Well-Known Member
OP
Member
Joined
Aug 30, 2007
Messages
550
Trophies
1
Age
35
Location
UK
XP
629
Country
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?
 

Normmatt

Former AKAIO Programmer
Member
Joined
Dec 14, 2004
Messages
2,161
Trophies
1
Age
33
Website
normmatt.com
XP
2,187
Country
New Zealand
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?

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..
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    I @ idonthave: :)