coyan2 wrote:I have watched and noticed that the production does not stop, its just like a warning that its about to stop.. No big deal really, I was just wondering, what if you had FDN Supply the hub with 2x or more of the ware that the stations where needing.. Maybe like if the station is part of a complex, the station will be ignored, or placed in the background, and have FDN just work with the hub.
like if there are 25 cattle ranches on the hub, then it will need X amount of e-cells to make all of them work, so keep the hub stocked with at least that many e-cells or something....
I mean. It works fine like this, but I always think there is something wrong with my wares when i see flashing yellow, so I try to find what im missing to add in another station, But find I have plenty of the item, its just not getting to the right station in the time that the station wants it......
all in all, I like the script, Just wasn't sure if this was a bug or not..
Thanks
Coy..
The issue with Complexes is that the storage is a combination of the component Stations that make-up the Complex, however the production is still independent.
Example: a Complex has 3 Stations that require Energy.
The 3 Stations have different cycle times & require a different amount of Energy, so at anyone time the total required varies.
In a normal station the calculation is easy, (Required per Cycle * 2) – Current Stock.
But with a Complex if you use this its (required per cycle * 2) – current stock of the Complex
So currently for Complexes the task running on the individual Stations just passes 1 * required per cycle in time with the production cycle.
What you are seeing with the yellow triangle of doom is the time in-between different cycle times where the Complex registers it doesn’t have the required volume for the next cycle, but as the task monitor this the required amount is passed so the actual production doesn’t stop.
The following code will hopefully stop this:
$hub = the Complex
$stn = the target Station in the Complex
$ware = the ware required as primary resource
Code: Select all
$arrayStn = $hub-> get factories array from sector
$s = size of array $arrayStn
$total = 0
While $s > 0
= dec $s
$stnC = $arrayStn[$s]
if $stnC uses ware $ware as primary resource
$req = $stnC-> get numbers of resources per cycle for ware $ware
$total = $total + $req
end
end
$total = $total * 2
$cur = $hub-> get amount of $ware in cargo bay
$cyc = $stn-> get numbers of resources per cycle for ware $ware
$req = $total - $curr
if $req > $cyc
$amt = $cyc * 2
else
$amt = $cyc
end
coyan2, if I post the test script would you mind testing it?
I only have a few test Complexes and nothing really big to put FDN through its paces.
LA