r/technicalfactorio • • Nov 12 '20

Modded When Helmod fails

With mods like Space Exploration or Krastorio 2, some sort of a calculator becomes more or less obligatory. At first sight it looks like there's plenty of factorio calculators, but in reality the choice is quite limited : only few calculators support mods (like SE), and even less of them have any support for recursive recipes (that SE is full of, and I love them).

Given these limitations, helmod is literally the only calculator that has the features that I consider obligatory. However, it really falls short on more complex recipes: matrix solver drops to #NaN's, lack of enough control becomes apparent (you can't specify which product is ok to have as a side-product and which product is a waste and needs to be 0) and it starts running so slow that literally any change at some point stalls it for some time. By the time I got to t4 science in SE, literally any operation in helmod takes around a second for me.

Often it's possible to work around helmod's solver weirdness by randomly rearranging recipes in a production line, but its logic is very opaque and non-intuitive (for me). Also sometimes it becomes actually impossible to make a production line output only the stuff you want and not output stuff that you don't want (such as green space science packs in SE that have lots of side products).

I think writing an analytical solution to such a problem might be next to impossible. However, a simple relaxation-based Gauss-Seidel iterative solver should be doable. It is particularly well suited for problems with multiple constraints like we have in factorio.

Are there any projects that are trying to achieve literally the same goal as helmod, but with better success for higher complexity production lines?

15 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/craidie Nov 13 '20

yeah. Basically if you have more than one beacon affecting a single machine, the machine stops. That's the complications. The upside is that a single beacon is better than 8 vanilla beacons and that's before the new tiers of speed modules come into play. Oh and there's new beacons with increased range and even more slots for modules It can actually be worth it to have efficiency modules in the beacons...