Hi, thanks for making this mod! I was looking for something simple to compact my smelting lines and this mod is just what I needed. There's a problem on this line though:
[code]FastFurnaceEntity.crafting_speed = Furnace.max_health * SpeedMultiplier[/code]
It should be crafting_speed on the right-hand side. An electric furnace with a crafting speed of 1400 is pretty wild though!
I also took the liberty of scaling up the energy usage as well. This is my first time using LUA or modding Factorio, so maybe there's a better way, but feel free to use it if you like.
[code]
diff --git a/FastFurnaceRecipes/data.lua b/FastFurnaceRecipes/data.lua
index d0dbb1e..8d274d6 100644
--- a/FastFurnaceRecipes/data.lua
+++ b/FastFurnaceRecipes/data.lua
@@ -32,7 +32,12 @@ for ,Furnace in pairs(data.raw["furnace"]) do
FastFurnaceEntity.match_animation_speed_to_activity = false
FastFurnaceEntity.MachineItem = FastFurnaceItem.name
FastFurnaceEntity.max_health = Furnace.max_health * SpeedMultiplier
- FastFurnaceEntity.crafting_speed = Furnace.max_health * SpeedMultiplier
+ FastFurnaceEntity.crafting_speed = Furnace.crafting_speed * SpeedMultiplier
+ if Furnace.energy_usage ~= nil then
+ local _, _, amt, unit = string.find(Furnace.energy_usage, "(%d+)%s(%a)")
+ local scaled_usage = "" .. (amt * SpeedMultiplier) .. unit
+ FastFurnaceEntity.energy_usage = scaled_usage
+ end
FastFurnaceEntity.localised_name = {"furnace.name", "ENTITY" .. Furnace.name .. "__"}
FastFurnaceEntity.localised_description = {"furnace.description", "ENTITY" .. Furnace.name .. "__"}
local FastFurnaceRecipe = {}
@@ -67,4 +72,4 @@ for ,Furnace in pairs(data.raw["furnace"]) do
data.raw["furnace"][Furnace.name] = FurnaceCraftingSpeed * SpeedMultiplier
end
end
-end
\ No newline at end of file
+end
[/code]