Factory Planner


This mod allows you to plan your production in advance, specifying the recipes and machines that make up each assembly line. It provides powerful features that are fast and intuitive to use, so you can focus on actually building your factory.

Utilities
4 months ago
0.17 - 1.1
209K

b Negative value in matrix solver (simple save included)

1 year, 8 months ago

Hello

In the matrix solver, if material X (in included save: rutile) have a main recipe and is a by product of another recipe (in save: silica).

WHEN : the requested amount of X for further recipe down the line is sufficently produced by the byproduct alone.

EXPECTED RESULT: some of the byproduct amount is used for the recipe and the rest is marked as byproduct in the top of the window. The main recipe should be at zero energy usage as it is not needed.

ACTUAL RESULT: the main recipe have a negative energy usage value, there is no material X marked as byproduct and more, some of the ingredient for the main recipe appear as byproduct in top of the window as if it was being made (they can't, they are ingredient, not result (the sulfuric acid in the save included))

You can find below a link to a factorio save that have three floor:

  • The first one is the normal case without problem, there is not enough byproduct made to trigger the problem.
  • The second floor trigger the bug as there is enough rutile made as byproduct.
  • The third one showcase that the problem occur event if consumption of rutile is a byproduct recipe.

That show that a perfectly valid floor can bug if amount changes (and that happen a lot during my nullius run).

The save only have bare minimum nullius and factory planner as mod (easier to reproduce my actual problem than trying to find the problem in vanilla)

http://neemys.name/factory_planner_bug.zip

1 year, 8 months ago

Hello, appreciate the report.

1 year, 7 months ago

I have hit the same issue with the new pYmods - let me know if another repro is useful to you (It's with a beta version of pY, so the zip will be a bit large as you can't pull it from the portal yet)