Guides:Coin Case ACE: Difference between revisions
Content deleted Content added
(3 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
==Step 1: Obtaining everything needed for the setup== |
==Step 1: Obtaining everything needed for the setup== |
||
# Catch any pokémon and nickname it "MAILWRITER". |
|||
# Go to Goldenrod City and obtain the Coin Case by picking it up in the Goldenrod Underground. |
# 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. |
# After obtaining the Coin Case, go to the Game Corner. |
||
Line 27: | Line 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". |
#* 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. |
# 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. |
|||
==Step 2: How to execute ACE using the Coin Case== |
|||
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. |
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. |
|||
* Prepare a mail to ensure that a box name code can be executed |
|||
⚫ | |||
* Prepare specific box names to run a simple test code. |
|||
⚫ | |||
#Arrange your party like the following: |
|||
## Any |
|||
## Any |
|||
## "MAILWRITER" nicknamed Pokémon |
|||
## Any |
|||
## Any |
|||
## Any |
|||
⚫ | |||
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;" |
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;" |
||
| |
| |
||
Line 50: | Line 37: | ||
|} |
|} |
||
⚫ | |||
Note: there is nothing unique about the MAILWRITER pokémon that requires it to be in the 3rd party slot. Later parts of the setup will, however, write data to the MAILWRITER pokémon, so it's convenient to keep it in the third party slot for now. |
|||
⚫ | |||
Rename the first box |
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;" |
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;" |
||
| |
| |
||
[[File: |
[[File:Box English GS Setup.png]] |
||
|} |
|} |
||
==Step |
==Step 2: Using Coin Case ACE== |
||
In order to use ACE, always perform the following steps: |
In order to use Coin Case ACE, always perform the following steps: |
||
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;" |
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;" |
||
Line 80: | Line 68: | ||
* Open the start menu, open the pokédex, then listen to the cry of Bellsprout. |
* 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. |
* 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. |
* Open the item bag, switch item pockets at least once, then use the Coin Case. ACE will be executed when the coin count displays on the screen. |
||
With the current box name setups, you can verify that the setup is working by checking the TM/HM pocket. The first item in the main item pocket should be altered to a TM33, in the TM/HM pocket you can now find all TMs, each having a quantity of x255. '''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.''' |
|||
⚫ | |||
⚫ | |||
===Troubleshooting=== |
|||
⚫ | |||
* Did you correctly follow the previous steps? |
* Did you correctly follow the previous steps? |
||
* Is the current active box set to box 1? |
* Is the current active box set to box 1? |
||
Line 91: | Line 83: | ||
* Is the content of the mail correct? |
* 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= |
=Setting up an ACE environment= |
||
While we |
While we have a way to execute box name codes using ACE, the current setup has a few drawbacks: |
||
* Executing ACE requires performing various specific steps, preventing us from using ACE whenever we want. |
* 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. |
* Box name codes have a limited characterset, effectively meaning that it's difficult to set up more complicated ACE effects. |
||
Line 101: | Line 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. |
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. |
|||
To do that, we're going to use a box name code to obtain 255 copies of all TMs, then sell them in specific quantities to write out a program. Alongside that, the box name code will also add a TM25 to the main item pocket. Using this TM25, outside of the TM/HM pocket, will allow us to execute the Mail Writer at any time as long as a specific pokémon is kept in the second party slot. |
|||
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. |
|||
⚫ | |||
# Execute a box code using Coin Case ACE that sets the quantities of all 50 TMs to x255, as well as placing a TM25 in the main item pocket. On top of that, it will modify the data of party pokémon #3 so that they allow TM25 to be safely used, as long as it is kept in the second party slot. |
|||
⚫ | |||
# Sell TMs in specific quantities so that the amount of TMs in the TM/HM pocket spell out a small mail writer program. |
# 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 |
==Step 3: Selling TMs to form a program in the TM/HM pocket== |
||
* Rename box names to form the following. '''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:Box English GS Setup V2.png]] |
|||
⚫ | |||
* (only if you haven't done so in previous parts), catch any pokémon and nickname it "MAILWRITER". '''Put it in the third party slot'''. We'll alter this pokémon's stat experience to redirect TM25 execution to the TM/HM pocket. |
|||
* Ensure that you have everything set up for Coin Case ACE: |
|||
** "MAILWRITER" nicknamed pokémon holding mail in party slot #3 |
|||
** Read the correct mail beforehand |
|||
** Perform all steps necessary to execute Coin Case ACE |
|||
* Use the Coin Case once. If the code was executed successfully, switch to the TM/HM pocket. '''It should now contain every TM at a quantity of x255. The code will also overwrite the first item in the main item pocket to be a TM25.''' |
|||
==Step 5: Selling TMs to form a program in the TM/HM pocket== |
|||
Now that we have obtained x255 of every TM, we'll be selling specific amounts of these in order to form a program. |
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. |
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: | Line 226: | ||
# It is recommended to save before continuing. |
# It is recommended to save before continuing. |
||
⚫ | |||
# Put the pokémon that was nicknamed "MAILWRITER" into the 2nd party slot. |
|||
⚫ | |||
# From now on, you can repeat this process at any time to start the mail writer. |
# 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 |
Since we aren't planning on using the Coin Case anymore, the mail that was previously give to a pokémon can be removed. It is no longer relevant for the remainder of the setup. |
||
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 |
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 box codes included a bit further below. |
||
==Step 4: Using the mail writer== |
|||
A note on the nicknamed pokémon: when running the box name code, we altered MAILWRITER's stat experience data to contain a redirect to the TM/HM pocket. You can safely deposit and withdraw it from the PC. '''Please note that this pokémon must never gain experience after this point, otherwise you'll need to reapply the setup.''' |
|||
'''From now on, simply use TM33 to start up the mail writer.''' |
|||
'''From now on, simply go through the necessary steps to use TM25 to start up the RAM 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. |
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: | Line 256: | ||
|- |
|- |
||
| Enter your mail code, then press "END". || It prints the checksum and waits for input. |
| 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: | Line 286: | ||
The Mail writer allows you to easily write and execute arbitrary payloads. Aside from writing your own codes, we recommend the following: |
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/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. |
* [[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= |
=Addendum: repairing the "MAILWRITER" pokémon= |