Guides:Coin Case ACE: Difference between revisions
no edit summary
No edit summary |
|||
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 a mail to ensure that a box name code can be executed.
* 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.
===Finishing the setup===▼
▲# Finally, give the "MAILWRITER" nicknamed pokémon a flower mail with the following content:
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
|
Line 50 ⟶ 38:
|}
▲===Preparing a test box name code===
Rename the first 10 box
* 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 ⟶ 69:
* 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.
'''Do not use this TM33 yet! This TM will allow us to execute the contents of the TM/HM pocket as code, but due to the specific quantities currently present it will be guaranteed to crash the game.'''
If the test code crashes, check the following:▼
* Did you correctly follow the previous steps?
* Is the current active box set to box 1?
Line 92 ⟶ 83:
'''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.'''
==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 ⟶ 98:
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 in the TM/HM pocket through the following two step process:▼
▲The mail writer itself will be installed
# 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 ⟶ 227:
# It is recommended to save before continuing.
# Use
▲# Use TM25. 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
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
==Step 4: Using 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 278 ⟶ 257:
|-
| Enter your mail code, then press "END". || It prints the checksum and waits for input.
▲|}
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
|}
Line 284 ⟶ 287:
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.
=Addendum: repairing the "MAILWRITER" pokémon=
|