Flare Stack Redux


Adds structures to dispose of unwanted items and fluids. A fork from the original by GotLag, reworked & optimized for 2.0.

Content
a month ago
2.0
1.10K
Fluids Storage

g What is the difference with the already existing Flare Stack for 2.0

a month ago
(updated a month ago)

What are the differences between this mod and the existing Flare Stack for 2.0 (https://mods.factorio.com/mod/Flare_Stack_SA)?

a month ago
(updated a month ago)

What are the differences between this mod and the existing Flare Stack for 2.0 (https://mods.factorio.com/mod/Flare_Stack_SA)?

From the player's POV, probably no difference; both this mod and "Flare Stack SA" provides the same item-destroying buildings that works in more or less the same way (except for one issue)

However, internally the code is different. I rewrite and modified the mod's internals because, at the time of uploading this mod, "Flare Stack SA" has some issues (in my opinion):

  • A change in "crafting speed" would result in the Flare Stack to be burning fluid much too fast

    • In essence, Flare Stack SA applies "fluid burning rate" twice : Once in the recipe, and once in the crafting speed. Which means that actual rate will be the square of the requested rate.
  • Many table fields no longer available in Factorio were left in

    • Some of these fields are initialized using util function calls meaning additional processing during mod initialization, but for nought
  • Some initializations are not optimal

    • For instance: the original mod -- and also SA -- sometimes do a whole table replace even after doing a deepcopy. It's much faster and less memory-thrashing to just surgically redefine fields of the table rather than replacing the whole table
  • Some Lua coding best practices are not being followed

So this mod is a massive "modernization" of the original mod, and not just simple compatibility modification to 2.0.

Please note that between me uploading this and today, it is possible that "Flare Stack SA" fixed those issues.

New response