How to Compose Good NoiseExpression / probability_expression
Posted: Fri Aug 29, 2025 5:02 pm
One thing that has always sucked for me is figuring out map generation. The documentation currently explains how each variable works, and how you're supposed to put things in (https://lua-api.factorio.com/latest/typ ... ssion.html). The thing I really struggled with was:
"How do I compose an actually functional probablity_expression?"
I eventually gave up for my mod because I could not figure it out, and every guess requires restarting factorio. I think this would need more of a tutorial or something, but it is not clear to me how I would go about it. Even when I copied expressions from vanilla, their collisions would eventually limit how many different things I could put on a map because they would collide with each other. I look at the noise expressions for vanilla, and (assuming I don't get lost in a morass of following references to functions of functions of functions) the functions that I do see are very complicated.
What would be helpful is a general guide on how to make NoiseExpressions that actually work.
"How do I compose an actually functional probablity_expression?"
I eventually gave up for my mod because I could not figure it out, and every guess requires restarting factorio. I think this would need more of a tutorial or something, but it is not clear to me how I would go about it. Even when I copied expressions from vanilla, their collisions would eventually limit how many different things I could put on a map because they would collide with each other. I look at the noise expressions for vanilla, and (assuming I don't get lost in a morass of following references to functions of functions of functions) the functions that I do see are very complicated.
What would be helpful is a general guide on how to make NoiseExpressions that actually work.