i have 2 Mod packs installed, Bobs Mods & Pyanodons Mods!
Factorio Start Error:
Zitat from Factorio Screen printet in the "factorio-current.log" File:
53.494 Mods to disable:Fehler beim Laden der Mods: Error while running setup for recipe prototype "advanced-circuit" (recipe): Duplicate item ingredients are not allowed (solder exists 2 or more times).
Mods, die deaktiviert werden müssen:
• bobelectronics
• pyhightech
• bobassembly
• bobelectronics
• pyhightech
• pyrawores
My Analyse for the "advanced-circuit" recipe:
My "data-updates.lua":
if mods["pyhightech"]
and mods["bobelectronics"] -- and mods["bobassembly"] and mods["pyrawores"]
and data.raw.recipe["advanced-circuit"]
then
TableInfo = {}
TableInfo[" pyhightech "] = " is ok "
TableInfo[" bobelectronics "] = " is ok "
--TableInfo[" bobassembly "] = " is ok "
--TableInfo[" pyrawores "] = " is ok "
if data.raw.recipe["advanced-circuit"].ingredients
then
TableInfo[" advanced-circuit.ingredients "] = data.raw.recipe["advanced-circuit"].ingredients
else
TableInfo[" advanced-circuit.ingredients "] = " false "
end
if data.raw.recipe["advanced-circuit"].normal
and data.raw.recipe["advanced-circuit"].normal.ingredients
then
TableInfo[" advanced-circuit.normal.ingredients "] = data.raw.recipe["advanced-circuit"].normal.ingredients
else
TableInfo[" advanced-circuit.normal.ingredients "] = " false "
end
if data.raw.recipe["advanced-circuit"].expensive
and data.raw.recipe["advanced-circuit"].expensive.ingredients
then
TableInfo[" advanced-circuit.expensive.ingredients "] = data.raw.recipe["advanced-circuit"].expensive.ingredients
else
TableInfo[" advanced-circuit.expensive.ingredients "] = " false "
end
--Stop Factorio, and print all Tables in This on the Error scren
if require('__---Jonnys-debug__/Data.lua') then
JoErrRep({ AnalyseFunktion = "true", TableInfo } )
else
data:extend({ {{ AnalyseFunktion = "false", TableInfo }} })
end
--Stop Factorio
end
This Code Printet this in the "factorio-current.log" file:
40.401 ................
{
{
{
[" advanced-circuit.expensive.ingredients "] = " false ",
[" advanced-circuit.ingredients "] = {
{ type = "item", amount = 1, name = "pcb2" },
{ type = "item", amount = 1, name = "electronic-circuit" },
{ type = "item", amount = 3, name = "transistor" },
{ type = "item", amount = 3, name = "microchip" },
{ type = "item", amount = 4, name = "inductor2" },
{ type = "item", amount = 3, name = "diode" },
{ type = "item", amount = 5, name = "capacitor2" },
{ type = "item", amount = 15, name = "resistor2" },
{ type = "item", amount = 1, name = "solder" },
{ type = "item", amount = 2, name = "optical-fiber" },
{ type = "item", amount = 2, name = "solder" }
},
[" advanced-circuit.normal.ingredients "] = " false ",
[" bobelectronics "] = " is ok ",
[" pyhightech "] = " is ok "
},
AnalyseFunktion = "true"
}
}
stack traceback:
[C]: in function 'error'
core/lualib/dataloader.lua:18: in function 'extend'
---Jonnys-debug/Data.lua:37: in function 'JoErrRep'
Py-Fixes-by-1Jonny/data-updates.lua:37: in main chunk
"advanced-circuit":
"Data.lua":
1. Vanilla Createt data.raw.recipe["advanced-circuit"].
2. bob Createt data.raw.recipe["advanced-circuit"]
3. Py Createt data.raw.recipe["advanced-circuit"]
--the First 8 Items in "data.raw.recipe['advanced-circuit'].ingredients" is createt by Py in the "Data.lua".
"data-updates.lua":
4. Bob Updatet "data.raw.recipe['advanced-circuit'].ingredients" by "solder"
5. Py Updatet "data.raw.recipe['advanced-circuit'].ingredients" by your:
--RECIPE("advanced-circuit"):add_ingredient({type = "item", name = "solder", amount = 2}) --py
Bobs Mods have the "boblibrary", and Py- Mods have your "stdlib".
Please Fix the "add_ingredient" Function, and add to the "RECIPE():add_ingredient()" Function:
"if data.raw.recipe['advanced-circuit'].ingredients.name == "solder" then
Update by name: "solder"
else
Add: "solder"
end
Please fix the add Function for Bob and Py User, and all another Mods white your stlib and all multi-moduser.
thanks :D
from Jonny