XiozZe / XioScript

XioScript
11 stars 16 forks source link

Behavior with several suppliers #62

Closed Trebia closed 8 years ago

Trebia commented 8 years ago

Having the following setting:

XioScript behaves the following:

How I would propose to behave:

XiozZe commented 8 years ago

I might want to fully support several suppliers, if I take the time to do this. That warning I gave was just so that I wasn't obliged to script the possibility of having multiple suppliers. The problem lies in the "several suppliers identified for the same product": I have to figure out how to do that.

Trebia commented 8 years ago

Um... I would divide in 2 steps the development:

XiozZe commented 8 years ago

It's not a bug, it's intended: if you have two products, with the first product having two suppliers and the second none, the supply of the second product will be filled in the input of the second supplier of the first product. To prevent that, I set the supply to zero. But of course, I will get rid of that when I support several suppliers

Trebia commented 8 years ago

Ah, ok, that's a potential issue as you are no longer requesting supply from any supplier, exposing your subdivision to stop production.

How are you detecting these problems? Are you going one by one?

XiozZe commented 8 years ago

I'm sometimes randomly picking these problems up. I of course try to test any scenario a player could come with, but depends on my creativity on that moment.

Trebia commented 8 years ago

:), man this script is terrific, is really changing the way I am playing the game.

XiozZe commented 8 years ago

Multiple suppliers supported. An additional option row with "PQR", "Price" and "Quality" added, that determine on which factor it will sort (as in, pick the one with the lowest price first). Will put a warning when a good has no suppliers, or not enough suppliers to fulfill the required supply. Will be in the upcoming XS 12.1.0