Menu simulation prototype: adding a priority setting
Posted: Sat Oct 04, 2025 7:10 pm
Hi, I would like to suggest adding a way to influence the chance that a simulation will appear early on.
Why?
- When modders add simulations, they usually want to make sure their work is shown and not drown in Space Age and 2.0 menu simulations that (while great) most people have already seen 1000 times (and there's also 49 of them, so if players launch their game immediately, that means there's only 1:50 that they'll even see it)
- On the opposite, people might want to make "easter egg" simulations which have a very low chance to be displayed
How?
- Add an INT setting in https://lua-api.factorio.com/latest/typ ... ition.html that defaults to like 10 called like "chance_to_show_early"
- Make sure they all show up once before repeating one, else you might have the same one in a row if you have a value too high
- The chance for a simulation to be shown now is <chance_to_show_early> divided by <chance_to_show_early of all the remaining simulations in the loop>
Thank you for your attention to this matter
Why?
- When modders add simulations, they usually want to make sure their work is shown and not drown in Space Age and 2.0 menu simulations that (while great) most people have already seen 1000 times (and there's also 49 of them, so if players launch their game immediately, that means there's only 1:50 that they'll even see it)
- On the opposite, people might want to make "easter egg" simulations which have a very low chance to be displayed
How?
- Add an INT setting in https://lua-api.factorio.com/latest/typ ... ition.html that defaults to like 10 called like "chance_to_show_early"
- Make sure they all show up once before repeating one, else you might have the same one in a row if you have a value too high
- The chance for a simulation to be shown now is <chance_to_show_early> divided by <chance_to_show_early of all the remaining simulations in the loop>
Thank you for your attention to this matter