More Infinite Research


Productivity for intermediates, science packs, final products, spoilage rate, and modded recipes. Bonuses for player stats, robot specs, weapon speed, stack size, cargo landing pads, and more... Override game limits on productivity, efficiency, speed, quality, and recycling. Settings to disable, limit, and rebalance each added research. Designed for vanilla, Space Age, and overhaul mods.

Tweaks
50 minutes ago
0.13 - 2.1
7.00K
Logistics Trains Combat Character Mining Fluids Logistic network Manufacturing Cheats

b Crash with Angel's Smelting

7 days ago

Using this mod and Angel's Smelting leads to a crash.

Angel's Smelting introduces a dependency from 'modules' to the disabled 'angels-silver-smelting-1' tech. More Infinite Research detects that dependency and rejects the downstream science progression, making everything explode.

I worked out an ugly fix fueled by too much coffee - in 'data-final-fixes.lua' I just dropped this to surgically ignore this one point of failure. It's a kitchen-sink fix but it seems to work without breaking anything:

local tech = data.raw.technology["modules"]

if tech and tech.prerequisites then
for i = #tech.prerequisites, 1, -1 do
if tech.prerequisites[i] == "angels-silver-smelting-1" then
table.remove(tech.prerequisites, i)
log("[Test Fix] Removed disabled Angel's Silver Smelting 1 prerequisite from modules")
end
end
end

6 days ago

Cheers, your diagnosis was right. v4.5.2 includes a guarded version of that repair: it removes that one prerequisite only when Angel’s Smelting is installed and the silver technology actually exists and is disabled, thanks again for the help

6 days ago

Glad to help. I did say my fix was very kitchen-sink, I just wanted to make my game stop crashing - Happy you could work it into something actually useful :)

New response