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: Gen II Battle Transition Oversight  (Read 1037 times)

0 Members and 1 Guest are viewing this topic.

pigdevil2010

  • Member+
  • Offline Offline
  • Gender: Male
  • Welcome to the 40 ERROR.
    • View Profile
Gen II Battle Transition Oversight
« on: February 18, 2016, 10:46:02 am »
I found this while working on a rom hack of Pokemon Crystal. According to the disassembly, there's a battle transition for when your first Pokemon has a level less than the opponent by at least three and the one for the opposite. Just like in Gen I. However, I tested it and whatever the level my Pokemon was, the transition always resulted randomly. So I debugged the rom and found out that those Pokemon level data it supposed to compare are not loaded. This oversight even occurred in the original Gold/Silver.



According to the above image, $CB19 (BattleMonLevel) should be $35, which was the level of my Meganium. And $D0FC (EnemyMonLevel) should be the level of an opponent. These data are used for something else outside the battle (for example, BattleMonLevel is a part of tile map buffer) so that's why the result of battle transition effect is random.

Sorry again if someone else already discovered this.

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: Gen II Battle Transition Oversight
« Reply #1 on: February 22, 2016, 07:09:23 pm »
I've been browsing the Pokémon glitch community for a while, but never found anything like this. Do you thing this has any potential to be useful ? (I doubt it could outside of a TAS, but I trust you to find creative answers)

Anyways, if the game does not load the mon's level, what is use for comparaison ?
"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 !)