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: RNG Plays Pokemon  (Read 238 times)

0 Members and 1 Guest are viewing this topic.

J92R

  • Android 7.0 (Hex Editor & Musician)
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Mobile Musician & Hex Hacker
    • View Profile
RNG Plays Pokemon
« on: March 24, 2019, 10:18:30 pm »
So, courtesy of Crystal_, I have a version of RNG Plays Pokemon as a ROM hack of Pokemon Crystal. This was given to me about a year ago, problem is, it seems to only function with the help of the Gameshark code someone named Obskyr made for me.

That said, is there a way to re-create this "hack" for all the other Pokemon GB and GBC games (Red/Blue, Yellow, Gold/Silver)? Just kind of curious, cause there are ASM codes and everything on Crystal_'s YouTube, but since I'm stuck on Android, can't seem to recreate the ASM via hex editing.

I thought that if such was possible for Pokemon Crystal, then there should be an equally similar way to re-create this for the other games as well. If y'all want, I can provide the ROM (or an XDelta patch) and the code used to make it work, and maybe someone who has far more experience than I do can figure out a way to create patches of this code/RNG hack for the others.

I've already spent almost 3 weeks trying to figure this out purely in hex editing, but I can't seem to find how to make the gameshark code or the ASM memory hack of "change C2C7 to 0xFF" as a hex edit.


Ya know, I thought it wouldn't be as complicating to understand, but apparently either I'm a moron or it is literally impossible to hardcode RNG playing Pokemon without the use of a bot or gameshark code to activate it.
« Last Edit: March 24, 2019, 10:20:08 pm by J92R »
Making NES and Gameboy music... testing hex editing Pokemon games.

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: RNG Plays Pokemon
« Reply #1 on: March 25, 2019, 06:25:29 am »
I'll give it a shot tonight. You'd have to add code to the end of the VBlank handler to write the value to RAM every frame. Normally we'd use DMA hijacks, but since this is already a ROM hack...

PM me a link to the mod.


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.

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: RNG Plays Pokemon
« Reply #2 on: March 26, 2019, 05:50:30 am »
I think you can simply delete the bit of code that polls the joypad and instead copy hRandomAdd to hHeldButtons. Should be simple 'nuff.
"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 !)

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: RNG Plays Pokemon
« Reply #3 on: March 27, 2019, 09:16:42 pm »
true.

OP, i'll do it this weekend, this week is pretty busy and BGB don't like Wine so it won't run on my laptop.


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.

J92R

  • Android 7.0 (Hex Editor & Musician)
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Mobile Musician & Hex Hacker
    • View Profile
Re: RNG Plays Pokemon
« Reply #4 on: March 28, 2019, 07:44:20 am »
true.

OP, i'll do it this weekend, this week is pretty busy and BGB don't like Wine so it won't run on my laptop.

No worries mate, take all the time you need.
Making NES and Gameboy music... testing hex editing Pokemon games.