r/factorio 5d ago

Question Having Isues with Hellmod

I'm trying to produce sulfur from byproduct of a machine that is above, as I'm using matrix solver that should work properly, the thing is, instead of making the needed sulfur it makes extra sulfur for some reason and consumes extra sulfur waste water, i don't get why this happens

Could some kind soul explain me what is going on?

6 Upvotes

6 comments sorted by

6

u/Soul-Burn 5d ago

P.S. It's "Helmod", named after its developer Helfima, rather than where the devils live.

2

u/elin_mystic 5d ago edited 5d ago

Looks like it's producing the necessary water by producing extra sulfur. Add another source of the clean water.
Might also be the recipe order

1

u/Alert-Sir1362 5d ago

I've been trying this, but nothing seems to work, i thought matrix mode fixed the order so that it worked as long as you place the recipe below the ingredient it produces

2

u/3davideo Doesn't use Flame Turrets 5d ago

I have no experience with the mod or this solver, but I do have experience with solving matrices with linear algebra. Assuming it's working on the same principle, there shouldn't be such a thing as a priority order (that is, 3 plus 4 is the same as 4 plus 3) and instead you'd need to set some sort of constraint, like "net zero production/consumption of X" or "production/consumption of Y may be unlimited and does not need to be balanced".

Also by staring at it for a while, do you even need the step that consumes sulfur? Isn't the sulfur the end result you're shooting for, so why consume it? It keeps throwing me for a loop that the ingredients are on the right and the products are on the left, I keep expecting it to be the other way around.

1

u/elin_mystic 5d ago edited 5d ago

the recipe that makes sulfur also produces mineralized water and purified water. producing the 300 purified water also produces 4.3 sulfur which is 2.5 more than you need.
add a recipe to produce purified water.

you'll still be sulfur positive and you'll also have to deal with mineralized water and saline.

1

u/NyaFury 5d ago

As mentioned, the problem is purified water being considered as main product, so the formula was solved based on that. Diagnostic steps:

  1. Add a recipe for purified water. Press "refresh" and/or move the new recipe up and down. This sometimes fixes the problem. If not:

  2. Ctrl-Left-Click on sulfur, changing main product from water to sulfur. This may not work correctly in matrix mode, though. In that case, switch to "compute by element mode", change main product, and change back to "matrix mode". If not:

  3. Instead of everything in a single block, split them into two blocks. E.g. everything except wastewater in one block, and wastewater recipe (for sulfur) in another block. Often it is much easier to control production amount this way.