Recent content by cs-zii

  1. Research SFMT RNG in Sun&Moon

    As to the procedure of creating Pokemon (Encryption Constant, PID, IVs, and nature), Quandra's tool captures the correct procedure. https://github.com/Quandra/PokemonSunMoonRNGTool/blob/ccc26ad2c5e5a709834e843478997651b4ae6595/PokemonSunMoonRNGTool/StationaryRNGSearch.cs#L30 I'll tell you...
  2. Research SFMT RNG in Sun&Moon

    Characters' blinking is decided by the following algorithm. When the function is called first, `state`, `dblflag`, and `count` are 0. `chr->eyes == 1` or `chr->eyes == 2` mean the character's eyes are open. `chr->eyes == 3` means the character's eyes are closed. `rand(n)` means...
  3. Research SFMT RNG in Sun&Moon

    NPCs also do blink their eyes.
  4. Research SFMT RNG in Sun&Moon

    There are some NPCs in pokemon center. So, perhaps RNG abuse for gift pokemons may be more difficult than that for legendary pokemons.
  5. Research SFMT RNG in Sun&Moon

    The seed is decided by the following algorithm. uint64_t msg[2]; uint32_t digest[16]; msg[0] = GetSystemTick(); msg[1] = getTimeInMilliseconds(); SHA256Digest((unsigned char *)digest, (unsigned char *)msg, 16); seed = digest[0]; where: `GetSystemTick()` means the total CPU ticks elapsed since...
  6. Research SFMT RNG in Sun&Moon

    I will provide an additional explanation. I say, when the game calls genrand_uint64(), one frame advances. There are 416 417 frame advances when the game starts. And while the player is on the field, frame advances about 30 times per second to decide player's blinking. If NPCs exist, more...
  7. Research SFMT RNG in Sun&Moon

    Discuss SFMT random number generator in Sun&Moon. In Sun&Moon, when decide a wild pokemon's IVs, PID, Encryption Constant, etc, it is SFMT (SIMD-oriented Fast Mersenne Twister; MEXP=19937) that be used. And the initial seed is a 32-bit value, used by sfmt_init_gen_rand(). Moreover, in the QR...
Top