Super Factory Manager ( SFM )

Super Factory Manager ( SFM )

16M Downloads

Output to free inventories?

nmgix opened this issue ยท 6 comments

commented

As mod uses pseudocode and im not familiar with all the rules, i cannot come to conclusion how to output to machines that have free inventories
(all examples(git&ingame) are about conditioning based on input inventories and even w/ "some dest1"(i.e.) i cant choose those "some" destination inventories that triggered "if" code block to put items to).

Idea example:

for exact_machine in machines
   if exact_machine has le 0 item:: then
       output item:: to exact_machine 
   end
end

Example 2: one input chest, cables and 10 machines, machines are fast to input and process, but very slow to output so they clog up processing new items and keep collecting items to process while other machines (whose output was already taken) are stalling (for sure i can do something w/ outputting faster, but that's not the issue).
Would be very thankful to get a code example as i dont really want to roll to computercraft.

Maybe aliases could help?

commented

those whos output is been taken rn
image
those clogged and keep getting items
image

my shtcode (mekanism dissolution)

name "Dissolution"

every 20 ticks do
    input sfm:forge_energy:forge:energy from dissolution_energy bottom side
    output sfm:forge_energy:forge:energy to each dissolution bottom side
end

every 20 ticks do
    input item:: from dissolution_box
    output 1 item:: to each dissolution east side 
    forget
    input gas:mekanism:sulfuric_acid from dissolution_gas east side
    output 300 gas:mekanism:sulfuric_acid to each dissolution north side
end

every 20 ticks do
    input slurry:: from each dissolution south side
    output slurry:: to dissolution_provider
end