Main Menu
Main Page
Forums
New pages
Recent changes
Random page
Help

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch
Tweaking
Glitches by generation
Glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Pokémon cheat codes
Pokémon glitch terminology
Useful tools
More

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: Pokémon Yellow: How to access (glitch) Trainers other than the standard 56  (Read 213 times)

0 Members and 1 Guest are viewing this topic.

Eve the Bird Mother ❤✿

  • Always believe in yourself first. ✿ Aspiring to be a mother. 🦋
  • Head Administrator
  • *****
  • Online Online
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • View Profile
This has been available with Game Genie for a while now (Wack0 provided the theory and I generated the codes), but the trouble with this is that the physical Game Genie doesn't like Pokémon Yellow's cartridge type; bringing up a blank screen if you use it. For reference however, the Game Genie codes to do this are: 3E0-2E9-B31 XX0-2F9-C49 (where XX is the Trainer class you want, equivalent to Trainer escape glitch ID minus 200). All you have to do for this method is battle any Trainer, and it will become the desired Trainer or glitch Trainer.

Now however, you can do this with ACE eliminating the need for Game Genie or ROM hacking.

Requirements:

0) To have mastered Celadon looping map glitch and to know how to destroy Cancel buttons.
1) ws m (0x63) bootstrapped to D321. C3 21 D3 at 0xDA7F will do the trick. You can use map script abuse or connection copier to write these values.
2) 4F (0x59) bootstrapped to D330. C3 30 D3 at 0xDA64 (technically 0xFA64; this might matter if you're using a bad emulator) will do this. This can be achieved with the same methods as 1).
3) The following code beginning from item 3 (no unterminated-name or lag glitch items, however those should be avoided with B-Button when you encounter them with Celadon looping map glitch):

Steps (code/items from below must be stored in the memory):

1) Use ws m. It appears 'nothing happened', but it actually copied data from ROM into RAM at DA7F (stored Pokémon).
2) Adjust Lemonade x0's quantity and use 4F immediately after using ws m to enter the battle with a Trainer class based on Lemonade's quantity.

@D321 (item 3) (routine copier)

ld a,3d
ld hl,5ff2
ld bc,0244
ld de,da7f
call 009d
ret

: Calls FarCopyData with source as 3D:5FF2, bytes to copy as 0x244 and destination as DA7F (modifies ws m)

@D330 (item 10 quantity) (pseudo-Game Genie and battle activator)

ld hl,dabb
ld a,3e
ldi (hl),a
inc b
ld a,(desired trainer class; d338)
ldi (hl),a
inc b
ld a,ff
ld (d058),a
inc b
inc b
ld b,3d
ld hl,da7f
call 3e84
ret

: 'Patches' DABB. This should be sub a,c8 (take the Trainer escape ID and subtract 200 to get Trainer class) but instead we change it to ld a, xx; allowing us to battle any Trainer class we want. D058 is set to a non-00 value, the bank is switched back to 0x3D and we run the code we copied to DA7F and modified with the patch.

The entirety of this code fills the item pack and touches money byte 1, so don't win any money from the trainer if you want to battle more than one in one session. The unique Trainer AIs you can access this way however may stop you and result in a freeze. TM55 (Trainer (actual):255) has an interesting AI which sends you to Victory Road.

The item list from item 3 is as such:

i3: Lemonade x61
i4: Thunderstone x242
i5: 10F x1
i6: X Special x2
i7: Max Potion x127
i8: TM18 x205
i9: Item 0x9D (#ァPkMn p#ゥ ##ゥK▶E '#4ゥ) x0
i10: TM01 x33
i11: Item 0xBB (#……#) x218
i12: Lemonade x62
i13: Water Stone x4
i14: Lemonade x(desired (real) Trainer class ID)
i15: Water Stone x4
i16: Lemonade x255
i17: TM34 x88
i18: TM08 x4
i19: Poké Ball x6
i20: Soda Pop x33
i21 (normal end/money 1): Item 0x7F (#ぇ #### ### #####u#) x 218
i22 (money 2/3): TM05 x132
i23 (rival name 1/2) : Lemonade x201

You may also download the "all glitch trainers" save from my Google Sites, import it, and modify item 14's quantity to explore all 256 Trainers. Note the Lemonade x0 means Lemonade x256. You can toss from this quantity as if it was valid, to access roster 256 (no tossing) or rosters 1-255 (tossing).

Link: https://sites.google.com/site/torchickens2/pokemon-save-files

Unfortunately rosters are unsupported as of now. I'm unsure how to implement them but it may be possible.

Have fun glitching! :)
« Last Edit: January 04, 2019, 01:52:32 pm by Evie ❤✿ »

(Image © Sanrio, Nintendo, HAL Laboratory)

✿ Hi! I'm Evie. I'm a transgender woman, but any pronouns are fine. She/her preferred. ✿ 🦋

Please note:

While I'm one of the staff who runs the site, Abwayax is the founder and manages the technical side of the site (specifically the server, but I can do forum/wiki stuff if you like, I suggest if you do to make a thread about it to gather a consensus). Still feel free to contact me about higher site issues though; I will forward them to Abwayax if needed. :)

Forgiveness is timeless, and moments we look back on humble the soul.

Thank you Nyapon for this lovely artwork. :3

SloshedMail

  • aka smbcha
  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • So old.
    • View Profile
    • Youtube
I will make a video showcasing these on Virtual Console Yellow - though it will require a little further testing in advance.

Please go to the next post.
« Last Edit: February 12, 2019, 03:55:22 pm by SloshedMail »

Eve the Bird Mother ❤✿

  • Always believe in yourself first. ✿ Aspiring to be a mother. 🦋
  • Head Administrator
  • *****
  • Online Online
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • View Profile
Cool! Thanks SloshedMail.  :)

(Image © Sanrio, Nintendo, HAL Laboratory)

✿ Hi! I'm Evie. I'm a transgender woman, but any pronouns are fine. She/her preferred. ✿ 🦋

Please note:

While I'm one of the staff who runs the site, Abwayax is the founder and manages the technical side of the site (specifically the server, but I can do forum/wiki stuff if you like, I suggest if you do to make a thread about it to gather a consensus). Still feel free to contact me about higher site issues though; I will forward them to Abwayax if needed. :)

Forgiveness is timeless, and moments we look back on humble the soul.

Thank you Nyapon for this lovely artwork. :3

SloshedMail

  • aka smbcha
  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • So old.
    • View Profile
    • Youtube
This took slightly longer than I thought.

https://www.youtube.com/watch?v=fs0sKbxmh_M

Edit: 30:13

Sherkel

  • The first unquiring one to bare arms
  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Doesn't it feel just like we're above the ground?
    • View Profile
Wow, that was sudden in the best of ways! Welcome back and thank you for all that documentation. I may even end up watching through the whole thing.