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: Alternate Ending with ACE: Champion Oak  (Read 270 times)

0 Members and 1 Guest are viewing this topic.

Altaria26

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Alternate Ending with ACE: Champion Oak
« on: November 16, 2019, 05:51:34 pm »
Hi all, first time posting here.

I've really enjoyed learning about all the ACE possibilities from the discussions here, and I thought I should contribute something  :)

After gifting myself a few flawless Pokemon, I wanted to see if I could pull off something a bit more elaborate, perhaps similar to LuckyTyphlosion's mew truck demo (but much simpler code-wise).

I remembered that unused trainer data for Prof. Oak exists in the game, implying that he was originally intended to be the Pokemon league champ. Why not bring that idea to life?

A PC box full of spaghetti code later, and the result is here: https://youtu.be/rtb69s56kM0

Of course, a ROM hacker can do this and more, but I like to think that my 8 year old self would have got a kick out of knowing that this "alternate ending" can be unlocked through elaborate glitching ;D

The code's not well documented, but I'll give the gist:
  • Change Lance's room current script number to 51, effectively picking a pointer out of garbage data that happens to point to my PC box full of code
  • The code there runs when you enter Lance's room, and performs a similar misdirection for Gary's room (and also temporarily changes rival name to "OAK" so that Lance says it)
  • The custom code in Gary's room then modifies the map header such that the room's script pointer now points to a specific location in my PC box. I now have control of the scripting in this room.
  • The new script (in the PC) orchestrates the events you see in the video, by doing stuff like immediately moving Gary off the map, unhiding Oak, changing Oak's position, facing direction, movement bytes etc., changing the opponent ID, and changing the map text pointers so that they point to my custom text, written byte-by-byte into the PC  D:

Hopefully someone gets some use (or entertainment) out of this...

Enjoy!

Sherkel

  • PSYNCIN' IN THE FINNAGaiN
  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
    • View Profile
Re: Alternate Ending with ACE: Champion Oak
« Reply #1 on: November 16, 2019, 11:24:21 pm »
Whoooa! That's a lot of input and quite a bit of figuring out too. Crazy. Would you be able to post more about your setup?

Well, this is...a lot of attention. Not undeserved, of course.
« Last Edit: November 17, 2019, 12:52:32 am by Sherkel »
Switch Library:
             
...But I thought we were going sailing today?

Evie the Mother Hen ☽ ❤

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • I love My Melody ✿(not really a mum but wanna be)
    • View Profile
Re: Alternate Ending with ACE: Champion Oak
« Reply #2 on: November 17, 2019, 12:52:36 am »
Whoa this is incredible!! :o You're a genius. It must have taken a lot of planning and determination. Umm is it ok if you share your save file? Thank you for your hard work! :D
« Last Edit: November 17, 2019, 12:54:14 am by Evie the Mother Hen ☽ ❤ »

✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post :)
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
I am a legit yandere and I am ashamed.



(Images © Sanrio, Nintendo, Pokémon, HAL Laboratory)

✿ Hi, I'm Evie. Transgender woman but spiritually doesn't believe 'male'/'female' needs to be defined; lives more stereotypically like a woman/I'm a 'girly' nerd who discovered herself. Call me whichever pronouns you like. :)

Feel free to contact me here about anything regarding the site.

Forgiveness. I feel that the more people pray to our greatest source/God/mathematical equality for world peace, the more and more it manifests into reality (until our next spiritual death).

Thank you Nyapon for this lovely artwork. :3

Altaria26

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Alternate Ending with ACE: Champion Oak
« Reply #3 on: November 19, 2019, 04:07:57 pm »
Glad you like it  :)

Would you be able to post more about your setup?

Umm is it ok if you share your save file?

Perhaps what I'll do is try and copy the final code into emulator so that everyone can play it or inspect the code :)