The following link represents my best efforts to remove everything except the automap functionality. I used LunarIPS to create a number of different combinations of patches to arrive at the final result. I suspect it may only work with hacks that already have the map by Snarfblam and the ROM probably also needs to be expanded. @DannyPlaysSomeGames, it may already be identical to what you created: https://drive.google.com/file/d/1kwFdoJbN8nH8De3Hc7aGWdei_U8QpLi0/view?usp=sharing
As far as address locations go, I can state what I know. If KYA doesn't notice the thread in the near future, you could attempt sending a PM since more information would probably be needed. Below are some instructions that he sent to me while the hack was in development.Location of map information for editing purposes
- @DannyPlaysSomeGames, I suspect you may already know this as you are working on your own hack. But, I thought I'd include this information in case someone else found it helpful.
-Open Mesen's memory viewer (Ctrl-M), choose View: PRG ROM, and Number of columns: 32 (the latter is very important!)
Then go to (Ctrl-G) address 39400.
Here's your map, edit it to your heart's content. FE means no room here. To decipher the other values open up Mesen's PPU viewer (Ctrl-P), and consult the CHR viewer tab.
Look for "Tile Index"es of room layout tiles. When you are done with editing, save your ROM via Mesen's debugger.
Note though, that the map does not get updated immediately as you edit it. You have to reset and start a new game to see your changes (the game will copy the map from ROM to RAM).
(If you want the immediate effect, you should edit the map in RAM, not in ROM. Choose CPU Memory, and go to address 7900. But these changes will be lost on reset.)
Also, as mentioned previously, KYA assisted in alleviating the glitch where the automap did not work on second playthrough. Below you will find the instructions that led to a fix. I'm not sure if portions of the map functionality are located in areas that are additional to the addresses listed below.
-Start a new game. Don't move. Open the memory viewer. Choose CPU memory. Go to address 7900. You'll see the entire map non-visited.
Select all bytes with a mouse (32 rows 32 bytes each), press Ctrl-C.
Then choose PRG ROM. Go to address 39400. Press Ctrl-V.
This way you'll copy the non-visited map from RAM to ROM.
Then save your ROM the usual way.