Jump to content

Guides:Coin Case ACE: Difference between revisions

no edit summary
No edit summary
Line 21:
==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.
# 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.
 
==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.
 
* 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.
* Prepare specific box names to run a simple test code.
#* Finally,Give give the "MAILWRITER" nicknamedany pokémon a flower mail with the following content:
 
===Finishing the setup===
 
#Arrange your party like the following:
## Any
## Any
## "MAILWRITER" nicknamed Pokémon
## Any
## Any
## Any
# 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 testthe box name code===
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.
 
===Preparing a test box name code===
 
Rename the first 10 box namenames to the following namenames. This box name code will be replaced later and is solely intended to verify ifdo the setupfollowing iswhen workingexecuted correctly.as Their only function is to safely exit ACE and return the game to normalcode:
* 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:CoinBox CaseEnglish ACEGS tester box nameSetup.png|frameless]]
|}
 
==Step 32: Using Coin Case ACE==
 
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. ThisACE will executebe ACEexecuted when the coin count displays on the screen.
 
Make sure to test the setup by going through this process once. With the current box name setups, you can verify that the setup is working by checking the TM/HM pocket. The quantityfirst ofitem TM03in shouldthe nowmain item pocket should be 255.altered Youto a TM33, in the TM/HM pocket you can now continuefind toall theTMs, nexteach having a quantity of guidex255.
 
'''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:
 
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 now 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.
* 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.
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.
The mail writer itself will be installed in the TM/HM pocket through the following two step process:
 
# 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.
The mail writer itself will be installed in the TM/HM pocket 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 43: SettingSelling allTMs TMto quantitiesform toa program in the TM/HM x255pocket==
 
* 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. This program differs slightly depending on the specific language you're using.
 
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 TM25TM33. If everything went correctly, this will start the mail writer and open a screen asking you to input text for a mail.
# Put the pokémon that was nicknamed "MAILWRITER" into the 2nd party slot.
# 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 givengive to MAILWRITERa 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 the "MAILWRITER" pokémonTM33. 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.'''
 
==Step'''From 6:now Usingon, 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.
Line 278 ⟶ 257:
|-
| Enter your mail code, then press "END". || It prints the checksum and waits for input.
|}
 
===FinishingStep 5: Improving the setup===
 
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=
1,585

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.