KirkMcDonald / kirkmcdonald.github.io

Simple web-based calculator for the game Factorio.
Apache License 2.0
547 stars 146 forks source link

Fuel tracking has issues #83

Closed KirkMcDonald closed 5 years ago

KirkMcDonald commented 6 years ago

For example, smelting iron with nuclear fuel doesn't produce a correct result. This is because there is a circular dependency of sorts, between the uranium subgraph and iron plate, and the tracking of fuel usage doesn't recalculate the recipe subgroups.

Another example would be smelting copper plate by burning small electric poles. This has been explicitly disabled, as the current version of the code causes an infinite loop.

The solution is to recompute the recipe subgraphs when needed. Specifically, when:

KirkMcDonald commented 5 years ago

Fixed in 1064da5bedc17ca2246cd45c2fd8481d540af19f.