Random number generator broken

:arrow_forward: GAME INFORMATION

:point_down: These details are CRITICAL; DO NOT skip them or your issue may not be reviewed.

  • GAME BUILD #: most recent build from steam as of today
  • GAME PLATFORM: Steam
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED

:point_down: DESCRIBE THE ISSUE IN DETAIL (below). LIMIT TO ONE BUG PER THREAD.
The chance trigger condition is only semi random anymore and repeats itself. This wasn’t the case around a year ago. This breaks existing scnearios as they wont behave as prevously inteded anymore and might hint at a deeper problem in the games randomness.

If the chance condition is set to a lower valule like 5, then it wont ever trigger. This wasnt the case before either.

Siniliary birds flight movements isn’t fully random anymore either and they only use a handful paths over and over again.

I got a custom scenario that demosntrates the issues very well called exploding birds nothing which starts with a compeltely empty map and birds spawn randomly at the map center with a trigger.

The lower chance value not working can also be observed in my scenarios, as stones do not spawn at all anymore compared to older builds since the lower chance will never trigger.

The chance condition is used to explode kill the birds at random times.
By changing the birds death unit id to gold/stone etc. I could use this to randomly scatter spawn resources.

I tried my map now a year later again, and the points where birds explode is extremely deterministic. When it was prevoulsy very randomly scattered now there is like a handful of points where the birds fly to and explode, again and again the same few spots.

I know this isn’t a real issue in normal gameplay, but it might hint at a deeper problem with how the game handels randomness. Something has changed for the worse. I assume it’s related to the gunpowder conquistador fix.

:arrow_forward: FREQUENCY OF ISSUE

:point_down: How often does the issue occur? CHOSE ONE; DELETE THE REST!

  • 100% of the time / matches I play (ALWAYS)
    Chance condition 100% doesn’t behave satisfyingly random anymore.

:arrow_forward: REPRODUCTION STEPS

:point_down: List CLEAR and DETAILED STEPS we can take to reproduce the issue ourselves… Be descriptive!

Here’s the steps to reproduce the issue:

  1. Sub to my mod exploding bits nothing or make your own scneario using chance conditions
  2. Open in editor and click test scenario, use debigspeeds and incrase game speed to max with +
  3. use marco polo cheats to see the full map
  4. Watch how birds flight paths and chance condition are not random anymore. Especially look how the Elefants pile up. This wasn’t the case in previous builds.

:arrow_forward: EXPECTED RESULT

:point_down: What was SUPPOSED to happen if the bug you encountered were not present?
Chance condition and random number generator working more random and not repeating itself. Lower CHance values actually working.
Birds flying more randomly. I even saw one time a bird stuck and just turning over and over left right on the same spot. all of thisnever happened in previous builds.

:arrow_forward: IMAGE

:point_down: ALWAYS attach a PICTURE (.jpg, .png, .gif) or VIDEO (.mp4, YouTube link) that highlights the problem.

:arrow_forward: GAME FILES (SAVE / RECORDING)

:point_down: Attach a SAVE GAME (.aoe2spgame) or GAME RECORDING (.aoe2record) of the match where you encountered the issue. Link it below if using an external file service.

Note: Have you changed your random number generator to something like a “bad” linear congruential generator were the same numbers start repeating. If you use this i suggest looking into the problems of LCG and how to avoid them. As a mathematician myself i know of its problems from my bachelor years lecture. (for example it needs to be investiagted in detail how random numvers are generated when useid in stochastic monte carlo simlations or the reults can be very flawed!)

updated the report a bit