Unable to set custom resource richness to 1

Place to get help with not working mods / modding interface.
Post Reply
dusher
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Jul 24, 2024 5:12 pm
Contact:

Unable to set custom resource richness to 1

Post by dusher »

Hi,

When prototyping a new resource, using the most basic possible richness_expression of a literal number of 1 (and a probability expression meaning the resource should be basically everywhere), the resource does not appear on the map whatsoever.

The moment I increase that number to 2, the resource appears completely blanketing the whole map, all with a richness of 2.

Is there a reason a richness of 1 seems not to be permitted? Is there something I'm doing wrong that could be disallowing it to happen?

Thanks,
dusher.

Koub
Global Moderator
Global Moderator
Posts: 7460
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Unable to set custom resource richness to 1

Post by Koub »

Searching into the API docs, I see that :

Code: Select all

richness_expression :: NoiseExpression optional 
(https://lua-api.factorio.com/latest/typ ... expression)

And the link to noise expression says https://lua-api.factorio.com/latest/typ ... ssion.html

I don't see anywhere that 1 is a valid value.

Bear in mind I have never ever tried to mod anything, so I might be wrong.
Koub - Please consider English is not my native language.

Bilka
Factorio Staff
Factorio Staff
Posts: 3248
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Unable to set custom resource richness to 1

Post by Bilka »

dusher wrote:
Wed Jul 24, 2024 5:15 pm
The moment I increase that number to 2, the resource appears completely blanketing the whole map, all with a richness of 2.

Is there a reason a richness of 1 seems not to be permitted? Is there something I'm doing wrong that could be disallowing it to happen?
Resource entities with exactly 1 richness aren't spawned by the game. This is a bug that is fixed in 2.0. See also viewtopic.php?p=599920#p599920.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Modding help”