My foray into the AW2 Battlemaps Shop

Discussion of hacking, editing and developments in Advance Wars games.
Remember, no Rom Requests
User avatar
Xenesis
Tri-Star CO
Tri-Star CO
Rank: Hydrocarbon Inspector
3DS Code: 2535-4646-7163
Location: 0x020232DD

My foray into the AW2 Battlemaps Shop

Post by Xenesis » Thu Jun 18, 2009 1:56 am

First half of this is pretty scruffy, but it shows where the items in Battlemaps are located. It appears that each unlock in BM has a specific pointer to a check script to see if you're allowed to purchase it, but I haven't looked into it too much yet.

Unlocky Stuff
080489e2 - Base for battlemaps loadout?
02027fb8

0803c37c

0803cab8
0803CC06

0803c4cc - checks if HC has been completed?

0803c7ba

0803c4be beq 0803c4c6

0803C37C: Compares if all the new AW2 War Room maps have been bought
0803C7CC
0803C3FA

0803C7A0 - Compares the return on the result of whether the map has already been bought
0803C7C6 -> 0803C3F6 -> 0803CA70 Checks whether new 2p/3p/4p/Predep have been bought?

0849EDB0 - Something BM related?

0803cbc4 ->
0803cA00 - Script that adds "campaign completed status".

0803c580

0803C7BA - Base shop routine to check availability.

0849EDb0 - Base shop stuff pointer?
02027FB0

08017704 - Routine that subtracts battle maps points upon a purchase.
08048A32 - Routine that loads points for display in the battle maps menu - Seems to be held at 02017C50 when in use?
080487B4 - Seems to load the cost of items in Battle Maps, the text ID used to display and what icon is used.

0849EDB0 - Base Battlemaps Pointer?

Format seems to be 0x18 Bytes per item.

"Grit" In battlemaps:
0849EDF8 - Icon used for Grit (2 Bytes)
FC - Displayed String Text ID (2 Bytes)
0849EDFC - Cost to purchase Grit (4 Bytes)
EE00 - ??
EE0C - Pointer to text that displays when you opt to purchase said CO

1800 1C0A 58020000 B5C40308 7DC90308
05000000 68254C08

Line 1:
Icon ID
Item Name
Item Cost

Line 2:
Pointer to Text options. At the pointer, the following:
16 Bytes: First Text command. (Description of item)
16 Bytes: Second text command. (Would you like to buy this)
16 Bytes: Third command?

Format:
1A 00 00 00 00 00 00 00 - "Say This"
05 0B 00 00 00 00 00 00 - "This will let you use Grit outside of Campaign Mode!" (Text ID of string 1)

03 0B - "Is this what you are after Y/N?" dialog

Icon List:
0x13 - "Power"
0x14 - "Super Power"
0x18 - "Map"
0x19 - "CO"
0x1A - "CO Colour Edit"

Items in Battlemaps Order:
0849EDB0 - Sound Room
0849EDC8 - Hard Campaign
0849EDE0 - Olaf
0849EDF8 - Grit
0849EE10 - Colin
0849EE28 - Kanbei
0849EE40 - Sonja
0849EE58 - Sensei
0849EE70 - Eagle
0849EE88 - Drake
0849EEA0 - Jess
0849EEB8 - Lash
0849EED0 - Adder
0849EEE8 - Hawke
0849EF00 - Nell
0849EF18 - Sturm
0849EF30 - Hachi
0849EF48 - Colour Edit Max
0849EF60 - Colour Edit Sami
0849EF78 - Colour Edit Olaf
0849EF90 - Colour Edit Grit
0849EFA8 - Colour Edit Colin
0849EFC0 - Colour Edit Kanbei
0849EFD8 - Colour Edit Sonja
0849EFF0 - Colour Edit Sensei
0849F008 - Colour Edit Eagle
0849F020 - Colour Edit Drake
0849F038 - Colour Edit Jess
0849F050 - Colour Edit Flak
0840F068 - Colour Edit Lash
0849F080 - Colour Edit Adder
0849F098 - Colour Edit Hawke
0849F0B0 - Colour Edit Nell
0849F0C8 - Colour Edit Sturm
0849F0E0 - Colour Edit Hachi
0849F0F8 - Map Pay Dirt
0849F110 - Map Long Road
0849F128 - Map Nest Egg
0849F140 - Map The Trident
0849F158 - Map Banker Hills
0849F170 - Map Missile Plains
0849F188 - Map Lost Basin
0849F1A0 - Map Risky Vale
0849F1B8 - Map The Ring
0849F1D0 - Map Strong Land
0849F1E8 - Map Hourglass Isle
0849F200 - Map Lock Ridge
0849F218 - Map Portsmouth
0849F230 - Map Pipe Maze
0849F248 - Map Knotted Keys
0849F260 - Map Grid Assault
0849F278 - Map Archipelagos
0849F290 - Map Big Daddy
0849F2A8 - Map Wyrm's Eye
0849F2C0 - Map Badlands
0849F2D8 - Map Crossroad
0849F2F0 - Map Heartland
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

User avatar
RadioShadow
Rank: Holding the Mega Drive controller
Location: UK, England

Re: My foray into the AW2 Battlemaps Shop

Post by RadioShadow » Fri Jun 19, 2009 11:41 pm

So it would be possible to have just the COs and all maps unlocked?

User avatar
Xenesis
Tri-Star CO
Tri-Star CO
Rank: Hydrocarbon Inspector
3DS Code: 2535-4646-7163
Location: 0x020232DD

Re: My foray into the AW2 Battlemaps Shop

Post by Xenesis » Fri Jun 19, 2009 11:50 pm

Yep. That's actually very simple.
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

User avatar
sardaukar
Rank: Mysterious Biohazard Suited Soldier
Location: The planet Arrakis, known as Dune.

Re: My foray into the AW2 Battlemaps Shop

Post by sardaukar » Sat Jun 20, 2009 4:35 am

so its simple programming im guessing
Sardaukar are the best!
Nyeh, fremen suck.
Sardaukar: Hey man, why are we in biohazard suits?
Fremen: Dunno, but you sure look funny, hah hah!
Sardaukar: ...
*BANG*
(Fremen falls dead on the floor.)

User avatar
Luke Herzen

Re: My foray into the AW2 Battlemaps Shop

Post by Luke Herzen » Mon Aug 06, 2018 11:09 pm

I found a small thing when playing around with this.
Let's look at the entry for "Hard Campaign" @49EDB0 (HC and Sound are mixed up in the list):
14 00 EE 0A E8 03 00 00 0D C4 03 08 A1 CB 03 08
20 00 00 00 88 2F 4C 08

Blue: This pointer is the unlock condition for a said Item. Set it to "7D C3 03 08"(Pay Dirt's condition) to have an Item purchasable from the start. You can put other ones as well, though some of them are dependent on other things like the green part.
Red: This is the effect of the Item. In this case, it allows activating Hard Campaign obviously.
Green: For COs and their color edits this is identical to the CO's ID. The condition for the color edit likely checks if the CO of that ID is unlocked which is why that one didn't work when transplanting it to the HC item. Just wanted to point that out.

Who is online

Users browsing this forum: Kim Jong-un [Bot], Multivac [Bot] and 0 guests