Today is a good day to map edit.

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

Today is a good day to map edit.

Post by Xenesis » Thu Jul 27, 2006 4:08 pm

No. Seriously.

Thanks to this thread on Acmlm's:
http://board.acmlm.org/thread.php?id=6717

Alchemic is my new god.

Quite simply, we can create fully decompressed maps in the following:

Header (4 Bytes):
10 (Specifies Lz77 apparently)
zz yy xx (Specifies the length of the data (Number of tiles in the map *2 + 2)

Okay, so that's the header. After that we put the map.

Each map is split up into chunks of 9 bytes.
CB ab cd ab cd ab cd ab cd

CB is the compression byte. If you're making a fully decompressed map, this should be 00.

Then, the next eight bytes can be inputted as Tile IDs.

So, if you want a map entirely made out of plains at a single screen size, do this:

10 2E 01 00 (Header, 300 Tiles + XY Bytes)
Then, the first 9 bytes will be:
00 0F 0A 01 00 01 00 01 00

That makes the map 15x10, and gives you three plains tiles.

Then just repeat:
00 01 00 01 00 01 00 01 00
Until you fill the map.

Secondly, as a cool aside, AW2 has double width rivers.

Here's the list of Tile IDs (Warning - Stupidly long):

Terrain list:
00 Set

01 Plain
02 Low Mountain
03 Plain with Mountain peak below
04 Plain with Rubble
05 N/A
06 N/A
07 N/A
08 Sea (Land on all sides)
09 Sea (Land in Bottom Right)
0a Sea (Land in bottom)
0b Sea (Land in Bottom L, Bottom R)
0c Sea (Land L and R)
0d Sea (Land BL and TR)
0e N/A
0f N/A
10 Shoal (Land S)
11 N/A
12 N/A
13 East/West Bridge
14 East/West Bridge
15 East/West Bridge again?
16 North/South Bridge
17 Sea (Land Top/Bottom)
18 North/South River
19 East/West River
1A T Intersection North/East/West River
1B + Intersection River
1C East/West River
1D East/West Rive (South Bank only)
1E North/South River (No Banks)
1F North/South River (No Banks again?)
20 Short Mountain
21 Plain (Mountain Shadow West)
22 Tall Mountain (Cut off Top, Mountain Top at bottom)
23 Tall Mountain (Cut off Top)
24 Forest + Forest Clump (Bottom Right)
25 Forest + Forest Clump (Bottom Right)
26 Forest + Forest Clump (Bottom)
27 Forest + Forest Clump (Bottom Left)
28 Sea (Land Right)
29 Sea (Land Right + Bottom curve)
2A Sea
2B Sea (Land Left + Bottom curve)
2C Sea (Land Left)
2D Sea (Land Top L, Bottom R)
2E Shoal (Land R)
2F Shoal (Land R-Bottom curve)
30 N/A
31 Shoal (Land L-Bottom Curve)
32 Shoal (Land L)
33 Sea (Land L+R)
34 Sea (Land L)
35 Sea (Land R)
36 N/S Bridge
37 Sea (Land Top, Bottom R)
38 Another damn N/S River
39 Another E/W River
3A T-River (E/W/S)
3B N/A
3C Another E/W River
3D Another Another E/W River
3E N/A
3F N/A
40 N/S Road
41 S/E Road
42 S/W Road
43 Plain with Mountaintop
44 Forest + Forest Clumps (Right)
45 Forest + Forest Clumps (Right)
46 Forest Clumps (Centre)
47 Forest + Clumps (Bottom Left)
48 Sea (Land Top Right)
49 Sea (Land Top to Right Curve)
4A Sea (Land Top)
4B Sea (Land Top to Left Curve)
4C Sea (Land Top Left)
4D N/A
4E N/A
4F Shoal (Top to Right Curve)
50 Shoal (North)
51 Shoal (Top to Left Curve)
52 N/A
53 U Shoal (Open on Right)
54 U Shoal (Open on left)
55 U Shoal (Open T)
56 N/A
57 N/S River
58 S/E River
59 S/W River
5A S/E River
5B S/W River
5C N/S River (No Right Bank)
5D N/S River (No Left Bank)
5E N/S River (No Right Bank, Up Flow)
5F N/S River (No Left Bank, Up Flow)
60 N/E Road
61 E/W Road
62 N/W Road
63 N/A
64 Forest + TopR Clumps
65 Forest + TopR Clumps
66 Forest + TopR Clumps + Left Shadow
67 Forest + Left Shadow
68 U Sea (Bottom Open)
69 Sea (Land Bottom L + Bottom R)
6A U Sea (R Open)
6B Sea (Land Top L + Bottom L)
6C Sea (Land Top + B)
6D Shoal (Land Bottom, Low-High Curve)
6E Shoal (Land Bottom, High-Low Curve)
6F N/A
70 N/A
71 N/A
72 N/A
73 N/A
74 N/A
75 U Shoal (B Open)
76 N/A
77 N/A
78 N/E River
79 N/W River
7A N/E River
7B N/W River
7C T-River (N/S/W)
7D T-River (N/S/E)
7E T-River (N/S/W)
7F T-River (N/S/E)
80 N/S Road (Shadow)
81 N/E Road (shadow)
82 N/W Road (Shadow)
83 N/S Road
84 E/W Road
85 E/W Road
86 Forest
87 Forest
88 T NEW Sea
89 U-Sea (N Open)
8A T-Sea NSE
8B U-Sea (L Open)
8C N/A
8D N/A
8E N/A
8F North Shoal (Low-High-Low)
90 N/A
91 N/A
92 End Shoal (West Face)
93 End Shoal (East Face)
94 N/A
95 N/A
96 N/A
97 N/A
98 N/E River
99 S/W River
9A S/E River
9B S/W River
9C T-River N/S/E
9D T-River N/S/W
9E T-River N/S/E
9F T-River N/S/W
A0 N/W Road + Shadow
A1 E/W Road + Shadow
A2 N/W Road + Shadow
A3 N/S Road + Shadow
A4 E/W Road + Shadow
A5 E/W Road + Shadow
A6 Forest Clump
A7 Forest Clump (Top R Corner)
A8 Sea Land L + BR
A9 Sea Land R + BL
AA T-Sea NSE
AB T-Sea NSW
AC N/A
AD N/A
AE N/A
AF W-Face Shoal
BO E F Shoal

B1 N
B2 Top R Corner Shoal
B3 Top L Corner Shoal
B4 N
B5 N
B6 BR CornerShoal
B7 BL Corner Shoal
B8 NE River

B9 NW River
BA NE River
BB EW River
BC EW River
BD EW River
BE EW River
BF EW River
C0 NEW Road
C1 NES Road

C2 NEW Road S
C3 NES Road S
C4 NE Road
C5 NE Road
C6 Forest Clump
C7 Forest Clump
C8 NES Ocean
C9 NWS Ocean

CA N
CB M
CD S Shoal
CE S Shoal
CF W Shoal
D0 E Shoal
D1 N
D2 Bottom R Corner Shoal

D3 Bottom L Corner Shoal
D4 N
D5 N
D6 TR Corner Shoal
D7 TL Corner Shoal
D8 NES River
D9 NWS River
DA NES River

DB NWS River
DC EW River
DD EW River
DE EW River
DF EW River
E0 EWS Road
E1 NES Road
E2 EWS Road Shadow
E3 NES Road Shadow

E4 NE Road Shadow
E5 NE Road Shadow
E6 Forest Clump
E7 N
E8 EW Sea
E9 EW Sea
EA EW SEa
EB ES Sea

EC WS Sea
ED N
EE N
EF S Shoal
F0 N
F1 N
F2 BL Corner Shoal
F3 BR Corner Shoal

F4 N
F5 N
F6 N
F7 N
F8 NES River
F9 NWS River
FA NES River
FB NWS River

FC Turbulent River
FD Turbulent River
FE N
FF N

01 Set
00 + Road
01 + Road Shadow
02 N Cap Pipe
03 S Cap Pipe
04 NW Road
05 NW Road
06 Plain + Forest
07 Plain + Forest

08 Sea
09 Sea
0A Sea
0B Sea
0C Sea
0D N
0E N
0F N

10 N
11 N
12 TL Corner Shoal
13 TR Corner Shoal
14 N
15 N
16 N
17 N

18 River
19 River
1A River
1B River
1C River -> Sea
1D River -> Sea
1E N
1F N

20 W Pipe Cap
21 E Pipe Cap
22 NS Broken Seam
23 EW Broken Seam
24 NW Road
25 NW Road
26 Plain + Forest
27 Plain + Forest

28 Sea
29 Sea
2A Sea
2B Sea
2C Sea
2D N
2E N
2F N

30
..
37 N/A

38 River
39 River
3A
..
3F N/A

40 NE Pipe
41 NW Pipe
42 EW Pipe
43 NS Pipe
44 WS Road
45 WS Road Shadow
46 N
47 N

48
..
4F N/A

50 - 5F N/A

60 NE Pipe
61 NW Pipe
62 NS Pipe Seam
63 EW Pipe Seam
64 SE Road
65 SE Road + Shadow
66 N
67 N

68 Reef
69 - 7F N/A

80 Missile Silo
81 Laser Shooter
82 S Minicannon
83 N Minicannon
84 W Minicannon
85 E Minicannon
86 Umi (Appears as Plain. Placed under Multitile Black Inventions)
87 South B Cannon (Overwrites 8 tiles surrounding it as well as Black cannon)
88 Umi
89 Umi
8A North B Cannon
8B Umi
8C Umi
8D 'Factory'
8E Umi
8F Umi

90 Deathray
91 Umi
92 - 9F N/A

A0 Launched Silo
A1 - A3 N/A
A4 Umi
A5 Umi Mountain (Volcano)
A6 Umi
A7 Volcano (Takes up the tiles 1 Left, 2 Right and 2 Above 1 Below)
A8 - AA Umi
AB - 'Blocked' (Under Black Fortress/Factory)
AC Umi
AD Umi
AE + Road
AF Garbled Factory

B0 Umi
B1 Umi
B2 - BF N/A

C0 Neut HQ
C1 Neut Base
C2 Neut City
C3 Neut Airport
C4 Neut Port
C5 OS HQ
C6 OS Base
C7 OS City
C8 OS Airport
C9 OS Port
CA BM HQ
CB BM Base
CC BM City
CD BM Airport
CE BM Port
CF GE HQ

D0 GE Base
D1 GE City
D2 GE Airport
D3 GE Port
D4 YC HQ
D5 YC Base
D6 YC City
D7 YC Airport

D8 YC Port
D9 Neutral Lab
DA OS Lab
DB BM Lab
DC GE Lab
DD YC Lab
DE N
DF N

E0 - FF - Sequence Repeats

02 Lot
00 - 0F Blank
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

User avatar
x0_000
Rank: Clothes shopping is NP-Complete.
Location: a thing

Post by x0_000 » Thu Jul 27, 2006 4:13 pm

WHOOO! Now I can customize War Room!
Only in math can you buy 600 cantaloupes and not look like a nutter.

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

Post by Xenesis » Thu Jul 27, 2006 4:15 pm

I'm missing the Black Fortress and the Silo, but everything else appears to be here.
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

User avatar
x0_000
Rank: Clothes shopping is NP-Complete.
Location: a thing

Post by x0_000 » Thu Jul 27, 2006 4:21 pm

Hmm, I wonder if I'll need to use the Rom Expander for the WR hack.
Only in math can you buy 600 cantaloupes and not look like a nutter.

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

Post by Xenesis » Thu Jul 27, 2006 4:23 pm

Well, once I get my head around the compression, we should be able to do that instead..making the maps much smaller.

Even so, there's like 2-3MB of free space at the end of AW2's rom.
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

User avatar
x0_000
Rank: Clothes shopping is NP-Complete.
Location: a thing

Post by x0_000 » Thu Jul 27, 2006 4:26 pm

MWAHAHAHAHA! FEAR ME MORTALS, FOR GYROPTIC AND THE BENDS ARE NOW PLAYABLE IN AW2! MWAHAHAHAHA!
Only in math can you buy 600 cantaloupes and not look like a nutter.

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

Post by Xenesis » Thu Jul 27, 2006 4:27 pm

I am so hacking Frost Bight in.
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

User avatar
Yuganon
Location: Canada

Post by Yuganon » Thu Jul 27, 2006 4:47 pm

Hack some of my maps in :D
teabag a piranha tank, heart barely beatin'

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

Post by Xenesis » Thu Jul 27, 2006 4:48 pm

You hack some of your maps in! <_<;
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

Post by RadioShadow » Thu Jul 27, 2006 7:22 pm

OMG. WE CAN HACK OUR OWN MAPS IN. OMG.

YAY. TO MAKE EVERYONE HAPPY. :D :D :D :D :D

:P :P :P :P :P :P :P :P :P :P :P

EDIT: Xen, every time I add in a city, base etc. They display as a diffrent piece of buggered up Terrian. >_>
Last edited by RadioShadow on Thu Jul 27, 2006 9:32 pm, edited 1 time in total.
Image

User avatar
HPD
Tri-Star CO
Tri-Star CO
Rank: Mentat
Location: The Mountain
Contact:

Post by HPD » Thu Jul 27, 2006 8:59 pm

Awesome news. This is a great leap forward in AW2 hacking.
"So when I say the fudge shaman flies he goddamn well flies and that's that." - Narts
"My motto is that there are far too many women in the world to waste time with men." - thefalman
"It's just that I'm not really aware of how a common conversation goes." - Imano Ob, talking on MSN about talking on MSN
"As for FE8, that was IS' variant of Man Spam - Dudes with Swords edition." - Xenesis

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

Post by RadioShadow » Thu Jul 27, 2006 9:47 pm

Guys. When adding in Cities, bases etc.

Put 01 ofter it.

So for a OS Base - C6 01

If you don't put the 01 in then a random piece of terrien will display instead.
Image

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

Post by Xenesis » Thu Jul 27, 2006 10:11 pm

*points to the list of terrain tiles*
*Points to the fact that it's in the 01 set*
*points to the fact its not obvious*
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

User avatar
Kireato

Post by Kireato » Thu Jul 27, 2006 10:42 pm

Awesome work there. :)
Image
"Hey, it's the Kir. Wee." - Linkman 145
"I can't help myself sometimes... :cry:" -Help Topic Guest

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

Post by RadioShadow » Fri Jul 28, 2006 7:59 am

First EVER own hacked map into AW2. Check it out.

Check it out.

http://www.verzend.be/v/4770116/First_M ... 2.ips.html
Image

User avatar
x0_000
Rank: Clothes shopping is NP-Complete.
Location: a thing

Post by x0_000 » Fri Jul 28, 2006 4:33 pm

After taking 1 whole hour trying to hack a 14x14 map in, I have come to the conclusion that I should organize the terrain list better.
Only in math can you buy 600 cantaloupes and not look like a nutter.

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

Post by Xenesis » Fri Jul 28, 2006 5:45 pm

Please, be my guest. There's over 510 terrain tiles there though. <_<;
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

Post by RadioShadow » Sat Jul 29, 2006 1:52 am

x0_000 wrote:After taking 1 whole hour trying to hack a 14x14 map in, I have come to the conclusion that I should organize the terrain list better.
What we really need are pictures of each terrian. I may work on it when I come back from holiday.
Image

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

Post by Xenesis » Sat Jul 29, 2006 2:21 am

I have a better solution. I'll show it to you all when it's done.
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

Belgdorzorz

Post by Belgdorzorz » Tue Aug 01, 2006 9:48 am

To quote HooHaMan of the old board.
*Joygasm*
Nice find. XD
*Has fun messing with teh nu findings*

User avatar
CO_Scott
Location: United States

Post by CO_Scott » Sat Aug 05, 2006 2:57 am

I found it useful to save a memory dump from Design Maps. (Location=0201EE72, Size=2*length*width) That way you can just load the map data, insert the header and a 00 every eighth byte after that.
"Dare I say, is it time to open the champag-nay?" - Oracle of Wuffing
"Damn straight. Xen has owned AW2." - Xenesis

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

Post by RadioShadow » Fri Aug 18, 2006 2:01 am

xen wrote: C8 NES Ocean
C9 NWS Ocean
Xen WHY THE BLOODY HELL HAVE YOU LABLED THESE 'oceans'. >_<

I been looking ages for these flaming pieces and that's because you labled them Ocean. There Sea tiles Xen, SEA TILES.

Looks like I need to sort out the terrian list in the other topic to add the missing pieces and tidy them up a bit.
Last edited by RadioShadow on Fri Aug 18, 2006 2:51 am, edited 1 time in total.
Image

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

Post by Xenesis » Fri Aug 18, 2006 2:04 am

Uh, they're the same thing...jesus. <_<;
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

User avatar
x0_000
Rank: Clothes shopping is NP-Complete.
Location: a thing

Post by x0_000 » Sat Aug 19, 2006 1:05 am

ohnoez someone can't tell the similarity between an ocean and a sea :o

RadioShadow - The search button doesn't know that x0_000.
Only in math can you buy 600 cantaloupes and not look like a nutter.

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

Post by Xenesis » Sat Jan 20, 2007 12:00 am

Just a small update.

From sheer just memory viewing, thanks to the addresses given by Roma Emu's codehack thing for AW2, I've discovered a vital limit.

Maximum size a map can be is 1,286 tiles long. For comparison, the standard 30x20 design map is 600 tiles. That's how much space in RAM is allocated to hold the map. Beyond that it'll start overwriting itself.

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

Re: Today is a good day to map edit.

Post by Xenesis » Mon Mar 02, 2015 12:53 pm

Just another silly minor update:

AW1 maps are actually in the exact same format, but they use a halfword for the dimensions instead of a byte. You should be able to get this to work with a touch of hex editing in the MAR before you compress or w/e.
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests