AWDS - Unit Data Layout

Discussion of hacking, editing and developments in Advance Wars games.
Remember, no Rom Requests
User avatar
RadioShadow
Rank: Holding the Mega Drive controller
Location: UK, England

AWDS - Unit Data Layout

Post by RadioShadow » Fri Jan 08, 2010 8:34 am

The AWDS unit data is similar to to AW2. The interesting stuff I found is storing unit(s) in a unit.

Below is an example of the Unit Data layout:

------------------------------------------------------------------------------
Jake's Trial (Normal) Unit Data:

FE 01 00 00 00 00 00 00 00 00 00 00 00 - Player 1 Unit Header
03 06 01 00 64 00 63 00 00 00 01 03 06 - Unit 1, Infantry at 4 x 7
06 07 02 00 64 03 46 00 00 00 01 06 07 - Unit 2, Mech at 7 x 8
05 07 05 00 64 09 46 00 00 00 01 05 07 - Unit 3, Tank at 6 x 8
FE 02 00 00 00 00 00 00 00 00 00 00 00 - Player 2 Unit Header
0B 04 01 00 64 00 63 00 00 00 01 0B 04 - Unit 1, Infantry at 12 x 5
0B 05 01 00 64 00 63 00 00 00 01 0B 05 - Unit 2, Infantry at 12 x 6
08 06 05 00 64 09 46 00 00 00 01 08 06 - Unit 3, Tank at 9 x 6
FF 00 00 00 00 00 00 00 00 00 00 00 00 - End of Unit Header
00 __ __ __ __ __ __ __ __ __ __ __ __ - End of Unit Data
------------------------------------------------------------------------------

06 07 02 00 64 03 46 00 00 00 01 06 07

06 = X-Coordinate of Unit.
07 = Y-Coordinate of Unit.
02 = Unit Type.
00 = 0B - Unit is Loaded in a Unit / 10 - Unit is carrying Unit(s).
64 = HP (100).
03 = Current Ammo (Second Weapon).
46 = Current Fuel.
00 = Which 1st Unit to Carry (from the list in the header).
00 = Which 2nd Unit to Carry (from the list in the header).
00 = Unit AI.
01 = Always seems to be 1, unsure what it does.
06 = Unsure what it does but in WR/VS Unit data, value is same as X Position.
07 = Unsure what it does but in WR/VS Unit data, value is same as Y Position.

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

Re: AWDS - Unit Data Layout

Post by Xenesis » Fri Jan 08, 2010 9:23 am

Hah, this is practically identical. Nice work :)
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

Who is online

Users browsing this forum: Multivac [Bot] and 0 guests