Actions

Editing Vending Machine Export IC10

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 137: Line 137:
 
== How It Works ==
 
== How It Works ==
  
=== Main loop ===
+
=== Control And Initialization ===
  
* Wait until both memory modules have a non-zero value.
+
* Wait until both memory modules have a non-zero value, then configure the sorter and stacker with the right mode and reset their counters. Reset the memory module for quantity.
* Run device configuration.
 
* Store request hash and quantity.
 
* Reset the memory for quantity to indicate the start of the export (and so we don't keep exporting the same item)
 
* Run the item export function.
 
  
=== _Configuration ===
+
=== Main ExportItem Loop ===
 
 
* Configure the sorter for default mode, and the stacker for manual.
 
 
 
=== _ExportItem ===
 
 
* Request the item from the vender and wait for it to arrive into the stacker, then run _WaitForDevices​ to make sure nothing is busy.
 
* Request the item from the vender and wait for it to arrive into the stacker, then run _WaitForDevices​ to make sure nothing is busy.
 
* Calculate the setting for the stacker depending on the remaining items, the quantity inside the stacker and the maximum stacking size (in manual mode, it won't do anything until the Output parameter is set to 1)
 
* Calculate the setting for the stacker depending on the remaining items, the quantity inside the stacker and the maximum stacking size (in manual mode, it won't do anything until the Output parameter is set to 1)

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)