Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
ItemDex
TrainerDex
TypeDex
UnownDex
More

Major Glitches
Trainer escape glitch
Old man trick
Celebi trick
Select glitches (Japan)
SRAM glitch
CoolTrainer♀ corruption
LOL glitch
Rival LOL glitch
Super Glitch
ZZAZZ glitch
Pomeg corruption glitch (Glitzer Popping)
Tweaking
Elite Four door glitch (Japan)
Pokémon merge glitch
Pokémon cloning
Time Capsule exploit
Arbitrary code execution
Coin Case glitch
More

Other Glitch Categories
Glitches by generation
Glitches between two generations
Japan-only/language specific glitches
Music glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Officially acknowledged glitches
Recurring glitches
Dead glitches

References
Pokémon GameShark codes
The Big HEX List
GB programming
Curiosities
Debugging features
Easter eggs
Error traps
Glitch areas
Glitch myths
Non-glitch exploits
Placeholder texts
Pokémon glitch terminology
Unused content and prerelease information

Useful Tools
8F Helper
GBz80 to Items
Old man trick name generator
PATH (Prama's Advanced Tweaking Heaven)
Save file editors
Special stat/Pokémon converter
Trainer escape Trainer Pokémon finder

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Search Wiki

 

Search Forums

 

Author Topic: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)  (Read 660 times)

0 Members and 1 Guest are viewing this topic.

Pokeglitch86

  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Male
    • View Profile

Torchickens

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #1 on: March 18, 2017, 03:42:22 am »
Wow! This is really nice.  :) Great job Pokéglitch86!

Where do you store your script to make it Ho-Oh even after you reset the game? I used meta-map scripts back when I did Pallet Town into Twinleaf Town.
« Last Edit: March 18, 2017, 03:52:08 am by Torchickens »
Hello. I actually identify as gender questioning, but nowadays feel more firmly that I identify as female. My sex is male but I like to express myself as female.  She/her pronouns, please.


Thank you Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).

Contact:

Email Youtube Twitter
Skype: Torchickens
Bulbapedia Starfy Wiki

Beyond all philosophies are the things that go best for you; what makes you feel content. It's important to always follow your heart, so unless you feel perfectly happy about it don't just follow something because it is popular, fits a style or is conventional. Sometimes you may reach a point you're not sure who you are, but as things settle I'm convinced things do work out in time.

Pokeglitch86

  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Male
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #2 on: March 18, 2017, 11:23:20 am »
I believe it is a meta-map script. It is a modified version of Mr. Cheeze's mew truck save virus with much of his code still remaining, though currently unusable. The map script modifies the OAM DMA routine and the OAM DMA routine then modifies the map script keeping everything running even after changing maps or saving and resetting. Running custom scripts during the OAM DMA is what is doing the bulk of the work rather than using map scripts.

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Wiki Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #3 on: March 18, 2017, 11:34:39 am »
What code do you run during the OAM DMA ?
"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 !)

Pokeglitch86

  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Male
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #4 on: March 18, 2017, 12:05:00 pm »
The first two bytes of the OAM DMA routine are replaced with a jump command which eventually leads to the custom code. The two bytes that are over written are suppose to load C3 into register A, so we do this in our custom code before returning back to the OAM DMA routine. The custom code just ensures graphical changes are made under the right circumstances, such as copying Ho-oh's sprite (that we have stored in empty save ram) to VRAM where it will be displayed.

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Wiki Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #5 on: March 18, 2017, 02:16:23 pm »
The method I prefer to use is to replace
Code: [Select]
ld a, $C3
ldh [$FF46], a

3E C3
E0 46
with
Code: [Select]
call wCustomCode
ldh [$FF00+c], a

CD wCustomCode
E2

and append this to wCustomCode :
Code: [Select]
ld c, $46
ld a, $C3
ret

What's the assembly for yours ? I don't fully understand how you do it.
"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 !)

jfb1337

  • ACE trainer
  • GCLF Member
  • Offline Offline
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #6 on: March 19, 2017, 11:31:23 am »
MrCheeze's virus patches the first two bytes with jp 78, and at the location it jumps to it then calls the custom code and jumps back to the rest of the OAM script. The custom code sets the a register correctly.

Anyway, this is really cool! I want to add Marill and call it Pikablu to troll my friends

Pokeglitch86

  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Male
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #7 on: March 19, 2017, 01:10:49 pm »
Yes, I'm just using the code Mr. Cheeze wrote, but I have it calling another script before returning back to OAM.

I actually was originally disguising a Seadra as a Marill (named Pikablu of course)! But then I decided to switch to adding Ho-oh instead. I think for version 2 I may make it a Pikablu rather than a Ho-oh, as well as getting Mr. Cheeze's virus working with my code so you could trade that Pikablu to a completely unmodified cartridge.
« Last Edit: March 19, 2017, 01:12:30 pm by Pokeglitch86 »

Torchickens

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #8 on: March 19, 2017, 02:40:36 pm »
This was originally a secret but I may as well share it now. Me and ISSOtm are working on something cool that started (coincidentally) shortly before your thread, and part of it (not all of it) involves obtaining Pikablu (a Pokémon modified to have Marill's sprite).

Would you like to team up on Discord? Thinking if we share our code it may help the project finish a lot faster and you can have the BGB save state of what's been done so far.
« Last Edit: March 19, 2017, 02:42:13 pm by Torchickens »
Hello. I actually identify as gender questioning, but nowadays feel more firmly that I identify as female. My sex is male but I like to express myself as female.  She/her pronouns, please.


Thank you Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).

Contact:

Email Youtube Twitter
Skype: Torchickens
Bulbapedia Starfy Wiki

Beyond all philosophies are the things that go best for you; what makes you feel content. It's important to always follow your heart, so unless you feel perfectly happy about it don't just follow something because it is popular, fits a style or is conventional. Sometimes you may reach a point you're not sure who you are, but as things settle I'm convinced things do work out in time.

Pokeglitch86

  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Male
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #9 on: March 19, 2017, 03:58:27 pm »
Oh absolutely! My documentation is incredibly poor, so be warned. What exactly do you have in mind?

Torchickens

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #10 on: March 19, 2017, 04:10:21 pm »
Oh absolutely! My documentation is incredibly poor, so be warned. What exactly do you have in mind?

Cool, thanks! :) I will send you a PM about it.
Hello. I actually identify as gender questioning, but nowadays feel more firmly that I identify as female. My sex is male but I like to express myself as female.  She/her pronouns, please.


Thank you Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).

Contact:

Email Youtube Twitter
Skype: Torchickens
Bulbapedia Starfy Wiki

Beyond all philosophies are the things that go best for you; what makes you feel content. It's important to always follow your heart, so unless you feel perfectly happy about it don't just follow something because it is popular, fits a style or is conventional. Sometimes you may reach a point you're not sure who you are, but as things settle I'm convinced things do work out in time.

camper

  • aka GlitcherRed, azum4roll
  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • 975642dx║'r DExsfoF▓1 error.
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #11 on: March 20, 2017, 02:36:02 am »
That's for April Fools right?
Youtube
 

Guess where this is?

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Wiki Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #12 on: March 20, 2017, 06:10:21 am »
If we manage to make it in time, I guess ? :P
"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 !)

Pokeglitch86

  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Male
    • View Profile
Re: Ho-oh on a Real Pokemon Red Cartridge (SRAM Hack)
« Reply #13 on: April 03, 2017, 10:35:38 pm »
New update with Pikablu and Pokedex entry. https://youtu.be/QvTEVYbKMTw

Unfortunately, I got the code together too late for April 1st.