Stationeers

Stationeers

Not enough ratings
TriGas Alloy Furnace (Admin)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
232.339 KB
12 Jul, 2024 @ 7:15pm
20 Jan @ 8:14am
2 Change Notes ( view )

Subscribe to download
TriGas Alloy Furnace (Admin)

In 1 collection by Wilhelm W. Walrus
Some Good Stuff
11 items
Description
This is the administrator chip for the highly efficient hot-warm-cold furnace system.​

This is both the most important and least interesting of the three scripts required. If you wanted to attach an automated chute system as well, this would be the place to do it.

#this is the Furnace System Administrator script which can control the dictionary and #burner chips with a physical user interface. The dictionary stores the parameters for #all the metals, while the burner encapsulates the furnace gas I/O logic. # #override the smelt process at any time by opening the furnace! alias furnace d0 alias paramDict d1 #ic housing for the recipe dictionary alias burner d2 #ic housing for the combustion control chip alias button d3 #logic button for starting a smelt cycle alias amtDial d4 #logic dial for batch amount define amtScalar 50 # grams of reagent per amtDial tick DoIdle: l r0 button Setting #wait until the button is pressed to begin melting bnez r0 MeltMetals yield j DoIdle MeltMetals: s furnace On 1 #prepare the furnace for smelting s furnace Open 0 s burner Setting 1 #set the burner chip to smelt yield DoBurn: l r0 furnace Open #override the smelt process by manually opening the furnace bnez r0 Purge l r0 paramDict Setting #recipe dictionary uses ingot hash as setting (hook up a console!) l r1 furnace RecipeHash seq r0 r0 r1 l r1 amtDial Setting mul r1 r1 amtScalar l r2 furnace Reagents sge r1 r2 r1 and r0 r0 r1 #if the furnace recipe hash matches the target and there are enough reagents, bnez r0 Purge #begin the purge process. yield j DoBurn Purge: s furnace Open 1 yield l r0 furnace Reagents brgtz r0 -2 #first, extract all the ingots from the furnace s burner Setting -1 #then, purge the gasses s furnace Open 0 yield j DoIdle