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

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
Glitches by generation
Other glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Interactive tools
Reference documents
Terminology

Affiliates
Legendary Star Blob 2 (Hakuda) (日本語/Japanese)
Pokémon Speedruns wiki (English)
PRAMA Initiative (Français/French)
MissingNo. Glitch City (Italiano/Italian)
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: Trainer-Fly plus Cycling Road  (Read 837 times)

0 Members and 1 Guest are viewing this topic.

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Trainer-Fly plus Cycling Road
« on: January 15, 2017, 06:02:30 pm »
I'm playing EU Pokémon Yellow, and I have triggered a Trainer-Fly using the Gambler we all know about. This doesn't seem important for what's next, but I say in case it might come in handy.
I flew to Celadon City for a match with a Cue Ball (I was aiming for a Kadabra), but when I entered the "sloped" area, I wasn't forced downwards ! All non-downwards movement is still slow, but Red doesn't move when not holding any button.
Both wild battles and Trainer battles cancel the glitch.

I assume this comes from that the game doesn't apply downwards movement when Red engages a battle, but the fact that wild battles also cancel the glitch proves that non-Trainer battles also unset a few flags. These flags might be worth researching.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Yeniaul

  • Guest
Re: Trainer-Fly plus Cycling Road
« Reply #1 on: January 15, 2017, 06:25:21 pm »
...kinda surprised nobody's found this out yet. Nice catch!

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Trainer-Fly plus Cycling Road
« Reply #2 on: January 16, 2017, 06:15:59 am »
The glitch isn't cancelled by saving (by changing PC boxes) nor it is by Fly.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Crystal_

  • Distinguished Member
  • *
  • Offline Offline
  • 39 00 39 00 39 00 39 00
    • View Profile
Re: Trainer-Fly plus Cycling Road
« Reply #3 on: January 16, 2017, 03:18:10 pm »
This probably: https://github.com/pret/pokered/blob/bf67f7174d8e3f1348c786618ee5a3a076d1eff8/home/overworld.asm#L1852-L1854
Code: [Select]
ld a,[wFlags_D733]
bit 3,a ; check if a trainer wants a challenge
jr nz,.notForcedDownwards

Set when a trainer engages the played, before walking to him: https://github.com/pret/pokered/blob/46a94c63fc287e7290502776d02648476bc44171/home.asm#L2338-L2340
Code: [Select]
.trainerEngaging
ld hl, wFlags_D733
set 3, [hl]

Reset only when a battle (any kind of battle) occurs:
https://github.com/pret/pokered/blob/bf67f7174d8e3f1348c786618ee5a3a076d1eff8/home/overworld.asm#L326-L330
Code: [Select]
.battleOccurred
ld hl,wFlags_D733
res 3,[hl]

The game is assuming that one of the trainers in route 17 has engaged the player, so it prevents the player from moving down as the trainer walks to him.
« Last Edit: January 16, 2017, 03:19:48 pm by Crystal_ »

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Trainer-Fly plus Cycling Road
« Reply #4 on: January 16, 2017, 03:37:12 pm »
Neat, thanks Crystal_ !
Also, on an unrelated note, I noticed that the function right below is said to have a bug that doesn't show up, but it might be the explanation to the "walking on water glitch"
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Charmy

  • A guy who likes glitchyness.
  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • "NIDOQUEEN THOMAS wants to battle!"
    • View Profile
Re: Trainer-Fly plus Cycling Road
« Reply #5 on: January 17, 2017, 07:37:56 am »
I just want to mention, it's easy to reproduce on JP Red/Green with the trainer mutation select glitch, give it a try.
"Time is mone
Go along then" - Old Man


TMZ4 is the BEST TM while the sucky Channel is the best channel.