Main Menu
Main Page
Forums
Recent changes
Non-Pokémon glitches
Random page
Help

Databases
GlitchDex
AttackDex
ItemDex

Major Glitches
Ditto Trick
Mew Trick
Celebi Trick
Old Man Trick
Q Trick
Pokémon Cloning
More

Miscellaneous glitches
Red/Blue/Yellow
Gold/Silver/Crystal
Generation III
Generation IV
Generation V

Error handlers
MISSINGNO.
Object event.
Corrupted event!
Mystery Zone
NINTEN
SONY
Bad Egg
??????????
More

Speedrunning glitches
Red/Blue only
Red/Blue/Yellow

Reference Documents
The BIG Hex List
Glitch Regions
Glitch Myths
Pokémon Gameshark Codes
Pokémon glitch terminology

Alpha/Beta Elements
G/S/C Beta Safari Zone
G/S/C Beta Olivine House
S.S. Anne Ship Trick
Beta Pokémon Names
Bird Type
Cacophony Ability
Unused soundtracks
More

Interactive Tools
R/B Name Generator
R/B Stat Changer

Search Wiki

 

Search Forums

 

Author Topic: Encounter Flags and Item Mutation/Duplication  (Read 2360 times)

0 Members and 1 Guest are viewing this topic.

rjaguar3

  • Member+
  • Offline Offline
  • Glitch Power: +1/-0
  • Gender: Male
    • View Profile
Re: Encounter Flags and Item Mutation/Duplication
« Reply #15 on: September 08, 2007, 12:16:11 PM »
Sorry, what are flags? I kinda get it but not...really...

When you encounter or capture a Pokemon, the game sets a bit in memory to notate that you have seen/caught that pokemon.  This way, the Pokedex will be able to accurately show all the Pokemon you've seen and caught.

This is all done by means of an array.  There are 19 bytes to store whether the pokemon have been caught, followed by 19 bytes to store seen pokemon.  Since there are 8 bits in a byte, each of these arrays can hold the data for 152 pokemon.  The game has a somewhat complicated way of determining which pokemon corresponds to which byte, but it basically follows that the higher the dex number, the later in memory the pokemon's bit will be.

This all works dandy if the dex numbers are from 1-151, as it should be.  But, since some glitches have a dex number outside of that range, it is possible for the game, when setting the bit to say "this pokemon has been encountered," sets a bit beyond the 19 bytes allocated for "encountered pokemon."  What happens to be stored after the pokedex encounter array is the list of items you have.  So an encounter with a glitch with dex number not from 1-152 (e.g. Missingno.) will change either the number of item slots you have, the quantity of an item, or the identity of an item.  These effects can be completely predicted by looking at the dex number, as I stated in my first post.

Tombstoner

  • Doing RNG again.
  • Staff
  • *****
  • Offline Offline
  • Glitch Power: +43/-3
  • Gender: Male
  • Also might be getting an R4 soon...
    • View Profile
    • Cloan Club
Re: Encounter Flags and Item Mutation/Duplication
« Reply #16 on: September 08, 2007, 04:06:31 PM »
Oh. So we all had seen this all along wjhen we first us4ed the MissingNo. trick...
Watch this space

rjaguar3

  • Member+
  • Offline Offline
  • Glitch Power: +1/-0
  • Gender: Male
    • View Profile
Re: Encounter Flags and Item Mutation/Duplication
« Reply #17 on: September 09, 2007, 09:10:09 PM »
Oh. So we all had seen this all along wjhen we first us4ed the MissingNo. trick...

Yes.  In the most familiar case of Missingno., the bit that's affected by an encounter is the most significant bit of the quantity of the 6th item.  Hence, an encounter with Missingno. will add 128 to the sixth item quantity iff the item quantity is 127 or less.

Tombstoner

  • Doing RNG again.
  • Staff
  • *****
  • Offline Offline
  • Glitch Power: +43/-3
  • Gender: Male
  • Also might be getting an R4 soon...
    • View Profile
    • Cloan Club
Re: Encounter Flags and Item Mutation/Duplication
« Reply #18 on: September 10, 2007, 07:21:46 PM »
What exactly happens if it's already 127+? That's definitely happened for me before...
Watch this space

rjaguar3

  • Member+
  • Offline Offline
  • Glitch Power: +1/-0
  • Gender: Male
    • View Profile
Re: Encounter Flags and Item Mutation/Duplication
« Reply #19 on: September 11, 2007, 07:20:19 PM »
What exactly happens if it's already 127+? That's definitely happened for me before...

In that case, when the game sets the bit to 1, it won't change anything, since it was already 1.  Hence, nothing would happen.

Tombstoner

  • Doing RNG again.
  • Staff
  • *****
  • Offline Offline
  • Glitch Power: +43/-3
  • Gender: Male
  • Also might be getting an R4 soon...
    • View Profile
    • Cloan Club
Re: Encounter Flags and Item Mutation/Duplication
« Reply #20 on: September 12, 2007, 01:37:31 PM »
Really? In my experience they seemed to have gone up to FF(well around that anyway, at least 200)... But i guess that must have been something else...what common thing might do that? Anybody know?
Watch this space

rjaguar3

  • Member+
  • Offline Offline
  • Glitch Power: +1/-0
  • Gender: Male
    • View Profile
Re: Encounter Flags and Item Mutation/Duplication
« Reply #21 on: September 19, 2007, 09:08:52 PM »
Really? In my experience they seemed to have gone up to FF(well around that anyway, at least 200)... But i guess that must have been something else...what common thing might do that? Anybody know?

You probably had reduced your total to 127, which would allow you to add an additional 128 to make a total of 255.

Tombstoner

  • Doing RNG again.
  • Staff
  • *****
  • Offline Offline
  • Glitch Power: +43/-3
  • Gender: Male
  • Also might be getting an R4 soon...
    • View Profile
    • Cloan Club
Re: Encounter Flags and Item Mutation/Duplication
« Reply #22 on: September 20, 2007, 03:14:05 PM »
Gotcha. It wasn't exactly 255 because I must have used more than 1.
Watch this space

Vitro

  • GCLF Member
  • Offline Offline
  • Glitch Power: +0/-0
    • View Profile
Re: Encounter Flags and Item Mutation/Duplication
« Reply #23 on: December 17, 2007, 08:45:13 PM »
Im guessing the encounter flag for missingno and 'M is what also causes the effect of your hall of fame. I wonder if its possible if other glitch pokemon effect other parts of the game as well.

Tombstoner

  • Doing RNG again.
  • Staff
  • *****
  • Offline Offline
  • Glitch Power: +43/-3
  • Gender: Male
  • Also might be getting an R4 soon...
    • View Profile
    • Cloan Club
Re: Encounter Flags and Item Mutation/Duplication
« Reply #24 on: December 19, 2007, 12:31:37 PM »
Im guessing the encounter flag for missingno and 'M is what also causes the effect of your hall of fame. I wonder if its possible if other glitch pokemon effect other parts of the game as well.
Probably not actually, because more or less every glitch (PkMn) screws up your Hall of Fame.
Watch this space