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
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) (日本語/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: My idea of me documenting all Pokédex entires of 0xDC  (Read 406 times)

0 Members and 1 Guest are viewing this topic.

Parzival

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #15 on: September 12, 2019, 04:28:08 pm »
A Pokédex entry is a relatively complicated object. A valid Pokédex entry looks like this:
Code: [Select]
; string: species name
; height in feet, inches
; weight in pounds
; text entry

RhydonDexEntry:
db "DRILL@"
db 6,3
dw 2650
TX_FAR _RhydonDexEntry
db "@"
Here "DRILL" means Rhydon is the Drill Pokémon. This string is the first to be printed to the screen, and with good reason: The game need to know where that string ends in order to find all the other data.

Consider a Pokédex entry at $AA00. Contrary to what I initially believed, the SRAM is actually unlocked during the battle. It is locked when the game finished loading the player's back sprite, but is then unlocked when the game loaded the back sprite of my first Pokémon and never locked again. I can't tell if this is intentional.

Well, on my save file for testing, SRA0:AA00 is a bunch of 0xFF anyway. (Probably because I have cleared the save file some time in the past.) Which is an awfully long string of "9". More "9"s than healthy for the game. For example, at some point it overwrites wOptions and then wLetterPrintingDelayFlags, which causes the game to wait 15 frames between characters. And that's terrible.

For some reason, beginning at SRA0:BBB7, my save data is no longer 0xFF. It begins with some bytes I don't understand ("E4 35 70 01 67 3E 8C 00 00 39 C3 BB 94 20 20 D3 01 8C 8C 8C 20 D3 38"), and then (starting at $BBCE) becomes "00 39 00 39 00 39 ...". I guess old crashes don't die that easily.

Anyway, the game mercy kills the PlaceString subroutine when it sees 0x00 at $BBBE. But it puts the pointer de at $19F3, which is... here. Starting from $19F4, the bytes "17 96 66 22" are interpreted as the height and weight data (23'150"/880.6 lb; the 150 displayed as " 0" when forced to be printed in two digits). Right after there happens to be a 0x50 terminator. Everything is fine!

Except that wJoyIgnore has also been overwritten to 0xFF, so I softlock. Oh well. At least I can soft reset.



It should be clear by now why this Pokédex entry behaves differently depending on the save file, especially after looking at glitch Pokémon sprites (which are known to trash SRAM Bank 0, also known as HOF data). Anyway... why don't you set a breakpoint at 10:435E and see for yourself?

Well that explains why I get random everything; I have never cleared the file. Also I haven’t got a clue how to set a breakpoint...
Breakpoints are only possible with a debugger. Like BGB's.


Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.

James-the-Charizard

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Roleplays are my specialty, but glitching is too!
    • View Profile
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #16 on: September 12, 2019, 04:41:40 pm »
I see.
Anyways I’ll do more of these later, I gotta go eat dinner and then I’m gonna play video games-
I'm really into roleplaying with Pokémon characters, but hey, glitching is fun too! :3
When it comes to glitches, I am better at Gen 1 rather than later generations.
Wanna talk? That's fine! Just drop me a message and I will reply as soon as possible. I can also be contacted via discord.
Name: James the Charizard#1268

James-the-Charizard

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Roleplays are my specialty, but glitching is too!
    • View Profile
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #17 on: September 16, 2019, 08:14:57 am »
More results again:
8'33"/1099.5 lb: Blanked nearly the entire bottom half of the screen, took a while before ending.
1'71"/4437.0 lb: Mess of sounds, eventually crashed. (RST 38h crash)
34'18"/6373.6 lb: More text garbage, exited fine.
1'7"/204.0 lb: Quick, nothing too special.
9'71"/4446.1 lb: Long chaotic mess, but exited fine.
52'71"/4591.3 lb: A few sounds and a slowed down wild encounter theme, that’s it.
I'm really into roleplaying with Pokémon characters, but hey, glitching is fun too! :3
When it comes to glitches, I am better at Gen 1 rather than later generations.
Wanna talk? That's fine! Just drop me a message and I will reply as soon as possible. I can also be contacted via discord.
Name: James the Charizard#1268

Parzival

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #18 on: September 16, 2019, 09:30:56 am »
When you get strange noises, make sure to check your various posessions (items and PC items, party and PC mons, pokedex, trainer card, options) as it's probably also executing garbage code.


Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.

James-the-Charizard

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Roleplays are my specialty, but glitching is too!
    • View Profile
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #19 on: September 16, 2019, 10:38:28 am »
I only was able to check two of them since I’m in class now, but I checked bag items and party Pokémon:
Party Items
X Accuracy x150
Master Ball x197
Rare Candy x49
Super Repel x128
TM13 x125
Ether x131
Super Potion x97
Revive x128
TM10 x1
Nugget x1
TM07 x1
Silph Scope
TM21 x1
Elixir x1
Awakening x1

Party Pokémon
Flareon (Level 40)
Glitch Pokémon 0xF2 (Level 40)
Glitch Pokémon 0x00 (Level 1)
Glitch Pokémon 0xEE (Level 41)
Glitch Pokémon 0xD8 (Level 15)
Glitch Pokémon 0xEF (Level 1)
I'm really into roleplaying with Pokémon characters, but hey, glitching is fun too! :3
When it comes to glitches, I am better at Gen 1 rather than later generations.
Wanna talk? That's fine! Just drop me a message and I will reply as soon as possible. I can also be contacted via discord.
Name: James the Charizard#1268

Parzival

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #20 on: September 16, 2019, 02:21:28 pm »
I only was able to check two of them since I’m in class now, but I checked bag items and party Pokémon:
Party Items
X Accuracy x150
Master Ball x197
Rare Candy x49
Super Repel x128
TM13 x125
Ether x131
Super Potion x97
Revive x128
TM10 x1
Nugget x1
TM07 x1
Silph Scope
TM21 x1
Elixir x1
Awakening x1

Party Pokémon
Flareon (Level 40)
Glitch Pokémon 0xF2 (Level 40)
Glitch Pokémon 0x00 (Level 1)
Glitch Pokémon 0xEE (Level 41)
Glitch Pokémon 0xD8 (Level 15)
Glitch Pokémon 0xEF (Level 1)
no, like, every time, as they can execute garbage """""code""""" that does things in the midst of the noises.


Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.

James-the-Charizard

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Roleplays are my specialty, but glitching is too!
    • View Profile
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #21 on: September 16, 2019, 02:41:08 pm »
I only noted for the record. Basically... Literally anything can cause chaos in that Pokédex I think.
I'm really into roleplaying with Pokémon characters, but hey, glitching is fun too! :3
When it comes to glitches, I am better at Gen 1 rather than later generations.
Wanna talk? That's fine! Just drop me a message and I will reply as soon as possible. I can also be contacted via discord.
Name: James the Charizard#1268

Parzival

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #22 on: September 16, 2019, 04:24:09 pm »
I only noted for the record. Basically... Literally anything can cause chaos in that Pokédex I think.
This is one of several common effects with glitch text.

https://youtu.be/E-CQS5B2sjY


Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.

James-the-Charizard

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Roleplays are my specialty, but glitching is too!
    • View Profile
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #23 on: September 16, 2019, 04:39:42 pm »
I only noted for the record. Basically... Literally anything can cause chaos in that Pokédex I think.
This is one of several common effects with glitch text.

https://youtu.be/E-CQS5B2sjY

Yeah and that certainly is a video that helps explain it.
I'm really into roleplaying with Pokémon characters, but hey, glitching is fun too! :3
When it comes to glitches, I am better at Gen 1 rather than later generations.
Wanna talk? That's fine! Just drop me a message and I will reply as soon as possible. I can also be contacted via discord.
Name: James the Charizard#1268

Parzival

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #24 on: September 16, 2019, 06:12:41 pm »
I only noted for the record. Basically... Literally anything can cause chaos in that Pokédex I think.
This is one of several common effects with glitch text.

https://youtu.be/E-CQS5B2sjY

Yeah and that certainly is a video that helps explain it.
sarcasm or no?


Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.

James-the-Charizard

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Roleplays are my specialty, but glitching is too!
    • View Profile
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #25 on: September 16, 2019, 06:22:09 pm »
I only noted for the record. Basically... Literally anything can cause chaos in that Pokédex I think.
This is one of several common effects with glitch text.

https://youtu.be/E-CQS5B2sjY

Yeah and that certainly is a video that helps explain it.
sarcasm or no?
No, I was serious. That video really helps.
I'm really into roleplaying with Pokémon characters, but hey, glitching is fun too! :3
When it comes to glitches, I am better at Gen 1 rather than later generations.
Wanna talk? That's fine! Just drop me a message and I will reply as soon as possible. I can also be contacted via discord.
Name: James the Charizard#1268

Parzival

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
Re: My idea of me documenting all Pokédex entires of 0xDC
« Reply #26 on: September 16, 2019, 06:32:53 pm »
oh good


Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.