Stationeers

Stationeers

Not enough ratings
Vend Dispenser
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
198.948 KB
22 Aug, 2020 @ 11:40am
1 Change Note ( view )

Subscribe to download
Vend Dispenser

In 1 collection by TryCatch
Smart Station
7 items
Description
Configurable storage for items, keeps track of their quantity and ejects the exact amount as needed(optional).

Setup:
Basic - you will need a Vending machine, a Console with a Hash display and LED console(to display the quantity), a Dial, a Button and IC housing with a circuit for sure.
Optionally, if you want to split items precisely - place the Stacker after the Vend output slot and the Sorter next to the Stacker. The main output of the Sorter(see picture, the ore lies near main output) will eject requested items and the side output will ejects rest(remaining after splitting). You can connect side output back into the Vend or you may try my other work Vend Packager to accumulate leftovers ;)

For the console with hash display choose IC Housing. Set screws:
d0 - Vending machine
d1 - Sorter (optional)
d2 - Stacker (optional)
d3 - Dial to switch between items
d4 - LED to display items count
d5 - Button to request items
Done!

Usage
Rotate the dial to select an item - it will count and display the quantity for the selected one. Set desired amount on the Stacker(optional) and push the button. Note: unfortunately, it can't switch selection and count quantity while ejecting.

Configuration
At the top of the script you can find configuration section, replace the hashes in it with what you need to keep in this Vending machine. Example config for ingots:
push -1301215609 # Iron push -404336834 # Copper push 226410516 # Gold push -290196476 # Silicon push 2134647745 # Lead push -1406385572 # Nickel push -929742000 # Silver push -654790771 # Steel push 1058547521 # Constantan push 502280180 # Electrum push -297990285 # Invar push -82508479 # Solder push 412924554 # Astroloy push 1579842814 # Hastelloy push -787796599 # Inconel push 156348098 # Waspaloy push -1897868623 # Stellite

Automation
Experimental feature, allows control from another IC or via basic logic chips. You will need to set the Setting parameter on the IC Housing to the desired hash, set the Setting on the Stacker and lock it. Example code:
alias DispenserIC d0 alias Stacker d1 s DispenserIC Setting 1758427767 # request Iron Ore s Stacker Setting 150 # set amount s Stacker Lock 1 # activate dispenser yield l r0 Stacker Lock # when it done, it releases Lock brnez r0 -2 s DispenserIC Setting 1724793494 # now request Coal s Stacker Setting 50 # set amount s Stacker Lock 1 # activate dispenser
9 Comments
Rabbit 12 Jun @ 2:57pm 
It sort of works... for some reason when I try setting it up with the stacker, it would not do both outputs on the sorter, unless i stack 100 count and forces it out with another output
Hilas 6 Aug, 2023 @ 9:29am 
did you have a video of this working ? would be great :)
7rex 27 Jun, 2023 @ 5:29am 
Currently using this to see whats in my ore vending machine. Works perfectly, thank you.
Hratgard 5 Aug, 2021 @ 5:14am 
Would just like to add, since I didn't earlier - Great work! Was an easy build with your direction!
Hratgard 5 Aug, 2021 @ 5:12am 
Oh, and an idea - what if dumped all smaller stacks into a loop where they are mad to max size stacks, cleaning up space in the vendor. I know of your other vend-stacker, and I use it - separately - and I know they can be combined - how ever, it should be enough with the pieces in this build already - if the code space allows it.
Hratgard 5 Aug, 2021 @ 4:37am 
Would it be possible to have it eject anything that's not entered as hash's in the top? Would it be room in the code? As of now I have have a 2nd sorter where reject anything but ingots. Tried to add this to the current Sorter - and have also stuff into the vendor go through the stacker/sorter - bu that messed up all orders.
Bohdan 31 Jul, 2021 @ 7:10am 
Easy to understand,simple to build and works as advertised. Very nice little script,thank you. :steamhappy:
TryCatch  [author] 9 Sep, 2020 @ 10:30am 
Thanks! I’m pleased you like it :)
Xonbie 9 Sep, 2020 @ 3:13am 
Excellent script