Changing A Base Technology

Place to get help with not working mods / modding interface.
theshadowbyte
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Dec 05, 2019 5:59 am
Contact:

Changing A Base Technology

Post by theshadowbyte »

I need to modify the type of science pack necessary for a base technology, specifically Fluid Handling. I created a mod and placed the following code in data.lua but it doesn't work:

Code: Select all

data.raw.technology["fluid-handling"].unit.ingredients = {{"crude-science-pack", 1}}
Please advice.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Changing A Base Technology

Post by DaveMcW »

Is that your entire data.lua?

You need to create a new item and a new recipe for crude-science-pack. https://wiki.factorio.com/Tutorial:Modd ... e_creation
theshadowbyte
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Dec 05, 2019 5:59 am
Contact:

Re: Changing A Base Technology

Post by theshadowbyte »

I forgot to mention: crude-science-pack exists already in another active mod.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Changing A Base Technology

Post by DaveMcW »

Put your code in data-updates.lua to ensure the other mod is loaded first.
Post Reply

Return to “Modding help”