Ok, i can see that it would have needed 59, not 9, but still there is a math error (or math duplication) that appears to occur between SupplyNeeded and AddExtraIngredients. It's almost like its double corrected or something. I am still modifying and editing the script to see if i can track down the math problem. But it appears that woRecipeFuel is being decrement twice in the sequnce.gnits said:I have an odd thing happen.
At certain times i get a buy supplies loop.
I have 4 stacks of 25 cleaner and one stack of 14. My calculations show i need 9.Code:12:59:03::VG: Called SupplyNeeded 12:59:03::VG:recipe requires: Cleaner :: 125 12:59:03::VG: SupplyNeeded should buy : Cleaner @ 61 12:59:03::VG: (78):() :: You stop crafting. ... 12:59:27::VG:Testing: Adhesive :: -29 12:59:27::VG:Testing: Cleaner :: -3 12:59:27::VG:Testing: Water :: -42 12:59:30::VG: Done Sell/Buy, moving back to Craft Station 12:59:31::VG: MoveAlongPath called 12:59:31::VG:MoveAlongPath: currSpot was supplier 12:59:31::VG: Moving to End Crafting Station End
I am doing a batch job with Cleaner as the fuel.
But it doesnt seem to do the math right. Anything additional you need to test this? If i go buy enough it doesnt have a problem.
Once it is being used via the .CurrentValue property. The second way is through the .Element property. I am not sure if these are different variable constructs or two references to the same one. Either way, i am at the limits of my programming knowlege on this but i suspect somewhere in that is the failure.