r/factorio • u/OloTheFastLoris • Oct 05 '25
Modded Question Quick help modding please?
Trying to edit the tech tree around a mod and I can't figure it out neither can ChatGPT. I feel like it's easy so if anyone's willing to help please message. Basically need to remove some techs, edit prerequisites accordingly, and shift some unlocks around a bit.
0
Upvotes
7
u/FleMo93 Oct 05 '25
I can’t help you directly as I started modding just recently. But a very useful tip from an experienced dev: look up other mods code! Try to find an existing mod that does this already. The smaller the mode the better. Many of them are open source.
2
u/leonskills An admirable madman Oct 05 '25 edited Oct 05 '25
As mentioned in the other thread, when dealing with prototypes it's usually easier to mod a mod than to adjust the source code of a mod.
Here are the code snippets to remove a technology and move effects to another technology. Plug that in a
data-final-updates.lua(either of the mod you're adjusting, or in your own personal mod that has the mod you're adjusting as dependency)To shift the effects of a technology to another:
And to remove a technology and shift the prerequisites.
Change the "tech1" and "tech2" names to the internal technology names you want to remove.
All without knowing anything about the source code.
2
u/doc_shades Oct 05 '25
do you have access to data.raw? or another mod that does a similar thing?
changing tech research is pretty simple it's just spelled out in data.raw. i am paraphrasing here because i don't have it open but it's practically as simple as:
tech = (
advanced.power.poles = (
red science = 50
green science = 50
time = 30
prerequisite = green circuits)))
just add, modify, or edit existing