Page 1 of 1

[Oxyd] [0.14.22] raw materials and circular requirements

Posted: Tue Feb 14, 2017 2:39 am
by TheUnknown007
Raw materials needed for crafting does not work correctly for crude oil barrel when selecting that process in an assembler: it shows as 2 crude oil barrels, which is wrong for 2 reasons:
  • It only takes 1 crude oil barrel to make a crude oil barrel
  • It should show 1 steel plate and 25 crude oil (which is done correctly in the crafting menu of the player and after you have selected this product for the assembler in the product slot)
I suspect it has something to do with it being a circular requirement (ie. if A can be made from B and B can be made from A again), although it only happening in an assembler menu is also kind of weird...

To be honest, I am surprised that this bug exists in this way, I would've expected the game to simply crash/hang trying to resolve that dependency instead of just finishing with the product itself.

Expected behaviour:
  • Check for any non-circular requirements:
  • if they exist, show that as raw materials.
  • Else...
    • ... show the step with the least / most (one of the two, equal in all cases; to be decided by you, the developers. In other words, choose one and always take that one) requirements.
    • ... or just show no raw materials at all (or some kind of small message)

Re: [0.14.22] raw materials and circular requirements

Posted: Tue Feb 14, 2017 3:03 am
by Klonan
I can confirm the issue:

Image