Author Topic: RNG manipulation thread  (Read 8329 times)

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
RNG manipulation thread
« on: September 04, 2013, 07:19:55 PM »
I should also post here, for those interested, that I've started to RNG abuse wilds on 1.812 official.







I promised that I would post a guide soon. So I guess I'll get on that someday. When I do, I'll have edited the OP of this thread.
« Last Edit: October 11, 2013, 06:20:57 PM by DoctorShanks »

Offline artsandcrafts

  • A Member group
  • Posts: 4
  • penis
    • View Profile
Re: RNG abuse thread
« Reply #1 on: September 12, 2013, 09:37:13 PM »
I should also post here, for those interested, that I've started to RNG abuse wilds on 1.812 official.

Is that a tool that shows stats or did you edit those pictures yourself?

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
Re: RNG abuse thread
« Reply #2 on: September 13, 2013, 02:10:59 AM »
I should also post here, for those interested, that I've started to RNG abuse wilds on 1.812 official.

Is that a tool that shows stats or did you edit those pictures yourself?

It's a tool that shows stats. This guy on Youtube shows the program and the things needed to get started on this.

I've also put together everything you'll need in order to do this in a single download. This should contain the special VBA, and the Japanese FRLG Lua script. I might write a more in-depth guide later, but this guy pretty much tells you everything you need to know. He's active at the moment so he'll probably be accepting questions.


Offline Enoh-polyx

  • A Member group
  • Posts: 11
    • View Profile
Re: RNG abuse thread
« Reply #3 on: September 13, 2013, 06:31:21 PM »
WOW that's really intresting :). A year ago, I was really into RNG in pokemon, which was really challenging, but I really liked it. A guilde for gen III would be appreciated!

Offline artsandcrafts

  • A Member group
  • Posts: 4
  • penis
    • View Profile
Re: RNG abuse thread
« Reply #4 on: September 14, 2013, 12:00:57 AM »
Just to make sure, does this script works with agastya's current emerald version?

I am also unaware on how to use lua scripts, but I can probably figure it out.

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
Re: RNG abuse thread
« Reply #5 on: September 14, 2013, 12:57:26 AM »
Just to make sure, does this script works with agastya's current emerald version?

I am also unaware on how to use lua scripts, but I can probably figure it out.

There's an Emerald script, and it shows encounters, but I don't know where the chosen seed is stored in Emerald (mostly because no one ever needed to figure this out since in vanilla Emerald, it's always 0), so until I get off my ass and find it, then I can't get it to work. To clarify, Agastya's Emerald uses a fixed RNG, so the seed won't always be 0. This might be seen as bad news, but more seeds means more spreads, and with Synchronize, finding perfect spreads will be a TON easier than FR.

Should be obvious, though I missed it, the latest version of RNG reporter is required to do any of this science.
« Last Edit: September 14, 2013, 01:01:23 AM by DoctorShanks »

Offline Agastya

  • Administrator
  • A Member group
  • *****
  • Posts: 167
    • View Profile
    • oh no its a website
Re: RNG abuse thread
« Reply #6 on: September 18, 2013, 05:57:45 AM »
http://www.pokecommunity.com/showthread.php?t=217115 here's the rng fix i used, have fun shanks
[6:30:51] DoctorShanks: Is Star Sapphire actually good or do people just use her because she's cute? Or both?
[6:30:55] Irisorchid: both
[6:30:57] &Agastya: both
[6:30:59] PrinnyAce: BOTH

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
Re: RNG abuse thread
« Reply #7 on: September 19, 2013, 03:27:33 AM »
The RNG reporter behaves all wonky with this Emerald RNG fix Patch. I'll share my findings here.

So I "sort of" found where the "Initial Seed" is on Emerald. I accidentally found this out by setting the Real Time Clock to "off" So that the game would think the internal battery would run dry, and if it's anything like R/S, the initial seed would be 5A0 this way. It was. So for no reason other than sheer desperation and curiosity, I paused the game, reset it, and mashed CTRL+N until I noticed that the Lua Script showed me "5A0" on frame 13. So much for blindly looking in the memory viewer.

I switched back on the "Real Time Clock," and I advanced to frame 13 a few times. On each reset it, gave me a different 4 digit hexadecimal number. When I got in game, I Sweet Scented as soon as I could. I looked up the encountered puppet's spread in RNG reporter under Method 2, and it gave me a matching spread that was 319 frames away. Horray! Right? No. Just to be sure, I checked the spread on the next frame, and it didn't give me a match under Method 2, but rather, it gave me a matching spread under Method 4, this time 280 frames away. So, yeah.

In conclusion, I don't know man. I'm guessing that it's an entirely new method; one that RNG reporter doesn't support because vanilla Pokemon Emerald's RNG is broken, and that's the one everyone is focusing on. So unless someone does research into how spreads are chosen with this RNG fix patch, then RNG abuse is just about impossible on Agastya's Emerald version. UPDATE: Apparently some dumbass named DoctorShanks forgot that Wilds are generated on Method H. Everything adds up neatly, but I still don't know why it's fluctuating between Method H-2 and Method H-4.

There's a good chance I'm wrong because what do I know about the internal mechanics of video games

EDIT: I haven't tried to abuse the supposed Method 1 (interaction) puppets yet. I think all my interactions are used up on my main save, though, so if someone else wants to test this for me that'd be much appreciated.
« Last Edit: September 19, 2013, 06:30:11 PM by DoctorShanks »

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
Re: RNG abuse thread
« Reply #8 on: September 19, 2013, 06:38:04 PM »
Disregard the above post entirely. I'll share my new findings and embarrassing re-discoveries.

All wilds on Emerald are generated by Method H-2. On occasion, some wilds will be generated on Method H-4. According to Smogon,

"The vast majority of wild Pokémon are generated via method 2; there are a few anomalies which are generated by method 4. A method 4 spread resembles a combination of two method 2 spreads, not unlike split spreads in breeding. When a method 4 spread occurs, the game chooses to generate the first half of the Pokémon's IVs in the same place as it would generate the first half of the IVs from the previous method 2 spread; this would be an unused RNG call for a regular method 2 spread. However, by generating IVs at this call, a method 4 Pokémon will share the first half of its IVs (and the last four hex digits of its PID) with the method 2 spread that preceded it. What you need to know for RNG manipulation is that the natures and IVs for method 2 Pokémon on any given frame are different from those that are generated by other methods. Additionally, if a Pokémon emerges with an unlisted "split" spread, it is likely a product of method 4 rearing its head".

When I tried fishing, the wilds were most often generated by Method H-1, and of course, some were generated on Method H-4.

So I guess, for Emerald, there's only a chance that you'll get your desired spread. While it is still a good chance, and it's good to know that it's possible to do on Emerald, it unfortunately isn't a 100% guarantee like Fire Red is. The good news is that Emerald uses the Nature+Synchronize mechanic, so if you're feeling particularly lucky, you'd probably spend less time looking for a flawless spread in Emerald than you would be in FR, but you'd have to pray that your frame didn't end up on Method H-4.

Some more good news is that RNGing Shinies is pretty much 100% possible on Emerald, so if that's what you were after, then have fun.
« Last Edit: September 19, 2013, 07:25:30 PM by DoctorShanks »

Offline 2Points

  • A Member group
  • Posts: 8
    • View Profile
Re: RNG abuse thread
« Reply #9 on: September 19, 2013, 07:08:16 PM »
Well, the Youtube guy you talked about earlier says in one of his videos that he succeeds most of the time with method H-4, but occasionally has to switch to H-3 (or maybe it was H-2 as you said, I can't remember right now). So, fixing the RNG LUA script for Emerald is just a matter of changing the memory address where the seed is read from?

P.S.: Please don't use the blue Cat of Ill Omen as sample next time...

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
Re: RNG abuse thread
« Reply #10 on: September 19, 2013, 07:28:14 PM »
The Lua Script I use for Emerald is on the 8th post in this thread. Sorry, I forgot to mention that earlier.

Offline 2Points

  • A Member group
  • Posts: 8
    • View Profile
Re: RNG abuse thread
« Reply #11 on: September 19, 2013, 08:35:36 PM »
Well, guess I'm not cut out for this after all. I'm supposed to enter some starting frame and some seed the LUA script spit out for this frame into RNGReporter and click on Generate after I filled out the trainer ID and SID and selected the method, right? Afterwards, if I encounter some Touhou and copy its IV values into the filter, I should find the frame where this particular Touhou is supposed to appear, right? For some reason, no frame ever turns up, no matter which method is selected.

This isn't to say that simply seeing a wild Touhou's IVs via LUA isn't extremely handy when trying to catch some good base materials.

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
Re: RNG abuse thread
« Reply #12 on: September 19, 2013, 08:38:44 PM »
Forget starting frame. When I use Fire Red JP, the actual Frame hit is almost always lower than the actual frame I used Sweet Scent on, and it fluctuates wildly with each reset. Simply adjust accordingly.

When I use Emerald, the difference seems to be exactly 260 above the frame when I use Sweet Scent, but that's just me. The Youtube guy seems to have a difference of 280 (but that could be because he was in a cave?)

On another note, I'm making good progress in Emerald. That guide will be written soon, and I'll have some Emerald information to go with it as well.
« Last Edit: September 19, 2013, 09:00:08 PM by DoctorShanks »

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
Re: RNG abuse thread
« Reply #13 on: September 19, 2013, 09:24:58 PM »




Let's just say that I "sort of" have RNGing figured out in Emerald.

For those of you who wish to do this before I write out the guide, I'll post my findings here.

-Method H-2 and Method H-4 are what's used in Wild encounters (or at least, for Sweet Scenting)
-Method H-1 and Method H-4 are what's used in Fishing encounters (or at least, for Super Rod)
-It seems to be unpredictable on whether the frame is one method or the other. Smogon says you should bet on H2, but for now, I'm just going to say that you have about a 50/50 chance of getting your spread when you land on your target frame.
-Fire red is MUCH more reliable and MUCH easier to get your desired seed, but Emerald can save a bit more time with Synchronize. Pick your Poison if applicable.

-To figure out your initial seed, hit CTRL+P to pause THPP Emerald, hit CTRL+R to reset it, and then use CTRL+N to slowly advance the frame until you see a four-digit number (usually shows up on Frame 9-13). to The 4 digit hexadecimal number shown on that frame is your seed that you must enter into the RNG Reporter.
-When using Synchronize (Recommended), enter the Synch nature you're using in the drop down box located under Method and Encounter type.

The Emerald Lua script can be found in the 8th post of this thread.
« Last Edit: August 14, 2014, 09:52:11 PM by DoctorShanks »

Offline DoctorShanks

  • :coolguys:
  • A Member group
  • *****
  • Posts: 188
  • .
    • View Profile
    • dumblr
Re: RNG abuse thread
« Reply #14 on: September 20, 2013, 05:57:58 AM »


Eggs are a lot easier than I had anticipated. You basically follow the same procedure explained in this Smogon article, with a few differences... I'll explain below.

-Obviously, THPP Emerald uses a "Fixed RNG," which means that the Initial Seed is not always Zero.
-Your Initial Seed, as always, is decided based on your in-game clock. With a dead battery, this seed will always be 5A0, but when using the Emerald Lua Script, your Initial Seed appears in plain sight on Frame 6 to 13 for those of you who don't want to turn off the Real Time Clock. Enter your Initial Seed into RNG Reporter in the Seed (Hex) field.
-In my personal experiences, all of my eggs have either been generated on Emerald Splits "Split" spreads (never normal), or Emerald Alternate spreads. It might be different for you.
-Saving in front of the day care man and immediately talking to him to get to the "take good care of it" dialogue gives me an 8 frame offset. So, for example, if my target frame was 25622, I would press A on frame 25630, and my egg will always have the desired spread. Those of you using a different version of VBA rerecording will likely have different numbers than me, as evidenced by 2Points and their experiences.

All other relevant information should be listed in the Smogon article for 3rd gen breeding.
« Last Edit: August 15, 2014, 02:58:37 AM by DoctorShanks »