Difficulty Slider


Seeded startup difficulty generation with configurable randomizer bounds, an Evil subset/superset split, recipe and power scaling, pair-output rounding, forced category selection, severe-power rescue, Research Burden, trigger scaling, and endgame research relief. Youtube Video that covers this mod: https://www.youtube.com/watch?v=prxEN-xM5vE

Tweaks
a month ago
2.1
17

Changelog

Version: 1.1.2
Date: 2026-11-06
  Changes:
    - Leave research prototypes, trigger thresholds, global research price, lab speed and endgame research compensation unchanged when Randomize on Load is off and all four configured manual multipliers are exactly 1x.
    - Preserve the existing Research Burden algorithm when randomization is on OR any configured manual multiplier differs from 1x, including manual mode.
    - Preserve recipe, power, seed, mercy and randomization calculations.
    - Reconcile recorded old runtime research contributions conservatively. Restore price/productivity only while their recorded applied values still match; preserve and report ambiguous legacy lab speed or externally changed values. Never reset technology completion, levels, queues or progress.
    - Track before/after lab-speed ownership for safer future deactivation. Reports distinguish inactive research and unresolved legacy adjustments.

Version: 1.1.1

- Remove the unused electrical sine-wave proof of concept and its runtime report output.
- Remove the obsolete sine-cycle start-tick storage initialization.
- Update the mod description to reflect the active Difficulty Slider feature set.

Version: 1.1.0

- Apply the existing 25x power failsafe before Evil special mercy effects so Special Win reductions are not overwritten by the failsafe.
- Apply an additional deterministic 0.01x-0.90x power subtraction to every Evil Special Crafting and Special Win outcome, using an independent seed-derived RNG stream.
- Keep power at or above 0.01x after the seeded subtraction; ordinary Evil mercy and all existing RNG streams remain unchanged.

Version: 1.0.18 (experimental electrical sine POC)

- Added a fixed 10-minute sine-wave calculation to runtime state.
- Added elapsed time, waveform value, adjustment factor, and calculated target multiplier to /difficulty.
- Uses a fixed +/-25% amplitude for this initial test.
- The calculated target is DISPLAY ONLY and does not yet alter actual electrical-network consumption.
- Start tick is stored in save data so the phase continues across save/load.

Version 1.0.17
- Correct the Special Win fallback consolation arithmetic: divide electric consumption and crafting-time multipliers by 4, and divide the input-consumption multiplier by 10.
- Preserve the existing mercy roll thresholds, special-effect selection, conditional RNG rolls, and ordinary mercy bonus after Special Win.

Version 1.0.16
- Guarantee that the Special Win mercy branch provides a benefit: if its selected effect fails, is ineligible, or targets a disabled modifier, apply a deterministic fallback that quarters crafting time and electric consumption and reduces input consumption by 0.10.
- Preserve the existing mercy roll thresholds, special-effect selection, conditional RNG rolls, and ordinary mercy bonus after Special Win.

Version 1.0.14
- Split Evil into a 78% less-punishing subset and a 22% full-range superset without changing the overall Evil lottery probability.
- Apply the branch roll to both lottery-selected Evil and forced Evil.
- Report the selected Evil branch in the /difficulty output. The separate mercy rule is not included.

Version 1.0.13
- Add a startup checkbox to use category-specific multiplier ranges or the custom randomizer minimum/maximum.
- Category ranges are enabled by default; disabling them makes the custom range apply regardless of lottery or forced category.
- Preserve the Fibonacci Easter egg's explicitly defined Extremely Generous ranges.

Version 1.0.12
- Replace the direct severe-power module grant with a physical emergency supply chest placed near each eligible player's spawn location.
- Fix the Factorio 2.1 prototype lookup: module items are read from prototypes.item, not the nonexistent prototypes.module collection.
- Preserve the existing severe-power eligibility rules and ongoing electrical-consumption relief.

Version 1.0.11
- Add a startup dropdown to force Great, Above Average, Normal, or Evil when seeded randomization is enabled; Random retains the category lottery and Easter-egg seeds retain priority.
- Remove cloned subsidized module items and recipes entirely; original module prototypes and recipes are left untouched.
- Add severe-power rescue for randomized Evil-category seeds above 5x electrical demand: grant each player one stack of the first-tier Efficiency Module once, and cap the effective electrical-consumption multiplier at 5x. The relief percentage scales with the rolled power multiplier.
- Preserve all other difficulty, recipe, research, trigger, and endgame behavior.

Version: 1.0.10
- Fix non-stackable item detection by searching all data.raw prototype groups, not only data.raw.item.
- Apply the same non-stackable safeguard to legacy recipe.result / result_count recipes.
- Keep the 1.0.9 randomizer range controls and other patches.

Version: 1.0.7
- Change: print the configuration report and flavor dialogue as two separate chat messages.
Version: 1.0.6
- Fix: automatically print the configuration report and flavor message after loading an existing save.
- Prevent duplicate load/join reports on the same tick.
Version: 1.0.5
Date: 2026-10-30
  Changes:
    - Added Research Burden calculations using combined production and electrical adjustments, crafting-time weighting, deterministic seed variation, and 60%/500% caps.
    - Added runtime Research Burden through Factorio 2.1 technology-price settings, including repeatable research and late-loaded technologies.
    - Added trigger-specific science-unit surcharges and scaling for craft-item trigger counts and craft-fluid trigger amounts.
    - Added the 40% trigger research surcharge after the normal Research Burden calculation, respecting the 500% maximum.
    - Added the bounded ±2% research-speed adjustment.
    - Added endgame exemption that compensates remaining research costs and removes the research-speed adjustment after finite research completion and game/scenario completion, including a remote completion hook for overhaul mods.
    - Added aggregate difficulty classification using a geometric mean and included Research Burden.
    - Added all 75 supplied ordinary dialogue messages, preserving their original wording.
    - Extended recipe scaling to continuous fluid quantities and all item outputs; pair rounding remains limited to main products.
    - Restricted module subsidies to seeds with electrical burden and no net production gain.
    - Expanded startup and /difficulty reports with Research Burden, aggregate difficulty, research speed, module subsidy, and exemption status.
Version: 1.0.4
Date: 2026-10-30
  Changes:
    - Added category-first seeded lottery with the agreed difficulty brackets and odds.
    - Added independent operand enable switches and optional Perlin influence.
    - Added the four specified Easter egg seeds.
    - Added even-number rounding for recipes whose original output amount is exactly two.
    - Added visually identical, uniquely named subsidized module alternatives when electrical consumption exceeds 115%.
    - Added the /difficulty command and a per-player configuration report on joining.
    - Retained the existing exclusion heuristics for Space Age / surface-restricted content.

Version 1.0.8
- Avoid scaling output quantities for non-stackable item products, preventing invalid recipe prototypes.