
RNG issues
Re: RNG issues
Thanks to everybody for your responses 

- Kyousuke753
- Posts: 846
- Joined: Sun Apr 10, 2016 10:30 am
- Location: ???
Re: RNG issues
Resetting the emulator doesn't retain any state. Or at least it's not supposed to, if it does that's a bug. But I doubt it does. So it should be like a hard power cycle on hardware.TkSilver wrote:Sorry for the double post. Exo do you know if resetting ing the rom vs exiting the whole emulator and then reopening the emulator and rom offer any appreciable differences as far as resetting values a physical DS would generate upon turning on with a cartridge in the slot?
The RTC is the only thing that the emulator has any control over that would affect the RNG. Other than that the game's code dictates how the RNG works.
Re: RNG issues
I've noticed something interesting about the custom clock and it most likely seems to be the root of the problem (I've been using watch.nds and see what would happen if I did this or that) When I select the "custom clock" option, the time starts running normally but when I reset the game or the entire emulator, the time I set for the clock turns back to its original state. This may be the main reason I'm always getting the same RNG value. I don't know whether the custom clock is meant to work like that, but if it's not, how can I fix it?
Re: RNG issues
I'm not really sure what the question is, are you saying you're setting the clock in watch.nds and then losing the settings when you reset? If so then yes, that's intentional, the clock is derived from one of these sources:Roku wrote:I've noticed something interesting about the custom clock and it most likely seems to be the root of the problem (I've been using watch.nds and see what would happen if I did this or that) When I select the "custom clock" option, the time starts running normally but when I reset the game or the entire emulator, the time I set for the clock turns back to its original state. This may be the main reason I'm always getting the same RNG value. I don't know whether the custom clock is meant to work like that, but if it's not, how can I fix it?
1) Synced with device time always
2) Synced with device time at reset, then progresses at emulation speed
3) Synced with custom time at reset, then progresses at emulation speed
Conceptually you can think of 2 and 3 as if you turned on a DS, set the time, then started the game. Note that a savestate load doesn't count as a reset.
If you use 1 or 2 you shouldn't be getting the same RNG results in the game if the RNG is seeded with the time (and the time looks different between successive runs) But I have no idea how the RNG actually works in this game so it's impossible for me to say.