Stationeers

Stationeers

Not enough ratings
Minimalist Crafter Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
248.306 KB
27 Jan @ 1:51am
1 Change Note ( view )

Subscribe to download
Minimalist Crafter Manager

In 1 collection by Wilhelm W. Walrus
Some Good Stuff
11 items
Description
This script employs minimal resources for basic printer management. It is recommended that you simply keep your printers full of Fe, Cu, Au, and steel, while the eject button will remove everything else when requested. Besides that, it has amount-based crafting with a dial and a switch for power management. ​

#this script is designed for entry-level printer management. An on/off switch is used #to toggle power, an eject button will eject all the alloys except steel, and an #amount dial is used in conjuction with one of three buttons to engage amount-based #crafting. It is reccomended that you leave plenty of Fe, Si, Au, Cu, and steel in #all of the printers so no automation is needed on that front. alias eprinter d0 #electronics printer alias hbender d1 #pipe bender alias lathe d2 #autolathe alias eject d3 #alloy ejection button alias switch d4 #global on/off switch alias dial d5 #recipe amount dial define lB $21927 #lathe start button define hB $21928 #hbender start button define eB $21929 #eprinter start button define RstackerID HASH("StructureStackerReverse") #stackers on output define stackerID HASH("StructureStacker") define stackerName HASH("CrafterStacker") push HASH("Solder") push HASH("Electrum") push HASH("Constantan") push HASH("Invar") push HASH("Stellite") push HASH("Waspaloy") push HASH("Inconel") push HASH("Hastelloy") push HASH("Astroloy") DoIdle: l r0 eject Activate bnez r0 EjectAlloys #eject all alloys (except steel) if button is hit l r0 switch Open #handle power switch s eprinter On r0 s hbender On r0 s lathe On r0 sbn stackerID stackerName On r0 sbn RstackerID stackerName On r0 bnez r0 HandleDial #check craft request if on Finish: yield j DoIdle EjectAlloys: move sp 9 #attempt to eject each of the 9 alloys on the stack blez sp Finish pop r0 sll r0 r0 8 or r0 r0 PrinterInstruction.EjectReagent put lathe sp r0 put eprinter sp r0 put hbender sp r0 jr -7 HandleDial: alias device d2 #check each button and execute the recipe if pressed ld r0 lB Activate bnezal r0 ExecuteAmount alias device d1 ld r0 hB Activate bnezal r0 ExecuteAmount alias device d0 ld r0 eB Activate bnezal r0 ExecuteAmount j Finish ExecuteAmount: l r0 dial Setting sll r0 r0 8 l r1 device RecipeHash sll r1 r1 16 or r0 r0 r1 or r0 r0 PrinterInstruction.ExecuteRecipe put device 0 r0 s device Activate 1 j ra