ReikaKalseki / Reika_FactorioMods_Issues

The issue tracker for all of my Factorio mods - EndgameCombat, NauvisDay, Geothermal, Oreverhaul, and the rest.
5 stars 1 forks source link

FTweak bobassembly recipe changes #264

Open Glendening opened 4 years ago

Glendening commented 4 years ago

Looks like the update to Bob's Assembling machines on 23-5-2020 changed several of the higher tier machine recipes. This causes FTweak to trigger failures when it tries to replace recipe materials that aren't part of the recipe anymore. Electric furnace 2 and Chemical plant 3 I know are effected. I'm not sure how many other items are affected past those.

ReikaKalseki commented 4 years ago

How did they change?

Glendening commented 4 years ago

Looks like Bob tweaked the Furnace 2 and Chem plant 3 to use Steel plate rather than Titanium plate. I can go grab the changes if you want?

Glendening commented 4 years ago

Looks like I might have been off. Only the Electrolyser 3 changed in a way that broke things it seems. Electrolyser 3 no longer uses tungsten-plate (used to replace steel plate with Tungsten) Error generated

Error ModManager.cpp:1514: Failed to load mod "FTweaks": __FTweaks__/data-final-fixes.lua:4: __DragonIndustries__/recipe.lua:213: No such item 'tungsten-plate' in recipe!
stack traceback:
    __DragonIndustries__/recipe.lua:213: in function 'changeIngredientInList'
    __DragonIndustries__/recipe.lua:260: in function 'replaceItemInRecipe'
    __FTweaks__/prototypes/bridges.lua:454: in main chunk
    [C]: in function 'require'
    __FTweaks__/data-final-fixes.lua:4: in main chunk
stack traceback:
    [C]: in function 'error'
    __DragonIndustries__/recipe.lua:213: in function 'changeIngredientInList'
    __DragonIndustries__/recipe.lua:260: in function 'replaceItemInRecipe'
    __FTweaks__/prototypes/bridges.lua:454: in main chunk
    [C]: in function 'require'
    __FTweaks__/data-final-fixes.lua:4: in main chunk
stack traceback:
    [C]: in function 'require'
    __FTweaks__/data-final-fixes.lua:4: in main chunk

Bobs assembling 0.18.7 electrolyser-updates.lua

if data.raw.item["aluminium-plate"] then
  bobmods.lib.recipe.replace_ingredient("electrolyser-3", "steel-plate", "aluminium-plate")

fTweaks 1.18.10 bridges.lua

if data.raw.recipe["electrolyser-3"] and data.raw.item["tungsten-plate"] then
    replaceItemInRecipe(data.raw.recipe["electrolyser-3"], "tungsten-plate", "aluminium-plate", 1)