[Genhis][2.0.69] random_penalty noise function has inconsistent behavior

This subforum contains all the issues which we already resolved.
Hanodest
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Aug 11, 2024 10:55 pm
Contact:

[Genhis][2.0.69] random_penalty noise function has inconsistent behavior

Post by Hanodest »

For demonstration, two noise expressions:

Code: Select all

random_penalty(0, 0, 1, map_seed, 2)

Code: Select all

random_penalty(x-x, 0, 1, map_seed, 2)
Theoretically, they are supposed to be identical. In practice, the former evaluates to some seed-dependent constant everywhere, and the latter - generates different random values for different tiles, seemingly with a period of 1 chunk. Visualization from noise-tools for the latter:
random_penalty.png
random_penalty.png (23.32 KiB) Viewed 619 times
Genhis
Factorio Staff
Factorio Staff
Posts: 948
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.69] random_penalty noise function has inconsistent behavior

Post by Genhis »

Thanks for the report, this is fixed for 2.1 major release. Random penalty will generate random values even if all arguments are constant.
Post Reply

Return to “Resolved Problems and Bugs”