Page 1 of 1

Technology Trigger instead of Science Pack - Idea for mod

Posted: Sat Oct 25, 2025 5:34 am
by Bdgray02
I've been obsessed with the idea of trigger technologies, and I've seen in mods such as Muluna, building a rocket silo requires building 100 logistic bots in order to unlock the technology.

I looked for this kind of mod already, and I don't have much mod experience besides the Fire Armor tutorial mod.

Would it be quite easy to change the technology recipes in Space Age to entirely trigger technologies, rather easily?

I'd be willing to create such a mod if it's fairly easy to do.

Examples of this would be, unlocking military technologies by killing a certain amount of biters or biter spawners,

or unlocking advanced circuits by creating plastic and a certain amount of green circuits first.

I did look through the Muluna code and did find a certain location where the change was made:

--Moves rocket silo science packs down to prereqs, makes rocket silo into a trigger technology.
local techs_change={"logistic-robotics","rocket-fuel","processing-unit","advanced-material-processing-2","low-density-structure"}
for _,technology in pairs(techs_change) do
if data.raw["technology"][technology] then
data.raw["technology"][technology].unit.count = data.raw.technology[technology].unit.count + 200
end

end

data.raw.technology["rocket-silo"].unit=nil
data.raw.technology["rocket-silo"].research_trigger={
type="craft-item",
item="logistic-robot",
count=100,
}
if not (settings.startup["rocs-hardcore-push-back-logistic-system"] and settings.startup["rocs-hardcore-push-back-logistic-system"].value == true) then
-- table.insert(data.raw.technology["logistic-robotics"].effects,{
-- type="unlock-recipe",
-- recipe="requester-chest",
-- })

-- rro.remove(data.raw.technology["logistic-system"].effects,{
-- type="unlock-recipe",
-- recipe="requester-chest",
-- })

--data.raw["technology"]["logistic-system"].unit.count=300
if settings.startup["muluna-hardcore-lock-logistic-system-technology"].value == false then
rro.remove(data.raw["technology"]["logistic-system"].prerequisites , "space-science-pack")
rro.soft_insert(data.raw["technology"]["logistic-system"].prerequisites , "space-platform")
rro.remove(data.raw["technology"]["logistic-system"].unit.ingredients, {"space-science-pack", 1})
end

end


Now, I have no idea what this is doing exactly, and it's in a subset of folders, but I think I could understand it with a little help or explanation.
Then I could apply it to the other techs, and hopefully create a mod of my own this way.
Thanks