Categories

  • 100% completion
  • Heavy luck manipulation
  • Forgoes save data corruption
  • Corrupts memory
  • Major skip glitch
  • Heavy glitch abuse

Game Objectives

  • Emulator used: BizHawk 2.2.2
  • Aims for fastest completion time.
  • Catches all 151 Pokémon as quickly as possible.
  • ...like, really, really quickly.
  • Does not modify Pokédex flags
  • Does not use arbitrary code execution.
  • Is really boring.

About the run

Some terms or concepts used in the TAS (such as Cooltrainer) have been explained in the previous submission by MrWint. The justification for platform choice and version choice, and explanation of luck manipulation are mostly the same as the current "warp glitch" submission by gifvex, except that Blue version is used over Red version as it manipulates the required trainer ID faster than Red version, factoring in time lost from Blue version's slower preset player name.

Intro

  • Soft reset is pressed 15 times. 16 inputs are required to perform a soft reset and each delays 1 frame. The delays are used to manipulate the trainer ID and allow a soft reset later with just 1 input.
  • A trainer ID of 0xbe05 is manipulated. The bytes are aligned in memory in the expanded item pack where 0xbe is the quantity of some Master Balls and 0x05 is a Town Map item.
  • The player is named the preset BLUE name. The name does not appear enough times before fastest text speed (0 frames per character) is acquired to be worth naming 1 character.
  • The rival is named ",./xox". Each pair of characters corresponds to an item and its quantity in the expanded item pack. The items are TM44 x242, TM43 x183, and BLUE x183. TM44 x242 is merely filler to reduce lag caused by glitched item names, but the TM43 item and BLUE x183 are necessary for the main farming glitch.

Pallet Town

  • Charmander is chosen as the starter Pokemon. DVs (values used to calculate stats) of exactly 0x1024 are manipulated. Charmander has a fast battle for both rival and Weedle.
  • The rival battle is lost because the rewards are not needed. Four 1/256 growl fails from Charmander and three 1/39 damage roll Tackles (+ one non-1/39) from Squirtle are manipulated.
  • Battle animation is ON and saves 30 frames over OFF. The Poke Ball animation costs 10 frames, but each Tackle animation saves 10 frames over a fixed delay when animations are off.

Viridian Forest

  • Options are set in the gate before the forest. Menu speed varies by map and the gate is the best available before Weedle. The menu also skips a 2 frame delay in movement.
  • Weedle is defeated with a combination of four 1/39 damage rolls and four critical hits. Charmander wins the battle with 40/40 Growl PP and 30/35 Scratch PP in order.
  • The cursor is moved to SAVE now because directional inputs are disabled later.

Pewter City

  • An antidote was picked up in Viridian Forest and 5 more items are bought to reach 6 items. Three Poke Balls are used to catch Pokemon and an Escape Rope ends up in slot 6.
  • A trigger causes dialogue with the Brock fan, but the start menu is able to be buffered before the cutscene movement begins. The game is saved and soft reset.
  • After more dialogue, movement is able to be buffered before the trigger catches the player again, and allows the player to pass the Brock Fan before Brock is defeated.
  • The Brock Fan is talked to from the right and invalid cutscene movement data is read that enables walk through walls. The game attempts to find the player's coordinates in memory and load the appropriate data, but (y:16, x:36) is not defined by the game. It finds 0x1024 in Charmander's DVs and loads data from 0x1E28 due to Charmander's move PP.

Cerulean Cave

  • A Ditto is caught and swapped to slot 1. When a transformed Pokemon swaps its first move with a slot it does not have, it will swap move ID 0x00 into the first slot, known as "Cooltrainer".
  • Cooltrainer's invalid name can cause a buffer overflow that copies saved screen data over enemy Pokemon data. This is done to turn a wild Pokemon into MissingNo. and catch it using the screen data saved when opening the party menu. The buffer overflow also sets an audio fade-out value that causes MissingNo.'s Pokedex jingle to be skipped.
  • MissingNo.'s invalid seen flag sets bit 7 of the item quantity in slot 6. The Escape Ropes went from a quantity of 1 to a quantity of 129 and 2 are tossed to unset bit 7.
  • MissingNo.'s Pokedex entry never unsets the flag to flip sprites horizontally. This affects Cooltrainer, so Ditto's summary is viewed because the page unsets the flag.
  • Cooltrainer is activated again with screen data saved when opening the item menu. This MissingNo. catch sets bit 7 again and the Escape Ropes now have a quantity of 255.

Obtaining Item Underflow

Note that the remaining sections make heavy use of the pokered disassembly labels. Each time a new label is mentioned or referenced much later than previous references, the address in square brackets will be listed next to it.
  • Item Underflow is obtained via the "Dry Underflow" method. Escape Rope x43 is created as a side effect to save a quantity toss later.
  • The Use/Toss Menu is brought up to fix the item menu's cursor bounds (set to 1 during Item Underflow), which is currently set so that the cursor can move to at most the second item before scrolling the menu. Not resetting this value would cause the game to render more of item 0x00 (referred to as []j.) which the name lookup causes enough lag to be slower than bringing up the Use/Toss Menu.
  • Escape Rope x43 is swapped into the 9th slot. The 43 (0x2b) represents the lower byte of a pointer used for the main farming glitch.
  • The []j. item below is swapped with a TM43 in the Rival Name Underflow memory section. This forms the pointer 0xf32b, which points to the quantity of the third and last 0xff item (CANCEL).
  • The Options item ([]j. x129) is swapped with the Palette item (Old Amber x0), setting the delay between printing letters to zero.
  • One Master Ball is tossed from Master Ball x3, setting the Last Outside Map warp location to 2, the internal ID of Pewter City.
  • Full Restore x77 is swapped with item 0x7d to reduce lag later on. Item 0x7d belongs to a family of items known as TMTRAINER items, which their names are not properly terminated and read from a backup of the screen tiles, causing considerable lag.
  • []j. x255 is swapped with Moon Stone x10. This sets the source of the value copied to wWalkCounter [0xcfc5] to 0 during the buffer overflow used in the main farming glitch.
  • []j. x1 is tossed from the []j. x255 stack so that the buffer overflow, terminated by 0xff, does not end prematurely.
  • An HM03 is swapped with item 0x9e (4 8 4 8). This does two things: preserves an HM03 for later to be swapped with an unavoidable HM03 x255 that appears when warping to Pewter City, and removes an undesirable TMTRAINER item which would have to be swapped out later anyway to avoid generating lag during the main farming glitch.
  • A Master Ball x4 is swapped out from the game's warp entries and placed in a location that would cause the internal ID of Master Ball (0x01) to be copied to wIsInBattle [0xd057] during the main farming glitch.
  • []j. x1 is tossed from a []j. x0 (corresponding to wEnemyBattleStatus3 [0xd069] for the buffer overflow) to get []j. x255, which sets the end terminator of the buffer overflow.
  • The inventory is wrapped around to reach the start of the inventory, which happens due to the game using 8-bit addition to determine offsets for scrolling menus. Tossing a []j. x0 to reset the cursor to the start of the inventory was found to be slower due to additional lookups of the []j.'s item name.
  • CANCEL x2 is tossed from the third CANCEL's quantity to set it to 0xfe, representing a mart for the game's text ID engine.
  • Exiting Cerulean Cave wrong warps us to Pewter City.
  • Escape Rope x255 is swapped into the map's text pointer. Escape Rope x12 is tossed from Escape Rope x255, giving us Escape Rope x243 which points to 0xf31d.
  • Town Map x255 is swapped with the Town Map generated from the trainer ID to get rid of the 0xff quantity value.
  • The Current Map item is swapped with item 0xae (BLUE), corresponding to Indigo Plateau's Pokémon Center. This allows us to access a PC to change boxes during the main farming glitch, while not generating 0xff bytes upon loading a new map due to a lack of South and East Connections. If the setup was done in an indoor map with no connections, then we would have to toss CANCEL items which is slower as it resets the inventory to the top of the menu.
  • Master Ball x190 (quantity generated from TID) is swapped with Town Map (item ID generated from TID). The item ID of Master Ball corresponds to flags handling print delays, which the whole value requires bit 0 set and bit 1 reset for faster text delay. If bit 0 is reset, then text is forced to display at one frame per character, while if bit 1 is set, then text placed through the "text string" engine (e.g. PC menu options) would be delayed.
  • Master Ball x190 is swapped into a location where its quantity corresponds to wEnemyMonSpecies2 [0xcfd8] for the buffer overflow.
  • The bottom HM03 is swapped with the top HM03 to get rid of the 255 quantities.
  • The player moves to (y:9, x:16), to be able to interact with the now (invisible) sign-turned-mart vendor.
  • With the aforementioned item manipulation, the mart list overflows into other memory regions, allowing us to efficiently catch the remaining 148 Pokémon. Pokémon Storage System boxes are changed every 20 Pokémon (22 for the first round) using the Indigo Plateau PC at (y:07, x:15).
  • Once all remaining 148 Pokémon are captured, all party Pokémon except Ditto are deposited into the PC to save time on the Hall of Fame cutscene.
  • The player walks two steps down to prepare for a fast Hall of Fame warp.
  • TM40 x198 is swapped with Town Map (quantity representing the map ID for the map's north connected map).
  • TM40 x80 is tossed from TM40 x198, giving us TM40 x118, which the quantity corresponds to the Hall of Fame map ID.
  • Parlyz Heal x0 is swapped with HM05, setting the player's y-coordinate to 0 (quantity representing the player's y-coordinate).
  • The player walks up into the Hall of Fame. The two steps down taken earlier were necessary to put the player in a location where the player could walk upwards.

Major Terminology/Concepts

Quantity 255

When the game has to completely remove an item from the inventory, it shifts the items below in order to fill up the empty item slot, until it reaches the end of list terminator (marked as CANCEL). If an item with a quantity of 255 is below the tossed item, then the game mistakes the quantity of 255 for the end of list terminator and stops shifting the remaining items upwards. This leads to interesting side effects such as duplicating the 255 quantity item, or having another item represent the cancel button (despite not actually being the 0xff item). While the former effect makes obtaining the farming setup faster, the latter effect is relevant in obtaining Item Underflow.

Item Underflow/Dry Underflow

When the game merges two same items via swapping, it checks if the on-screen menu needs to be resized (note that this only refers to the current four items shown on screen). If the resulting list length is one, then the menu should be resized to 01 (only being able to use the first item). However, if a merge was somehow accomplished so that the resulting list length is zero (or any other value), then the menu is not resized. In normal gameplay, this does not matter as it is impossible to merge two items with only one item in the inventory. However, by having a non-CANCEL item act as the cancel button, we can merge two items together while having only one item in the inventory. By doing this twice, we can underflow the number of items in the inventory to 255.

LWA (Lucky Wins Again)

LWA, or "Lucky Wins Again" (poking fun at my successful attempts of finding new ways to break the Gen 1/2 glitched speedruns) is the main farming glitch used to catch the remaining 148 Pokémon in the game. The glitch abuses the capability for a mart to create a buffer overflow. When a mart is loaded, the game copies the list to wItemList [0xcf7b], terminated by 0xff. Therefore if we were to create a mart that has a terminator much later than expected, the copied data would overflow into unrelated memory. By controlling the buffer overflow, we can overwrite five main variables allowing us to catch Pokémon at a very fast rate. These variables are:
  • wEnemyMonSpecies2 [0xcfd8]: Read from when catching enemy Pokémon and is used to determine the resulting Pokémon caught, regardless of other similar variables.
  • wIsInBattle [0xd057]: Writing a value of 1 to this address allows throwing Poké Balls outside of battle.
  • wCurOpponent [0xd059]: Starts a battle if this value is non-zero. Must be kept as zero to prevent battles from being generated.
  • wBattleType [0xd05a]: Indicates if this is a non-standard battle (Old Man battle or Safari Zone battle). Must be kept as zero to prevent thrown Poké Balls from glitching out.
  • wEnemyBattleStatus3 [0xd069]: When a Pokémon is captured, the game sets a flag to indicate not to generate new DVs for the Pokémon. This is done in a very weird way, by setting a flag corresponding to whether the Pokémon has transformed or not, and has a side effect of causing subsequent out-of-battle captures to become Dittos (referred to as "Dittoization", and caused due to an assumption made by the programmers that a transformed Pokémon is a Ditto). Therefore, we want to clear this flag. This was the limiting factor for the efficiency of previous glitches, as the buffer overflow method used could not manage to clear this variable, requiring a battle to be completed (by running away) or a save and reset to happen. As this variable is cleared with the corruption, we do not need to do any additional steps to be able to capture more Pokémon.
Other relevant variables that are affected as a side effect of the buffer overflow:
  • wFontLoaded [0xcfc4]: Bit 0 determines whether font is loaded over the VRAM space for sprite walking patterns. Coincidentally, bit 0 is reset during the corruption, and in normal gameplay this would mean the player is transitioning to a different map via a warp, so the game assumes the LCD is disabled (allowing unrestricted access to VRAM) and directly copies the sprite walking patterns to VRAM. This saves time over if bit 0 was set, as the function to copy to VRAM while the screen is enabled would be called instead, thus wasting 5 frames (1 per sprite) every time the mart is closed.
  • wWalkCounter [0xcfc5]: Stores the remaining about of player sprite advances to perform. Longer values mean waiting more, so naturally we want to set this to zero.
  • wAudioFadeOutControl, wAudioFadeOutCounterReloadValue, and wAudioFadeOutCounter [0xcfc7-0xcfc9]: Writing a non-zero value to wAudioFadeOutControl will cause the game to start fading out audio, from the internal volume of 0x77 to 0x00 (in decrements of 0x11). This has a side effect of skipping sound effects, allowing us to bypass forced waits for certain sound effects, such as Pokémon cries. wAudioFadeOutCounterReloadValue, which reloads wAudioFadeOutCounter whenever it hits zero, is coincidentally loaded with 246 allowing for a fadeout long enough to keep the music playing until a cry is played (which sets volume to 0x33, then to 0x77).
To create this custom mart, text pointer manipulation is used. Firstly, the base text pointer is replaced to be 0xf31d (echo RAM copy of wNumBagItems [0xd31d]). From there, 0xf32f, the location where the Pewter Museum sign would read its text using pointer lookup, is manipulated to 0xf32b, which points to the earliest possible address that we can set up this glitch (anything earlier would require tossing the "CANCEL" item which requires too much preparation). At 0xf32b, we set its value to 0xfe. This causes the game to call the mart code instead, as in the text ID engine the game checks the first byte of the text to see if it matches specific values and does alternate functions based on them. In this case, 0xfe will treat the NPC (or sign) as a mart. By removing any early instances of 0xff, setting the actual terminator much later, and manipulating the expanded inventory pack to align correctly with the destination, we can create a buffer overflow that will desirably corrupt memory according to the above values to efficiently catch Pokémon.

Alternatives considered

  • Setting up another text pointer to bring up Bill's PC: The first iteration of the route had slightly better swaps and less movement, however creating a "fake" PC doesn't work out, as changing boxes from a PC that isn't accessed through the game's "hidden object" code (which also handles PCs) will result in the base text pointer being erroneously overwritten.
  • Using a single ROM based pointer to create the glitched mart: While only requiring the preparation of one pointer instead of two, there are no values in ROM that can represent a suitable pointer for the glitched mart without needing to toss the three CANCEL items at the start of the inventory for the buffer overflow to be successful.

Reasons for rejection

LWA isn't very interesting to watch and becomes boring pretty quickly, but the overall goal (catching all Pokémon) is considered 100% and is thus Vault-able. However, it could be deemed rejectable for not being entertaining enough for Moons and using somewhat arbitrary restrictions for Vault, which aims to go as fast as possible. These restrictions are in particular:
  • Does not modify Pokédex flags.
  • Does not execute arbitrary code.
Other restrictions were self-imposed during the routing of this TAS. These restrictions might not even matter towards fastest completion time as LWA may be the fastest setup anyway, although other setups that do not follow the other self-imposed have not been looked into.
  • Does not use glitches that allow executing arbitrary ROM addresses. Modifying the map script pointer (called every overworld frame) comes close to this as it allows specifying an arbitrary ROM address, but fails to completely cover the entire ROM space as only ROM banks that are used by maps can be executed. It is still not used for this TAS.
  • Does not use glitches that allow writing to an arbitrary destination. The text engine has capability to do this, using the unused command 0x03 to repoint the destination to theoretically any address, then by using the string engine to print text to the specified destination. However, it is unable to write completely arbitrary values as some values are used as "control codes" which do alternate functions that do not result in the byte being written. The invalid mart used in LWA does not fall under this as the destination address of the corruption is fixed, while the source is arbitrarily specifiable.
  • Does not use "mass corruption" glitches. Perhaps the most subjective of the self-imposed restrictions, the TAS forgoes glitches that can cause "mass corruption" (which isn't even well defined) such as party overflow (used in previous RTA speedruns of Pokémon Blue Any% No Save Corruption) or out-of-bounds Pokémon Storage System boxes, which can theoretically be used to write a massive amount of data to WRAM, albeit not entirely chosen arbitrarily. These glitches are forgone because of the general unstability of them, as well as the two mentioned "mass corruption" glitches are not easily manipulable.

Credits:

  • luckytyphlosion: Coming up with the route for the TAS and creating the LWA strategy.
  • gifvex: Botting the entire TAS and suggesting minor route improvements. He chose not to be listed as an author here, because Pokémon is primarily routing-based and LWA is [luckytyphlosion's] creation.
  • Chivu93: While he didn't participate in the making of the TAS, he improved the LWA strategy by using the Master Ball's quantity for the caught Pokémon instead of originally needing to toss a separate item for each Pokémon.
  • MrWint: Faster menuing techinique used in his "SRAM Glitch" TAS.
  • the pokered disassembly: General massive help in documenting the game's code allowing numerous tricks, including the LWA strategy, to be discovered.
  • BGB: Game Boy emulator with an amazing debugger that helped with routing out the TAS.

Noxxa: Judging.
Noxxa: This TAS spawned an interesting discussion on exactly what levels of glitchiness a run can contain while still being considered a legitimate full completion (catch 'em all) movie. Essentially, this movie sets a quite good example: arbitrary code execution and such glitches are not used, as they would break the point of being full completion, setting Pokémon capture flags through memory corruption is not counted (and isn't done), and the movie does run through the game to collect all Pokémon one by one before going to the ending, just like other runs of this category; it just does so more efficiently, cutting out gameplay time between captures and trimming down the capture sequence to its most basic form. Ultimately, it's just full completion to a highly optimized form. As such, this movie is acceptable for the Vault. The rules of the Vault have also been updated as a result of the discussion surrounding this movie, in order to define what levels of glitches are (not) allowed for full completion movies.
Since this movie is much more repetitive in achieving its goal, only relying on one major glitch to collect all Pokémon in one chain, it also can only be accepted in the Vault tier based on entertainment grounds. As such, accepting to the Vault as an improvement to the published "Gotta Catch 'Em All!" movie.
Spikestuff: Gotta Break 'Em All! PUBLISHING!... Wait... that's not how the song goes.


Pokota
He/Him
Joined: 2/5/2014
Posts: 779
Your scientists were so preoccupied with whether or not they could, they didn’t stop to think if they should.
Love the premise, it's just that twenty minutes of the same music with the catch routine superimposed on top of it just isn't entertaining.
Adventures in Lua When did I get a vest?
Post subject: Movie published
TASVideoAgent
They/Them
Moderator
Joined: 8/3/2004
Posts: 15585
Location: 127.0.0.1
This movie has been published. The posts before this message apply to the submission, and posts after this message apply to the published movie. ---- [3687] GB Pokémon: Blue Version "Gotta Catch 'Em All!" by luckytyphlosion in 37:55.33
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11477
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
Congrats to everyone involved!
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Experienced player (705)
Joined: 2/5/2012
Posts: 1800
Location: Brasil
just a quick note: the description mentions what happens in the past movies but doesn't tell anything about the movie is supposed to describe like: "In this movie, Luckytyphlosion catches all 151 pokémon with a handful of glitches blabla"
I want all good TAS inside TASvideos, it's my motto. TAS i'm interested: Megaman series, specially the RPGs! Where is the mmbn1 all chips TAS we deserve? Where is the Command Mission TAS? i'm slowly moving away from TASing fighting games for speed, maybe it's time to start finding some entertainment value in TASing.
Banned User
Joined: 4/1/2016
Posts: 295
Location: Cornelia Castle
The world record is about 5 minutes faster than this. I can't believe this TAS hasn't been beaten. I have started making a new one to reflect the changes, but I'm having trouble manipulating DVs.
DJ Incendration Believe in Michael Girard and every speedrunner and TASer!
EZGames69
He/They
Publisher, Reviewer, Expert player (4462)
Joined: 5/29/2017
Posts: 2762
Would it kill you to link the WR you are referring to?
[14:15] <feos> WinDOES what DOSn't 12:33:44 PM <Mothrayas> "I got an oof with my game!" Mothrayas Today at 12:22: <Colin> thank you for supporting noble causes such as my feet MemoryTAS Today at 11:55 AM: you wouldn't know beauty if it slapped you in the face with a giant fish [Today at 4:51 PM] Mothrayas: although if you like your own tweets that's the online equivalent of sniffing your own farts and probably tells a lot about you as a person MemoryTAS Today at 7:01 PM: But I exert big staff energy honestly lol Samsara Today at 1:20 PM: wouldn't ACE in a real life TAS just stand for Actually Cease Existing
TiKevin83
He/Him
Ambassador, Moderator, Site Developer, Player (155)
Joined: 3/17/2018
Posts: 358
Location: Holland, MI
https://youtu.be/KHEn7tNtpcA https://www.speedrun.com/pkmnrbyext#RedBlue_-_Catch_em_All The PSR community hasn't worked on this run as far as I know, it was originally submitted partially as part of April Fools and the new routing is even more of a judging nightmare
Editor, Reviewer, Skilled player (1359)
Joined: 9/12/2016
Posts: 1646
Location: Italy
TiKevin83 wrote:
https://youtu.be/KHEn7tNtpcA https://www.speedrun.com/pkmnrbyext#RedBlue_-_Catch_em_All The PSR community hasn't worked on this run as far as I know, it was originally submitted partially as part of April Fools and the new routing is even more of a judging nightmare
To me it looks like an acceptable strategy, for our Movie Rules. Lemme quote:
Movie Rules wrote:
Full completion criteria must be reached through in-game actions only.
  • Arbitrary code execution (ACE) is not allowed for any full-completion category for the Vault. Arbitrary code execution of ROM data, and memory corruption tricks to write to arbitrary memory are also not allowed.
  • If a game has a progress counter, it must be filled by actions that increment the counter in game-play. Modifying the progress counter through ACE or memory corruption is not allowed.
  • If full completion is counted by obtaining a set of items, these items must be collected through in-game methods. Using memory corruption to place items into an inventory is not counted towards full completion.
  • If full completion is counted by fulfilling a set of flags, these flags must be set through in-game mechanisms. Using memory corruption to set completion state flags is not allowed.
  • If a progress counter is filled by collecting a set of items or fulfilling a set of flags, all individual components of this set must be collected or fulfilled. Collecting or fulfilling the same component multiple times to inflate the progress counter is not counted towards full completion.
There are different ways in Pokémon Gen 1 games to obtain a Pokémon through in-game mechanics. Right off the bat, these come to my mind: wild encounter capturing, gift (eg: Eevee, Lapras, etc.), and casino coins exchange. Since the speedrun you linked seems to be triggering an existing function from the ROM (the third I mentioned) then it would be using an already present in-game mechanic for obtaining such Pokémon. The fact that it's being triggered from an unintended situation doesn't matter much, as long as the Pokémon species are registered as captured via the execution of this function from the ROM, and not by modifying the Pokédex data via direct memory corruption or ACE.
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"
Banned User
Joined: 4/1/2016
Posts: 295
Location: Cornelia Castle
Note: in my TAS, I don't know if there's a faster TID, so if I submit it when it's done, you may see the RTA version of the TID manip.
DJ Incendration Believe in Michael Girard and every speedrunner and TASer!
Player (27)
Joined: 3/2/2014
Posts: 34
Location: Canada
The new RTA route which I created (known as FTL) does not break any of the TASVideos 100% rules. The main glitch involves using an invalid Game Corner which reads the prizes from RAM which we can easily modify to give ourselves any Pokémon. If you look at the function which gets the list of prize menus here, you can see that it derives which prize menu to use from the sprite index of the sprite which opened up the prize menu. Using an invalid sprite index will cause the game to read the prize and cost pointers past the end of the list. I've dumped all the invalid game corner prizes and prices in this pastebin. The invalid game corner I use is Game Corner 59, as it is the only game corner which reads its prizes from an item underflow quantity. As for whether the current FTL route is considered optimal for a TAS, there are a few things to consider. The current route does not use Save Corruption. In Gen 1 Glitched speedruns, save corruption is generally banned due to legacy reasons. It was previously thought that you could not achieve item underflow without corrupting Pokédex flags, and as such it was banned. However, a while ago, gifvex discovered that you could corrupt the number of box items, allowing you to withdraw a []j. x0 and achieve item underflow with that. There are also other considerations. Party Overflow with 255 Pokémon would allow you to access the entirety of WRAM, or more specifically, addresses from $d16b to $fd3f (due to Echo RAM, this is equivalent to accessing $c000-dfff), the caveat being that it is difficult to manipulate single values at a time. One could imagine a setup where you'd swap Pokémon in order to get an NPC with sprite index 59 and with a text pointer that points to the Game Corner byte. Interestingly enough, the fact that Party Overflow cannot access SRAM is actually relevant here. For Game Corner 59, the prices pointer points to SRAM, and thus requires additional setup in the RTA route to set it to a low enough value to buy all remaining Pokémon. This type of distinction points to an issue in what counts as arbitrary memory corruption. Sure, this glitch can access the entirety of WRAM, but it can't access HRAM or SRAM, so it can't corrupt every memory address. This type of ambiguity has generally left me unsatisfied with the Gen 1-2 glitched rules, mainly because I have been unable to resolve it. If we assume that Save Corruption would be banned, then there isn't much to improve for a TAS. Other than getting perfect RNG, these would be the following potential improvements: - Use Charmander instead of Bulbasaur: I chose Bulbasaur for the RTA route since getting Brock Through Walls with it is much easier, and I didn't expect anyone to grind the category out seriously. Using Charmander to get BTW is faster as it doesn't require catching a Pidgey. I can't remember off the top of my head if there are any changes to the route if Charmander was used instead of Bulbasaur. - Missingno Backsprite corruption: In the RTA route, you're supposed to intentionally crash the game in order to set $a7ce (the price of the Game Corner prize slot which you buy from) to a low enough value such that you can buy every remaining Pokémon. There's a hypothetical strategy I've thought of, which involves viewing Missingno's backsprite. Missingno's backsprite can corrupt memory to $a7ce. The problem in an RTA run is that Missingno's backsprite reads from VRAM. Under normal conditions, VRAM is only readable at certain periods per scanline (known as HBlank and Mode 2). This means that getting a good backsprite corruption would rely on "VRAM RNG". While a manipulation may be possible, I don't have the knowledge to create manips, and I wasn't even sure if it was possible to get a value of 0 (the desired value) into $a7ce. For a TAS, such a strategy is worth exploring to see if it is doable.
Meerkov wrote:
The human element of the run is far more entertaining than the game itself. If it wasn't for someone lying about their record 40 years ago, I don't think we'd take a second look at this run/game. Meh vote.
Banned User
Joined: 4/1/2016
Posts: 295
Location: Cornelia Castle
To be honest, a lot of that was hard to understand. Wouldn't save corruption mean that after the run, you wouldn't be able to view your pokemon from the menu or do a normal fight? (I tested getting some pokemon out of the PC after the published run and it worked, but when I play the game with save corruption, the fights go terribly wrong.) I think the whole back sprite thing is interesting, but I don't know how I would do that. I have been working on a new catch em all TAS with the RTA route, but only made it to the DVs since I'm not good at botting out the Gen 1 misses or anything like that. Since I can't see (at all, literally), in order to find what the DVs are, I had to ask someone else (in this case, my parents) what they were. In Red/Green I can move around since the frames while moving are set to non-input frames, but they fixed that in all future games, making it hard for me to move around in the English games.
DJ Incendration Believe in Michael Girard and every speedrunner and TASer!
Banned User
Joined: 4/1/2016
Posts: 295
Location: Cornelia Castle
I'm wondering if there's a mass farming glitch for Yellow.
DJ Incendration Believe in Michael Girard and every speedrunner and TASer!
TiKevin83
He/Him
Ambassador, Moderator, Site Developer, Player (155)
Joined: 3/17/2018
Posts: 358
Location: Holland, MI
There almost certainly is considering we use party swaps in YNSC but I wouldn't have the slightest idea how
Banned User
Joined: 4/1/2016
Posts: 295
Location: Cornelia Castle
I mean without a party of more than six.
DJ Incendration Believe in Michael Girard and every speedrunner and TASer!
Banned User
Joined: 4/1/2016
Posts: 295
Location: Cornelia Castle
luckytyphlosion wrote:
The new RTA route which I created (known as FTL) does not break any of the TASVideos 100% rules. The main glitch involves using an invalid Game Corner which reads the prizes from RAM which we can easily modify to give ourselves any Pokémon. If you look at the function which gets the list of prize menus here, you can see that it derives which prize menu to use from the sprite index of the sprite which opened up the prize menu. Using an invalid sprite index will cause the game to read the prize and cost pointers past the end of the list. I've dumped all the invalid game corner prizes and prices in this pastebin. The invalid game corner I use is Game Corner 59, as it is the only game corner which reads its prizes from an item underflow quantity. As for whether the current FTL route is considered optimal for a TAS, there are a few things to consider. The current route does not use Save Corruption. In Gen 1 Glitched speedruns, save corruption is generally banned due to legacy reasons. It was previously thought that you could not achieve item underflow without corrupting Pokédex flags, and as such it was banned. However, a while ago, gifvex discovered that you could corrupt the number of box items, allowing you to withdraw a []j. x0 and achieve item underflow with that. There are also other considerations. Party Overflow with 255 Pokémon would allow you to access the entirety of WRAM, or more specifically, addresses from $d16b to $fd3f (due to Echo RAM, this is equivalent to accessing $c000-dfff), the caveat being that it is difficult to manipulate single values at a time. One could imagine a setup where you'd swap Pokémon in order to get an NPC with sprite index 59 and with a text pointer that points to the Game Corner byte. Interestingly enough, the fact that Party Overflow cannot access SRAM is actually relevant here. For Game Corner 59, the prices pointer points to SRAM, and thus requires additional setup in the RTA route to set it to a low enough value to buy all remaining Pokémon. This type of distinction points to an issue in what counts as arbitrary memory corruption. Sure, this glitch can access the entirety of WRAM, but it can't access HRAM or SRAM, so it can't corrupt every memory address. This type of ambiguity has generally left me unsatisfied with the Gen 1-2 glitched rules, mainly because I have been unable to resolve it. If we assume that Save Corruption would be banned, then there isn't much to improve for a TAS. Other than getting perfect RNG, these would be the following potential improvements: - Use Charmander instead of Bulbasaur: I chose Bulbasaur for the RTA route since getting Brock Through Walls with it is much easier, and I didn't expect anyone to grind the category out seriously. Using Charmander to get BTW is faster as it doesn't require catching a Pidgey. I can't remember off the top of my head if there are any changes to the route if Charmander was used instead of Bulbasaur. - Missingno Backsprite corruption: In the RTA route, you're supposed to intentionally crash the game in order to set $a7ce (the price of the Game Corner prize slot which you buy from) to a low enough value such that you can buy every remaining Pokémon. There's a hypothetical strategy I've thought of, which involves viewing Missingno's backsprite. Missingno's backsprite can corrupt memory to $a7ce. The problem in an RTA run is that Missingno's backsprite reads from VRAM. Under normal conditions, VRAM is only readable at certain periods per scanline (known as HBlank and Mode 2). This means that getting a good backsprite corruption would rely on "VRAM RNG". While a manipulation may be possible, I don't have the knowledge to create manips, and I wasn't even sure if it was possible to get a value of 0 (the desired value) into $a7ce. For a TAS, such a strategy is worth exploring to see if it is doable.
I explored a little bit, but I couldn't figure out how to corrupt the number of box items. I tried doing the 2/10 trick, but I can't figure out a way to get it without modifying pokedex flags. If I could figure it out, I would have to undo the effects of the 255 Pokémon glitch after corrupting the box items, and I don't even know what names I would use. I'll look into it more.
DJ Incendration Believe in Michael Girard and every speedrunner and TASer!