PDA

View Full Version : Fixing Map Footers


Pokepal17
April 15th, 2009, 03:27 AM
Requirements:
:pokeball: A ROM with a corrupted footer
:pokeball: A Clean ROM
:pokeball: Advance Map
:pokeball: A Hex Editor (I use Hex Workshop)

Now, if you ever read Don Patch's tutorial on the Advance Map method of tile inserting, map footers can corrupt. This can also happen by making a new map and and inserting it over a map which shares a footer with another map. Basically, it's due to bad repointing from Advance Map.

Now you can tell if a map had a corrupted footer because when you click on it this will appear.

http://img135.imageshack.us/img135/6596/tut1.png (http://img135.imageshack.us/my.php?image=tut1.png)

and after that, Lu-Ho's contact info will appear.
Now to fix this, go to the corrupted map and enable pro-header view (Ctrl + H).
Nex find the footer offset and copy it.

http://img135.imageshack.us/img135/8099/tut2.png (http://img135.imageshack.us/my.php?image=tut2.png)

Open your ROM with the bad map and go to the offset you just copied,
You'l see some FFFF which are the badly repointed bytes of the footer.

http://img135.imageshack.us/img135/6419/tut3.png (http://img135.imageshack.us/my.php?image=tut3.png)

Now open a clean ROM of the same version in your Hex Editor.
Go to the same offset and you'll see the bytes which should be there.

http://img135.imageshack.us/img135/439/tut4.png (http://img135.imageshack.us/my.php?image=tut4.png)

Now copy and paste those bytes over the FF in the other ROM.
Save and go back to a-map.
The map should be black (if not go on another map and then got back to it).

http://img135.imageshack.us/img135/2572/tut5.png (http://img135.imageshack.us/my.php?image=tut5.png)

Now just redraw the tiles on the map (the events and map scripts will still be there)
---------------------------------------------------------------------------------------------------
Copyright 2009 Pokepal17
Credits to Andrea/HackMew for showing me this.

ATM the Mudkip
June 19th, 2009, 11:28 AM
Thanks, this is aweosme! It helps me out a lot.

Pokepal17
June 19th, 2009, 11:44 AM
Thanks, this is aweosme! It helps me out a lot.

No problem, I hope you found it easy to understand :P

mat1554
August 6th, 2009, 03:42 PM
Hi,
I have a question for you, do you give me autorization to translate your tutorial in french for my forum please ? I you want, can you answer me by MP please.

Thank you !
Mat1554

Pokepal17
August 7th, 2009, 05:44 AM
Hi,
I have a question for you, do you give me autorization to translate your tutorial in french for my forum please ? I you want, can you answer me by MP please.

Thank you !
Mat1554

Sure, juest credit me and HackMew.