Brain Damage Fixed!

by wadeack

Cures the crashes, keeps the memory loss! A fixed and multiplayer-safe version of the original Brain Damage mod that randomly forgets researched technologies based on interval or taking damage.

Tweaks
2 days ago
2.0 - 2.1
7

Changelog

Version: 1.1.0
Date: 2026.07.26
  Changes:
    - Updated to Factorio 2.1
Version: 1.0.0
Date: 2026.07.26
  Features:
    - Added idle research decay system: partially completed research now steadily loses progress when labs are inactive, configured as a flat Science Packs per Minute (SPM) rate for fair scaling across technology tiers.
  Bugfixes:
    - Fixed a crash on initialization/tick 0 caused by math.random running on an empty array when 0 technologies were researched ("interval is empty").
    - Fixed localized string formatting error in player print messages.
    - Fixed math operator precedence bug on interval calculations that caused technology loss every second instead of the configured minute interval.
  Changes:
    - Added safety checks for player/force existence to prevent nil reference crashes.
    - Added prerequisite research check so unresearched prerequisite technologies aren't spammed in chat.
    - Converted settings from startup to runtime-global so they can be changed in-game without restarting.
  Multiplayer:
    - Made the mod fully multiplayer-safe by targeting the damaged player's force instead of hardcoded game.players[1].
    - Broadened interval memory loss events to randomly select connected player forces.
    - Updated notifications to use force-wide printing so all teammates are alerted.