How to fix Common Area Overlaps: Difference between revisions

Created page.
 
m fixed link to hexed.it
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
Before starting this tutorial, you will need:
Before starting this tutorial, you will need:


* A hex editor. [https://mh-nexus.de/en/hxd/ HxD] is the recommended choice.
* A hex editor.
** [https://mh-nexus.de/en/hxd/ HxD] is a robust and commonly recommended choice.
** [https://hexed.it/ hexed.it] is a hex editor that runs in your browser.
* A text editor.
* A text editor.
** If you are on Windows, [https://notepad-plus-plus.org/ Notepad++] is a solid choice.
** If you are on Windows, [https://notepad-plus-plus.org/ Notepad++] is a solid choice.
Line 24: Line 26:


# Unpack your DS Rom using DSLazy.
# Unpack your DS Rom using DSLazy.
# Open HxD. Select “Open” or press CTRL + O, and navigate to where you unpacked your ROM file. Open the “overlay” folder, and then open overlay_0036.bin.
# Open HxD or your hex editor of choice. Navigate to where you unpacked your ROM file. In your hex editor, open the “overlay” folder, and then open overlay_0036.bin.
# Navigate to your downloaded .asm patch and open it using your text editor.
# Navigate to your downloaded .asm patch and open it using your text editor.
# Scroll through the contents of your patch until you find where it patches to overlay_0036.bin. This generally is indicated using <code>.open &quot;overlay_0036.bin&quot;</code>, followed by an address for the start of the array.
# Scroll through the contents of your patch until you find where it patches to overlay_0036.bin. This generally is indicated using <code>.open &quot;overlay_0036.bin&quot;</code>, followed by an address for the start of the array.
Line 33: Line 35:


<ol start="6" style="list-style-type: decimal;">
<ol start="6" style="list-style-type: decimal;">
<li>In HxD, scroll down until the address in the leftmost column matches the indicated address next to <code>.orga</code> in your ASM patch. See if there is data already written to that space or not.</li>
<li>In your hex editor, scroll down until the address in the leftmost column matches the indicated address next to <code>.orga</code> in your ASM patch. See if there is data already written to that space or not.</li>
<li>If that space is taken up, scroll down further through the common area until it returns to being entirely <code>00</code> addresses. Note down the address in the leftmost column.
<li>If that space is taken up, scroll down further through the common area until it returns to being entirely <code>00</code> addresses. Note down the address in the leftmost column.
<ul>
<ul>
Line 47: Line 49:


<ol start="6" style="list-style-type: decimal;">
<ol start="6" style="list-style-type: decimal;">
<li>In HxD, scroll down until the address in the leftmost column matches the address following the plus sign next to <code>.org</code> in your ASM patch. See if there is data already written to that space or not.</li>
<li>In your hex editor, scroll down until the address in the leftmost column matches the address following the plus sign next to <code>.org</code> in your ASM patch. See if there is data already written to that space or not.</li>
<li>If that space is taken up, scroll down further through the common area until it returns to being entirely <code>00</code> addresses. Note down the address in the leftmost column.
<li>If that space is taken up, scroll down further through the common area until it returns to being entirely <code>00</code> addresses. Note down the address in the leftmost column.
<ul>
<ul>
Line 56: Line 58:
<li>Patch your ASM patch as you otherwise would.</li>
<li>Patch your ASM patch as you otherwise would.</li>
<li>Re-pack your ROM and test to see if your patch is working.</li></ol>
<li>Re-pack your ROM and test to see if your patch is working.</li></ol>
[[Category:Tutorials]]