Hot metals


A furnace doesn't just output cold usable results. You need to wait for them to cool down.

Content
16 days ago
2.0
1.70K
Factorio: Space Age Icon Space Age Mod
Manufacturing

b Game crashing at start

19 days ago

Hi, i have the mod installed for the mod Stellar Horzion, but when the mod load, the game freezes.
9.698 Loading mod hot-metals 1.2.6 (data-updates.lua)
This is in the log, idk what to do

19 days ago
(updated 19 days ago)

Hi there. It gets stuck in an endless loop, if Planet Muluna is enabled. If you disable Muluna, Factorio starts since Hot metals doesn't find itself in the endless loop.

In Planet Muluna version 2.0.0, they added this:
- Added "Crushed aluminum" item, made by crushing aluminum plates.
Which I think works (I haven't reached the planet, started a new game).

  1. Hot metals tries to add a hot version of aluminum plates.
  2. The normal plates have no weight, so it tries to determine the weight from the base ingredients of a recipe resulting in the plate, nothing special so far.
  3. But the first recipe it finds that produces the plates is "aluminum-crushing", which has results aluminum-crushed - but ALSO a 0.05 chance of producing aluminum-plates, again, so the script thinks it has found some sort of "base recipe" from its ingredients it could calculate the weight of the plate.
  4. The base ingredient is an aluminum plate itself, the script tries to determine its weight - but it hasn't got a weight (as already seen in step 2), and thus recursively starts the weight searching process again for aluminum plate. That results in an endless loop.

For contrast, for copper plates that works, because the script finds the recipe "copper-plate", its base ingredient is copper ore, which has got a weight, end of recursive search.

I don't think Muluna did something wrong here, I believe Hot metals' script isn't expecting a recipe (e.g. aluminum-crushing) which has an item (aluminum-plate) both as ingredient and as result - AND, for this item, a hot variant should be added.

I don't know how to fix this, but I believe this is the base issue (added loglines into Hot metals). Maybe ignore results with less than probablilty 1? Or maybe do something special for Muluna, since compatibility is already added anyway...

Hope this helps to track it down. It's in prototypes/hot-metals.lua, in getWeight(). "aluminum-crushing" is found in line 25, line 32 matches, ingredient in line 34 is "aluminum-plate", and from there on the script is doomed.


Edit: actually, I tried to change line 35 to:

if ingredient.type == "item" and ingredient.name ~= item.name then

Then, Factorio starts (with both Muluna and Hot metals active), and there's indeed a hot aluminum plate... don't know if this modification has unintended sideeffects, though, or if it's a good idea to solve it that way...

19 days ago

Edit: actually, I tried to change line 35 to:

if ingredient.type == "item" and ingredient.name ~= item.name then

Then, Factorio starts (with both Muluna and Hot metals active), and there's indeed a hot aluminum plate... don't know if this modification has unintended sideeffects, though, or if it's a good idea to solve it that way...

Its now work, now i just have a new problem with mods, mb just need w8 when mod creater fix it?

19 days ago

Edit: actually, I tried to change line 35 to:

if ingredient.type == "item" and ingredient.name ~= item.name then

Then, Factorio starts (with both Muluna and Hot metals active), and there's indeed a hot aluminum plate... don't know if this modification has unintended sideeffects, though, or if it's a good idea to solve it that way...

Its not work, now i just have a new problem with mods, mb just need w8 when mod creater fix it?

18 days ago

see https://github.com/nicholasgower/planet-muluna/issues/263 (I still think Muluna is fine and Hot Metals needs to fix this, but I may be wrong)

17 days ago

about 6k errors of hot-metals/prototypes/hot-metals.lua:36: in function 'getWeight', then crash

16 days ago

Based on what I am seeing Hot Metals needs to update somehow to work with the Muluna updates. I will be deleting this mod soon if this does not resolve.

16 days ago

Fixed

16 days ago

I confirm it is fixed. Good work cackling.fiend! :)

New response