Helmod: Assistant for planning your factory

by Helfima

Assistant for planning your factory. Can calculate required ingredients, products, machines, modules, and beacons. Can also calculate power production / consumption.

Utilities
a day ago
0.14 - 2.0
479K

g [Fixed] Bug with matrix-solved sub-block not figuring out the output based on above ingredients

5 months ago

Hello again, me with the problems ;)

https://youtu.be/plIfPeBHpjE?t=438 (view this timestamp, 7:20ish) to see three bugs.

Bug 1: the actual functioning here not working as expected. If you have a sub-block with a "main output" of something, in this case, ralesia seeds. Even if matrix-solvered, it should "see" the ralesia seed inputs above it in the main block, and "set" the ralesia seed output to 0.75 for matrix solving purposes. Because it manually works when I type in 0.75, in my opinion it should also work when linking. Linking it should have the effect of setting that to 0.75. And again, ralesia seeds had the red circle "target" icon on it, so the block should know that is the main product and set it to the required amount from blocks above it.

Bug 2: This is an ACTUAL bug, as eventually we got it into some weird state where even if I deleted the line for ralesia flowers, and then turned off matrix solver, and it was still linnked, THAT didn't pick up the ralesia seed ingredients from above. But when I deleted the production line and just made the same line again (basically picked the ralesia seed recipe and then turned it into a sub-block), then that worked fine when linked. So somehow we "broke" the block and it wasn't fixing itself. Obviously you should never be able to have two identical looking blocks with all the same settings where one is broken and the other works fine. Like, deleting a block and re-making it should never be the correct solution. So some sort of bug was going on behind the scenes.

Bug 3: at 11:06 there's a literal error thrown by helmod when I try to delete the block.

Thanks for looking into these!

8 days ago

Having the same problem, to further clarify, this happens when the recipes in the sub block create a loop, then Helmod does not recognize the ingredient inputs from the parent block, which should be used as the linked output for the sub-block. Is this problem not easy to solve?

8 days ago
(updated 8 days ago)

To further clarify, (again in the context of matrix solver with some sort of loop in the block, but one of the looped parts is requested somewhere above in the parent block)

There are times where manual typing of the output works perfectly (Like if I select the green output at the top, type in "1.5", hit enter, it all works perfectly.

BUT, if it's a linked block, and there is a thing that consumes "1.5" of that item above the block, even if I set that item as the primary output, it still won't see it.

Basically if you can type in a number manually and it works, why isn't it just setting that number to be the output if it's the "primary output" of a block?

I'm sure behind the scenes, this is all really hard to code/solve. But from a user perspective, it works properly with manual input, so it stands to reason that it should be able to automatically link those numbers together, effectively automating the "manual input".

4 days ago

in v2.1.23

Added first candidat objective if there are no objective for a block when there are no main product (loop in recipe or block)

New response