This commit is contained in:
Snorre Selmer 2022-10-24 22:24:36 +02:00
commit c2bf42648a
2 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,17 @@
# Stationeers ic10 code # Stationeers ic10 code
This repo contains ic10 code for the space survival sandbox Stationeers (https://store.steampowered.com/app/544550/Stationeers/). This repo contains ic10 code for the space survival sandbox Stationeers (https://store.steampowered.com/app/544550/Stationeers/).
All code should be used with caution. It should work:tm: but I can't guarantee it's not broken. Items needed are described in the comments at the top of each file. All code should be used with caution. It should work:tm: but I can't guarantee it's not broken. Items needed are described in the comments at the top of each file.
## The scripts:
- **auto_arc_furnace.ic10** - As long as there's ore in the input, the Arc Furnace will smelt.
- **auto_class_sorter.ic10** - Can control multiple sorters to sort out a single itemClass. Useful for looping ingots between printers, and then splitting out the printed items.
- **auto_lights.ic10** - Turns on the lights if you're in a room.
- **automated_canister_filling.ic10** - Safely fills any canister, and then vacuums out the Canister Holder to prevent exploding canisters.
- **cooling_tower_drain.ic10** - Isolates a furnace cooling-tower until the temperature is low enough to safely drain.
- **filtration.ic10** - **!!!OLD!!!** Shows if filters need to be replaced, prevents processing gasses that are too hot or the filtered tank is too full, has a purge-pump function in case the filtered output gets contaminated. **Still works fine, but doesn't use the capabilities of the new filtration units!**
- **gas_mixer.ic10** - Controls a static Gas Mixer. Prevents mixing gasses that are too far apart in temperature, prevents over-pressure, and stops mixing if input pressure gets too low.
- **heating_cooling.ic10** - Temperature regulator with optional temperature display.
- **printer_countdown.ic10** - Uses a counter (Stacker or Dial) to order a given number of items. Stops printing when order is filled.
- **solar_tracking.ic10** - Accurate two-axis solar-panel tracking for up to two types of panels.
- **storm_warning.ic10** - Monitors a Weather Station, announces incoming storms, sounds an alarm when the storm is 3 minutes from hitting, stops alarm when the storm is less than 1 minute from hitting. (Can be adjusted.)

View File

@ -12,13 +12,12 @@ define ITEMCLASS 19 # 10=ores, 19=ingots, 33=wrekage
define INPUTSLOT 0 # sorter input-slot define INPUTSLOT 0 # sorter input-slot
start: start:
jal sort bdseal dr3 sort
add SorterCounter SorterCounter 1 add SorterCounter SorterCounter 1
bgt SorterCounter 5 reset bgt SorterCounter 5 reset
j start j start
sort: sort:
bdns dr3 ra
s dr3 Mode 2 # set sorter to IC mode s dr3 Mode 2 # set sorter to IC mode
ls SlotOccupied dr3 INPUTSLOT Occupied # check if anything to sort ls SlotOccupied dr3 INPUTSLOT Occupied # check if anything to sort
beqz SlotOccupied ra beqz SlotOccupied ra
@ -30,4 +29,4 @@ j ra
reset: reset:
yield yield
move SorterCounter 0 move SorterCounter 0
j start j start