- Electronic circuit
- Advanced circuit
- Processing unit
- Electronic circuit
- Integrated circuit
- Processing unit
Subsidiary question: I bet we can easily make a mod for this kind of stuff. How so?
Moderator: ickputzdirwech
Code: Select all
data.raw["technology"]["laser-turrets"]["unit"]["ingredients"] = {
{"science-pack-1", 1},
{"science-pack-2", 1},
{"science-pack-3", 1},
{"production-science-pack", 1},
{"high-tech-science-pack", 1},
{"space-science-pack", 1}
}
Code: Select all
data.raw["recipe"]["advanced-circuit"]{name = "Integrated Circuit"}
I agree that 2x1 entities for simple logic functions is silly. I've said it before and I'll say it again, those should simply be a single multi-use entity where when you open them up are presented with an 8x8 grid, and in each square you can choose a function, and wire them back to other squares, similar to how the PAL16V8 chip works IRL. (and although that has 8 inputs and 8 input/output lines, the entity would likely only have a red and green input and output, similar to now)Jürgen Erhard wrote:No, no, no, *no*.
"Integrated Circuit" when I need 4 tiles for a simple SR flip-flop?
1. that would change the recipe's name, not the item nameJohnyDL wrote:seems reasonable, and I think you can do it with like 1 line of code.... *opens up another mod for example*
okay something I was working on with someone to force people to get the no lasers achieve (literally all the code you need to do that)
there's a list of internal names here https://wiki.factorio.com/Internal_object_names so swap out to "advanced-circuit" and probably "item" not "technology" but I'll double check *ten minutes looking though game files and finally opening data/base/prototypes/recipe/recipes.lua and /prototype/technology/technology.lua* no it's actually "recipe" and then you need to do name = "Integrated Circuit" Which comes down toCode: Select all
data.raw["technology"]["laser-turrets"]["unit"]["ingredients"] = { {"science-pack-1", 1}, {"science-pack-2", 1}, {"science-pack-3", 1}, {"production-science-pack", 1}, {"high-tech-science-pack", 1}, {"space-science-pack", 1} }
Then you need to pack it into a mod voila. (so long as it doesn't delete the other components of it you'll be fine)Code: Select all
data.raw["recipe"]["advanced-circuit"]{name = "Integrated Circuit"}
Code: Select all
[item-name]
advanced-circuit=Integrated circuit
I thought everywhere that was identifying what the thing was would use the "advanced-circuit" and name would just be for mutable display purposes, but then there are multiple ways to make some items and it looks like that identifies the recipe not the item so searching by this field for "solid-fuel" might only produce the one recipe look up not all 3 so I get itbobingabout wrote:1. that would change the recipe's name, not the item name
2. actually changing the "name" tag is a bad idea, it would break everything.