- 23
- Posts
- 8
- Years
- Seen Apr 20, 2017
SOLVED
Testing, reproducing and fixing RNG-related bugs has always been one of the most tedious activities in game development. You're forced to constantly "guess" whether your diceroll mechanic is broken or you're just really, really unlucky.
Anyway, my currrent problem is that I've set up normal wild encounters in my map but the spawn chances seem really off.
ELECTRIKE is set to a spawn chance of 4%.
Except that everytime I load my game and trigger a wild encounter in tall grass, 9/10 times I'll run into ELECTRIKE. Sometimes I'll run into another Pokémon, but it mostly seems to be that one 4% chance Pokémon. I've tried replacing ELECTRIKE with various different creatures (and cheching their "Rareness" value in pokemon.txt).
No luck.
My game is made in Pokémon Essentials v16.2, modded with the Elite Battle System.
I've duplicated the map and relevant section in encounters.txt over to a new, unmodded version of Pokémon Essentials and the issue remained.
Testing session recorded just now (unmodded, new game):
Obviously I've waited a while and done several testing session to make sure this can't simply be shrugged off as a case of bad luck. It's becoming a serious issue for me.
Testing, reproducing and fixing RNG-related bugs has always been one of the most tedious activities in game development. You're forced to constantly "guess" whether your diceroll mechanic is broken or you're just really, really unlucky.
Anyway, my currrent problem is that I've set up normal wild encounters in my map but the spawn chances seem really off.
![[PokeCommunity.com] Problems with RNG? [PokeCommunity.com] Problems with RNG?](https://i.imgur.com/V9Atu1J.png)
ELECTRIKE is set to a spawn chance of 4%.
Except that everytime I load my game and trigger a wild encounter in tall grass, 9/10 times I'll run into ELECTRIKE. Sometimes I'll run into another Pokémon, but it mostly seems to be that one 4% chance Pokémon. I've tried replacing ELECTRIKE with various different creatures (and cheching their "Rareness" value in pokemon.txt).
No luck.
My game is made in Pokémon Essentials v16.2, modded with the Elite Battle System.
I've duplicated the map and relevant section in encounters.txt over to a new, unmodded version of Pokémon Essentials and the issue remained.
Testing session recorded just now (unmodded, new game):
Spoiler:
In order of encountering:
1. ELECTRIKE
2. ELECTRIKE
3. POOCHYENA
4. ELECTRIKE
5. ELECTRIKE
6. ELECTRIKE
7. SHUCKLE
8. SHUCKLE
9. ELECTRIKE
10. ELECTRIKE
1. ELECTRIKE
2. ELECTRIKE
3. POOCHYENA
4. ELECTRIKE
5. ELECTRIKE
6. ELECTRIKE
7. SHUCKLE
8. SHUCKLE
9. ELECTRIKE
10. ELECTRIKE
Obviously I've waited a while and done several testing session to make sure this can't simply be shrugged off as a case of bad luck. It's becoming a serious issue for me.
Last edited: