Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNG Issues in Gen 3 Pokemon Games #346

Open
ScarlettHaze opened this issue Jan 18, 2024 · 2 comments
Open

RNG Issues in Gen 3 Pokemon Games #346

ScarlettHaze opened this issue Jan 18, 2024 · 2 comments
Assignees
Labels

Comments

@ScarlettHaze
Copy link

I'm catching Pokemon that have a single ability and it should always result in a Ability bit set to 0 but it's being set to 1 sometimes because some frames in the RNG shouldn't be landed on yet the emulator isn't as accurate with the RNG

The disassembly shows that if a Pokemon does not have a second ability defined, it does not set the ability bit
https://github.com/pret/pokeemerald/blob/e4149e83f89b8b86478e03b8112c1d1e922e65a6/src/pokemon.c#L2296

@ScarlettHaze
Copy link
Author

it's to do with vblank from what I've researched

@fleroviux fleroviux self-assigned this Jan 18, 2024
@fleroviux
Copy link
Member

Yes, I'm aware of RNG issues with games like Pokemon. Unfortunately this requires an extreme level of timing precision to get the same RNG values as real hardware and we're just not 100% there yet to make this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants