This guide assumes you have found a target seed already. You need your target seed and delay before following this guide.
Tools
What is RunAsDate?
RunAsDate is a tool that allows any program to load with a set time you specify. This tool is useful for Gen 4 RNG and helps hit your seed easier.
Setup RunAsDate
- Launch RunAsDate.
- Configure RunAsDate to match the image below.
You'll never have to change that after. This is the universal RunAsDate configuration for RNG (Gen 3, 4 or 5).
- Select the program you want to fake the date/time with the Browse... button.
- Set the date and time to hit your seed as shown in PokeFinder.
- Right click on the chosen seed and choose "Generate times for seed".
- Hit Run to launch Desmume.
Hitting the target seed
Make save states often during this process.
- Load the lua script.
- Click A to reach the "Continue" screen quickly.
- Pause your emulator using Ctrl + P.
- Make plenty of save states.
- Unpause your game and let it run until close to your target delay.
- When close, pause your emulator.
- Create another save state.
- Press N to advance the game one video frame to increase the delay.
- When you reach the target delay, hold A while unpausing.
Troubleshooting
If you notice that you are pressing A at the right delay but hitting a different delay by +/-1, this can happen due to Gen 4 delays being always odd or always even. You can switch delays from even to odd or vice versa with the following methods:
Changing the year
Close your emulator, then change the year in RunAsDate to one year before or after your current year. This will change the delay as well. Verify your new delay in PokeFinder in the "Seed to Time" window. Relaunch Desmume with RunAsDate and load a save state to RNG for the new delay.
Load a GBA game
Load a GBA game into the GBA slot in the emulator to switch the delay from even to odd, or vice versa.
Continue Screen
Choose "New Game", then press B to cancel and go back to the continue screen, which will switch the delay from even to odd, or vice versa.
Credits
- Chinese translation: xuanyelin, Hakuhiro.