Menu simulation prototype: adding a priority setting

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
snouz
Long Handed Inserter
Long Handed Inserter
Posts: 68
Joined: Sun Jan 03, 2021 6:01 pm
Contact:

Menu simulation prototype: adding a priority setting

Post by snouz »

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
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
Post Reply

Return to “Modding interface requests”