Guides:Coin Case ACE: Difference between revisions
Content deleted Content added
No edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 21:
==Step 1: Obtaining everything needed for the setup==
# Go to Goldenrod City and obtain the Coin Case by picking it up in the Goldenrod Underground.
# After obtaining the Coin Case, go to the Game Corner.
Line 27 ⟶ 26:
#* If you already have coins stored in the coin case, make sure that the first digit of the total number of held coins equals "1".
# In the Goldenrod Dept. Store, buy a Flower Mail.
# For this guide, '''ensure that the first item in the main item pocket is an item you do not need''', as we'll be overwriting it to a different item.
Now that we have the Coin Case, we'll need to set up everything needed to actually safely use it. Using a specific setup, we can force the Coin Case to execute code starting from the second character of the last read mail. From here, we need to ensure that we have the proper setup to execute box name codes.
* Prepare box names to execute a certain effect and return safely to normal game operations. For the purposes of this guide, we'll use the box name in the next section.
* Give any pokémon a flower mail with the following content:
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
|
Line 50 ⟶ 37:
|}
===Preparing the box name code===
Rename the first 10 box names to the following names. This box name will do the following when executed as code:
* Set quantities for all 50 TMs to x255
* Alter the first item in the main item pocket to a TM33, which can be used to trigger ACE
* Set up code so that using TM33 will execute the data stored in TM quantities
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
|
[[File:
|}
==Step
In order to use Coin Case ACE, always perform the following steps:
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
Line 80 ⟶ 68:
* Open the start menu, open the pokédex, then listen to the cry of Bellsprout.
* Go to the Pokémon menu and read the previously mentioned mail.
* Open the item bag, switch item pockets at least once, then use the Coin Case.
Anytime you wish to execute wrong pocket Coin Case ACE, you'll need to repeat the steps outlined at the beginning of this section. Always make sure the held mail was read before using the Coin Case and ensure that a valid box name code was prepared beforehand.
===Troubleshooting===
If the code crashes, check the following:
* Did you correctly follow the previous steps?
* Is the current active box set to box 1?
Line 91 ⟶ 83:
* Is the content of the mail correct?
===A small note on the box names===
Due to the limited characterset, the box name code rewrites part of itself to be able to achieve its effect. This will cause the box names to appear glitched after executing Coin Case ACE once.
While this looks weird, this is completely intentional and harmless. The code can still be used again if needed, you can easily fix this issue by renaming the box names to a normal name.
=Setting up an ACE environment=
While we
* Executing ACE requires performing various specific steps, preventing us from using ACE whenever we want.
* Box name codes have a limited characterset, effectively meaning that it's difficult to set up more complicated ACE effects.
Line 101 ⟶ 97:
To resolve this issue, we're going to install the Mail Writer. This is a 50 byte program, installed as a series of TM quantities, that will allow us to quickly and efficiently write and execute any arbitrary code we want.
When TMs are used outside of the TM/HM pocket, the game will incorrectly attempt to search its item effect in the list of normal item effects. This causes the game to interpret garbage data as item effect pointers, for some TMs this allows us to execute ACE. This is known as Wrong Pocket TM ACE. The advantage of TM33 is that it can be used without requiring specific party/item/box/mail setups.
We've already given ourselves 255 copies of every TM, along with a method to execute the contents of the TM/HM contents in the form of TM33. In this part, we'll sell TMs in specific quantities to write out a program. Once this has been done, we can simply use TM33 to start up the MailWriter.
The mail writer itself will be installed through the following two step process:
# Sell TMs in specific quantities so that the amount of TMs in the TM/HM pocket spell out a small mail writer program.
# Use TM33 to activate the mail writer program, allowing us to quickly write out and execute a variety of ACE effects.
# improve the setup by executing a small code to move the mail writer program to unused memory, freeing up the TM pocket for our own use.
==Step
Now that we have obtained x255 of every TM, we'll be selling specific amounts of these in order to form a program.
The image belows displays the intended final quantities of all TMs, while the table in the next section displays how many TMs of each kind you need to end up with, along with the amount of money you gain by selling them.
Line 245 ⟶ 226:
# It is recommended to save before continuing.
# Use TM33. If everything went correctly, this will start the mail writer and open a screen asking you to input text for a mail.
# From now on, you can repeat this process at any time to start the mail writer.
Since we aren't planning on using the Coin Case anymore, the mail that was previously
===Troubleshooting & repairing TM33===
If the game crashes, first recheck if all TM quantities are correct. If all quantities are correct, you may need to redo the setup for TM33. This can be done using the following box code:
=
In case something happens with the "MAILWRITER" nicknamed pokémon that causes it to no longer function, you can repair the pokémon without having to reset TM quantities using the following procedure:
'''Please mind the differences between uppercase X ([[File:Character UCX.png]]), lowercase x ([[File:Character lcx.png]]) and multiplication symbol ([[File:Character mul.png]])'''.
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
|
[[File:Reset box code GSEN.png]]
|}
To execute this box name code, repeat the process for Coin Case ACE:
* Read the mail previously given to a party pokémon.
* Go to the Goldenrod Radio Tower and follow the correct steps to finish the setup.
* Use the Coin Case to execute the code. If the game crashes, doublecheck the box name code and ensure you've performed every step of the process correctly.
* If the code executes succesfully without crashing the game, TM33's functionality has now been repaired.
==Step 4: Using the mail writer==
'''From now on, simply use TM33 to start up the mail writer.'''
The mail writer will open a screen that asks you to write the contents of a mail. This is where you'll need to enter mail codes. Once done, use the "END" option to finish the mail.
Line 280 ⟶ 276:
|}
==
One final issue with the setup, since the mail writer is written using TM quantities, using or gaining TMs will break the mail writer. Because of this, we'll use the mail writer to execute a small code that achieves the following:
* Copies the mail writer to unused memory
* Overwrite the existing quantities in the TM/HM pocket to x1 for every TM
* Alter TM33's underlying code to execute the mail writer in unused memory
You can use the mail code converter page as follows:
* Copy the code in the table below
* Follow the link at the top of the table to the mail code converter
* Paste the code in the text box on the code converter's page
* Select the correct language and version
* Click on the "Run" button to display the mails you need to enter
{| class="wikitable"
|+ Codes to be used with [https://timovm.github.io/MailConverter/ TimoVM's MailConverter]
|-
! Language !! Gold & Silver
|-
! scope="row"| English
||
01 32 00 11 F2 D6 21 1B D4 73 23 72 3E 3E 12 13 3E 04
12 13 21 7E D5 E5 CD 1A 31 3E '''01''' 0E 32 E1 C3 4C 31
|}
After executing this code, attempt to start up the mail writer. If you are able to open it and are able to successfully execute the following blank mail, the copy has finished successfully and you can save the game.
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
|
[[File:
|}
==What to do with the Mail writer==
The Mail writer allows you to easily write and execute arbitrary payloads. Aside from writing your own codes, we recommend the following:
* [[User:TimoVM/Mail Writer Codes|Mail codes]]: this page contains a collection of assembly for mail codes that can be used for a variety of common purposes such as fixing the side effects of the ACE setup, editing pokémon and items, etc..
* [[User:TimoVM/RAM Writer|RAM writer]]: (recommended for more experienced users) this page contains the assembly for a large one-size-fits all program that allows you to edit any value in RAM with a user-friendly GUI. It will also fix the side effects of the ACE setup when you first run it. WARNING: THE RAM WRITER SETUP FOR GOLD/SILVER IS CURRENTLY BEING REDESIGNED. PLEASE DO NOT INSTALL YET.
=Appendix=
Line 320 ⟶ 324:
<pre>h h 's z 2 Pk 'l 0 9 ♀ . 9 Pk * ' ]
h 'd</pre>
|-
! scope="row" | Setup box name
||
Box 1:
Box 2: é
Box 3:
Box 4:
Box 5:
Box 6:
Box 7:
Box 8:
Box 9:
Box 10:
|-
! scope="row" | Reset box name
||
Box 1:
Box 2: é 'd 2 'v
Box 3:
Box 4:
Box 5: 's 'v 2 'v T 's 't 2
Box 6: p 0 ♀ 'm 'v 2
|}
Line 454 ⟶ 456:
A7 and a ; Reset carry flag. Not strictly necessary, but added for safety for now
D0 ret nc
</pre>
|