Re: [0.12.x][v0.12.6] Bob's Electronics
Posted: Sun Oct 30, 2016 8:30 am
okay thanks, from what you have said it is probably a mod conflicting with yours
Code: Select all
data.raw.recipe["offshore-pump"].ingredients =
{
{"pipe", 1},
{"iron-gear-wheel", 1},
{"advanced-processing-unit", 2},
}
Code: Select all
bobmods.lib.recipe.replace_ingredient_in_all("basic-electronic-circuit-board", "electronic-circuit")
bobmods.lib.recipe.replace_ingredient_in_all("electronic-circuit-board", "advanced-circuit")
bobmods.lib.recipe.replace_ingredient_in_all("electronic-processing-board", "processing-unit")
bobmods.lib.recipe.replace_ingredient_in_all("electronic-processing-board-2", "advanced-processing-unit")
if data.raw.item["basic-electronic-circuit-board"] then
data.raw.item["basic-electronic-circuit-board"] = nil
end
if data.raw.item["electronic-circuit-board"] then
data.raw.item["electronic-circuit-board"] = nil
end
if data.raw.item["electronic-processing-board"] then
data.raw.item["electronic-processing-board"] = nil
end
if data.raw.item["electronic-processing-board-2"] then
data.raw.item["electronic-processing-board-2"] = nil
end
Yes, and that was my initial question, as I thought this mod would do just that.ukezi wrote:well that would be changeing them, wouldn't it?
This is the thing that still confuses me a bit, since the function actually takes the item to replace as the first argument and the replacing item as the second, so these function calls would replace any modded electronic item ingredients with vanilla ones (which in turn have been changed by this mod). So I guess these lines are just meant for recipes added in other mods to "get them in line" or something?ukezi wrote:Code: Select all
bobmods.lib.recipe.replace_ingredient_in_all("basic-electronic-circuit-board", "electronic-circuit") bobmods.lib.recipe.replace_ingredient_in_all("electronic-circuit-board", "advanced-circuit") bobmods.lib.recipe.replace_ingredient_in_all("electronic-processing-board", "processing-unit") bobmods.lib.recipe.replace_ingredient_in_all("electronic-processing-board-2", "advanced-processing-unit")
The ones on the left are "Old" names from when electronics was not only part of the plates mod, but also added electronics alongside the old ones. This remains in the game mostly for legacy reasons, since you can't actually use old mods with newer versions of the game, this in theory could be removed now, and we only need a migration script to replace them if loading old savegames.Estelyen wrote:Yes, and that was my initial question, as I thought this mod would do just that.ukezi wrote:well that would be changeing them, wouldn't it?
This is the thing that still confuses me a bit, since the function actually takes the item to replace as the first argument and the replacing item as the second, so these function calls would replace any modded electronic item ingredients with vanilla ones (which in turn have been changed by this mod). So I guess these lines are just meant for recipes added in other mods to "get them in line" or something?ukezi wrote:Code: Select all
bobmods.lib.recipe.replace_ingredient_in_all("basic-electronic-circuit-board", "electronic-circuit") bobmods.lib.recipe.replace_ingredient_in_all("electronic-circuit-board", "advanced-circuit") bobmods.lib.recipe.replace_ingredient_in_all("electronic-processing-board", "processing-unit") bobmods.lib.recipe.replace_ingredient_in_all("electronic-processing-board-2", "advanced-processing-unit")
You can craft wood with assemblers or per hand and then all other things.Uiop44000 wrote:Not sure if this has been asked before, but when I get Oil Processing & Plastics researches, the recipes requiring wood automatically change into Synthetic Wood. I'm not particularly fond of this, but I can live with it. However, to make the wood, I need to actually make Oil Refineries and Chemical Plants, which themselves require the wood, so I can't actually do anything at the moment. How can I fix this?
Actually recipes do not change. The new recipe is added yes. Both recipes remain in the game and you can opt to use any of them. However the recipes are on different pages (groups) so it might confuse you as they are not near each other.Uiop44000 wrote:Not sure if this has been asked before, but when I get Oil Processing & Plastics researches, the recipes requiring wood automatically change into Synthetic Wood. I'm not particularly fond of this, but I can live with it. However, to make the wood, I need to actually make Oil Refineries and Chemical Plants, which themselves require the wood, so I can't actually do anything at the moment. How can I fix this?
Works now, thanks for the help.steinio wrote:You can craft wood with assemblers or per hand and then all other things.Uiop44000 wrote:Not sure if this has been asked before, but when I get Oil Processing & Plastics researches, the recipes requiring wood automatically change into Synthetic Wood. I'm not particularly fond of this, but I can live with it. However, to make the wood, I need to actually make Oil Refineries and Chemical Plants, which themselves require the wood, so I can't actually do anything at the moment. How can I fix this?
I guess you need circuits which production should also be automated before chem plants.
It's a Factorio bug at selecting recipes in wrong order.
This mod should also fix this: https://mods.factorio.com/mods/Xuerian/ ... ndcrafting
Greetings steinio
Not anymorefeatherwinglove wrote:I've logged in with a proposal of my own that I'm a bit lazy to code myself.
Also saves anAs electronics have evolved in real life, older devices (e.g. ball mice and portable Phillips' cassette players e.g. Sony Walkman) have been replaced by newer devices which are either cheaper/easier on power and of equivalent functionality (e.g. optical mice) or better functionality (e.g. portable Flash/MP3 players e.g. iPod.) Some (not all, 555 and 7400 fans!) components have gone out of production. In a lot of cases, older functions are performed by newer circuits. My equivalent proposal for Bob's Electronics is called Panelization, and I think it would be quite handy for some players who would like to toss older tier electronics factories even if they still need their older tier electronics boards.
Think I should do more on this idea or would you like to take it from here?