Hello,
I'd appreciate it if anyone can offer some guidance. I've searched the internet, but couldn't find anything to help me.
What I'm trying to do is supposedly simple. I'm not a modder nor a programmer. I have the SA mod for Factorio, and I would like to tweak it so that the electricity research is a little further down, maybe needs additional science packs. I've opened the technology file in the mod folder and edited a few parts, but apparently what I'm trying to do is harder that I thought.
Is there a guide on how to precisely edit the tech tree; change how tech parts are related to each other?
Thanks
How to edit tech trees
-
- Manual Inserter
- Posts: 1
- Joined: Sun Oct 20, 2024 11:58 pm
- Contact:
Re: How to edit tech trees
Here is some code that shows how to remove items from tech research. You can add some into the structure as well.
Code: Select all
-- RemoveBlackScience
data.raw.technology['exoskeleton-equipment'].unit.ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1}
-- {"military-science-pack", 1}
}
data.raw.technology["engine"].prerequisites =
{
"automation-science-pack"
}
data.raw.technology["engine"].unit.ingredients =
{
{"automation-science-pack", 1},
}
-- and one of my favourites:
-- force belt immunity on
data.raw['character']['character'].has_belt_immunity = true
data.raw.technology["belt-immunity-equipment"].hidden = true
data.raw.technology["belt-immunity-equipment"].visible_when_disabled = false
data.raw.recipe["belt-immunity-equipment"].hidden = true
data.raw.recipe["belt-immunity-equipment"].hidden_from_player_crafting = true
table.insert(data.raw.item["belt-immunity-equipment"], flags)
data.raw.item["belt-immunity-equipment"].hidden = true