This is an automated archive made by the Lemmit Bot.
The original was posted on /r/stationeers by /u/EyyyyyyMacarena on 2024-06-11 19:33:15+00:00.
I forgot who posted it (someone please name the original creator here and I'll edit the post) but here it is:
You can basically ask it what you want and it'll give you a script which works 80% of the time, every time. The simpler the script, the higher chances it'll work.
Example: Write the values of the dials I use to control my satellite dishes to both a small dish and a medium dish.
Prompt: "write a script which writes the inputs of a dial named 'Horizontal' and a dial named 'Vertical' to their respective Horizontal and Vertical settings of both a small satellite dish and a medium satellite dish"
Result:
Alias for devices
alias dialHorizontal d0
alias dialVertical d1
alias smallDish d2
alias mediumDish d3
Main loop
start:
yield
Read Horizontal value from the dial
l r0 dialHorizontal Setting
Set Horizontal value to both dishes
s smallDish Horizontal r0
s mediumDish Horizontal r0
Read Vertical value from the dial
l r1 dialVertical Setting
Set Vertical value to both dishes
s smallDish Vertical r1
s mediumDish Vertical r1
Loop back to start
j start
Zero modifications needed. I copied it, pasted it onto an IC and it works flawlessly.
I did the same for my fridge since it consumes 200W. Turn it on when the door is open, turn it off 10 seconds after the door is closed or if the temperature ever rises above -131C.
I also did the same for automating a bunch of other smaller things. Filtration unit - pump some CO2 if it falls below a specific percentage - a small LED Display which shows percentage of all connected batteries. Automating the grow lights is a breeze now. Just an IC needed.
It works and if you're like me a complete noob at IC scripting this not only helps you get started but it's actually helpful to learn - since it isn't always perfect you end up needing to debug sometimes and really understand what you're asking and what you're getting. It got me from not knowing anything about MIPS scripting to basically being almost able to write a simple one myself.
I highly recommend it.