Actions

Difference between revisions of "IC10"

From Unofficial Stationeers Wiki

(Added functions, slot variables and examples section headers, added slot variables, and provided examples for various slot variables.)
(Created collapsible sections, added device variables, various definitions and examples. Minor formatting tweaks. This is my first wiki post, so hopefully things look OK for the moment.)
Line 2: Line 2:
  
 
{|
 
{|
|+Functions
+
|+Functions  
 
<div class="mw-collapsible mw-collapsed">
 
<div class="mw-collapsible mw-collapsed">
 
*[[#abs|abs]]
 
*[[#abs|abs]]
Line 47: Line 47:
 
*[[##|#]]
 
*[[##|#]]
 
</div>
 
</div>
 +
 +
 +
|+Device Variables
 +
<div  class="mw-collapsible mw-collapsed">
 +
*[[MIPS:Device Variables#Activate|Activate]]
 +
*[[#AirRelease|AirRelease]]
 +
*[[#Charge|Charge]]
 +
*[[#CLearMemory|CLearMemory]]
 +
*[[#Color|Color]]
 +
*[[#CompletionRatio|CompletionRatio]]
 +
*[[#ElevatorLevel|ElevatorLevel]]
 +
*[[#ElevatorSpeed|ElevatorSpeed]]
 +
*[[#Error|Error]]
 +
*[[#ExportCount|ExportCount]]
 +
*[[#Filtration|Filtration]]
 +
*[[#Harvest|Harvest]]
 +
*[[#Horizontal|Horizontal]]
 +
*[[#HorizontalRatio|HorizontalRatio]]
 +
*[[#Idle|Idle]]
 +
*[[#ImportCount|ImportCount]]
 +
*[[#Lock|Lock]]
 +
*[[#Maximum|Maximum]]
 +
*[[#Mode|Mode]]
 +
*[[#On|On]]
 +
*[[#Open|Open]]
 +
*[[#Output|Output]]
 +
*[[#Plant|Plant]]
 +
*[[#PositionX|PositionX]]
 +
*[[#PositionY|PositionY]]
 +
*[[#PositionZ|PositionZ]]
 +
*[[#Power|Power]]
 +
*[[#PowerActual|PowerActual]]
 +
*[[#PowerPotential|PowerPotential]]
 +
*[[#PowerRequired|PowerRequired]]
 +
*[[#Pressure|Pressure]]
 +
*[[#PressureExternal|PressureExternal]]
 +
*[[#PressureInteral|PressureInteral]]
 +
*[[#PressureSetting|PressureSetting]]
 +
*[[#Quantity|Quantity]]
 +
*[[#Ratio|Ratio]]
 +
*[[#RatioCarbonDioxide|RatioCarbonDioxide]]
 +
*[[#RatioNitrogen|RatioNitrogen]]
 +
*[[#RatioOxygen|RatioOxygen]]
 +
*[[#RatioPollutant|RatioPollutant]]
 +
*[[#RatioVolatiles|RatioVolatiles]]
 +
*[[#RatioWater|RatioWater]]
 +
*[[#Reagents|Reagents]]
 +
*[[#RecipeHash|RecipeHash]]
 +
*[[#RequestHash|RequestHash]]
 +
*[[#RequiredPower|RequiredPower]]
 +
*[[#Setting|Setting]]
 +
*[[#SolarAngle|SolarAngle]]
 +
*[[#Temperature|Temperature]]
 +
*[[#TemperatureSettings|TemperatureSettings]]
 +
*[[#TotalMoles|TotalMoles]]
 +
*[[#VelocityMagnitude|VelocityMagnitude]]
 +
*[[#VelocityRelativeX|VelocityRelativeX]]
 +
*[[#VelocityRelativeY|VelocityRelativeY]]
 +
*[[#VelocityRelativeZ|VelocityRelativeZ]]
 +
*[[#Vertical|Vertical]]
 +
*[[#VerticalRatio|VerticalRatio]]
 +
*[[#Volume|Volume]]
 +
 +
 +
 +
</div>
 +
 
|+Slot Variables  
 
|+Slot Variables  
 
<div  class="mw-collapsible mw-collapsed">
 
<div  class="mw-collapsible mw-collapsed">
Line 66: Line 133:
 
*[[#Mature|Mature]]
 
*[[#Mature|Mature]]
 
</div>
 
</div>
 +
 
|}
 
|}
  
Line 72: Line 140:
 
// space between arguments isn't important, but new lines start a new command.
 
// space between arguments isn't important, but new lines start a new command.
 
</pre>
 
</pre>
 +
 
<br>
 
<br>
 +
  
 
==Functions==
 
==Functions==
 
----
 
----
 
+
<div  class="mw-collapsible mw-collapsed">
  
 
<div id="alias"></div>
 
<div id="alias"></div>
Line 209: Line 279:
 
; #
 
; #
 
:    // The following text will be ignored during compiling; use this to create comments.
 
:    // The following text will be ignored during compiling; use this to create comments.
 +
 +
</div>
 +
 +
 +
 +
==Device Variables==
 +
-----
 +
<div class="mw-collapsible mw-collapsed">
 +
 +
<div id="Activate"></div>
 +
;Activate
 +
:1 if device is activated (usually means running), otherwise 0
 +
:<code>l r0 d0 Activate # sets r0 to 1 if on or 0 of off</code>
 +
 +
<div id="AirRelease"></div>
 +
;AirRelease
 +
<div id="Charge"></div>
 +
;Charge
 +
:    The current charge the device has.
 +
<div id="CLearMemory"></div>
 +
;CLearMemory
 +
:    When set to 1, clears the counter memory (e.g. ExportCount).  Will set itself back to 0 when triggered.
 +
<div id="Color"></div>
 +
;Color
 +
<div id="CompletionRatio"></div>
 +
;CompletionRatio
 +
<div id="ElevatorLevel"></div>
 +
;ElevatorLevel
 +
<div id="ElevatorSpeed"></div>
 +
;ElevatorSpeed
 +
<div id="Error"></div>
 +
;Error
 +
: 1 if device is in error state, otherwise 0
 +
<div id="ExportCount"></div>
 +
;ExportCount
 +
:    How many items exporfted since last ClearMemory.
 +
<div id="Filtration"></div>
 +
;Filtration
 +
: The current state of the filtration system.  For example filtration = 1 for a Hardsuit when filtration is On.
 +
<div id="Harvest"></div>
 +
;Harvest
 +
: Performs the harvesting action for any plant based machinery.
 +
:  <code>s d0 Harvest 1 # Performs 1 harvest action on device d0</code>
 +
<div id="Horizontal"></div>
 +
;Horizontal
 +
<div id="HorizontalRatio"></div>
 +
;HorizontalRatio
 +
<div id="Idle"></div>
 +
;Idle
 +
<div id="ImportCount"></div>
 +
;ImportCount
 +
<div id="Lock"></div>
 +
;Lock
 +
<div id="Maximum"></div>
 +
;Maximum
 +
<div id="Mode"></div>
 +
;Mode
 +
<div id="On"></div>
 +
;On
 +
<div id="Open"></div>
 +
;Open
 +
<div id="Output"></div>
 +
;Output
 +
<div id="Plant"></div>
 +
;Plant
 +
:    Performs the planting operation for any plant based machinery.
 +
:  <code>s d0 Plant 1 # Plants one crop in device d0</code>
 +
<div id="PositionX"></div>
 +
;PositionX
 +
<div id="PositionY"></div>
 +
;PositionY
 +
<div id="PositionZ"></div>
 +
;PositionZ
 +
<div id="Power"></div>
 +
;Power
 +
<div id="PowerActual"></div>
 +
;PowerActual
 +
<div id="PowerPotential"></div>
 +
;PowerPotential
 +
<div id="PowerRequired"></div>
 +
;PowerRequired
 +
<div id="Pressure"></div>
 +
;Pressure
 +
<div id="PressureExternal"></div>
 +
;PressureExternal
 +
<div id="PressureInteral"></div>
 +
;PressureInteral
 +
<div id="PressureSetting"></div>
 +
;PressureSetting
 +
<div id="Quantity"></div>
 +
;Quantity
 +
: Total quantity in the device.
 +
<div id="Ratio"></div>
 +
;Ratio
 +
: Context specific value depending on device, 0 to 1 based ratio.
 +
<div id="RatioCarbonDioxide"></div>
 +
;RatioCarbonDioxide
 +
<div id="RatioNitrogen"></div>
 +
;RatioNitrogen
 +
: The ratio of nitrogen in device atmosphere.
 +
<div id="RatioOxygen"></div>
 +
;RatioOxygen
 +
: The ratio of oxygen in device atmosphere.
 +
<div id="RatioPollutant"></div>
 +
;RatioPollutant
 +
: The ratio of pollutant in device atmosphere.
 +
<div id="RatioVolatiles"></div>
 +
;RatioVolatiles
 +
: The ratio of volatiles in device atmosphere.
 +
<div id="RatioWater"></div>
 +
;RatioWater
 +
: The ratio of water in device atmosphere.
 +
<div id="Reagents"></div>
 +
;Reagents
 +
<div id="RecipeHash"></div>
 +
;RecipeHash
 +
<div id="RequestHash"></div>
 +
;RequestHash
 +
<div id="RequiredPower"></div>
 +
;RequiredPower
 +
<div id="Setting"></div>
 +
;Setting
 +
<div id="SolarAngle"></div>
 +
;SolarAngle
 +
:    Solar angle of the device.
 +
:  <code>l r0 d0 SolarAngle # Sets r0 to the solar angle of d0.</code>
 +
<div id="Temperature"></div>
 +
;Temperature
 +
<div id="TemperatureSettings"></div>
 +
;TemperatureSettings
 +
<div id="TotalMoles"></div>
 +
;TotalMoles
 +
<div id="VelocityMagnitude"></div>
 +
;VelocityMagnitude
 +
<div id="VelocityRelativeX"></div>
 +
;VelocityRelativeX
 +
<div id="VelocityRelativeY"></div>
 +
;VelocityRelativeY
 +
<div id="VelocityRelativeZ"></div>
 +
;VelocityRelativeZ
 +
<div id="Vertical"></div>
 +
;Vertical
 +
: Vertical setting of the device.
 +
<div id="VerticalRatio"></div>
 +
;VerticalRatio
 +
: Ratio of vertical setting for device.
 +
<div id="Volume"></div>
 +
;Volume
 +
: Returns the device atmosphere volume
 +
 +
</div>
 +
 +
 +
  
 
==Slot Variables==
 
==Slot Variables==
 
-----
 
-----
 +
<div  class="mw-collapsible mw-collapsed">
 +
  
 
<div id="Occupied"></div>
 
<div id="Occupied"></div>
Line 252: Line 478:
 
:<code>ls vMature dThisVictim 0 Mature # Store 1 in vMature if dThisVictim has a mature crop</code>
 
:<code>ls vMature dThisVictim 0 Mature # Store 1 in vMature if dThisVictim has a mature crop</code>
  
 +
 +
</div>
  
  
  
==Example==
+
==Examples==
 
-----
 
-----
 +
<div  class="mw-collapsible mw-collapsed">
 +
  
 
This is a sample timer command set, alternating between 1 for 1 tick (0.5s), then off for 2 ticks (1s).
 
This is a sample timer command set, alternating between 1 for 1 tick (0.5s), then off for 2 ticks (1s).
Line 302: Line 532:
 
ls r3 db 0 OccupantHash
 
ls r3 db 0 OccupantHash
 
</pre>
 
</pre>
 +
</div>
  
 +
==Links==
 +
-----
 +
<div  class="mw-collapsible mw-collapsed">
 
* [https://hastebin.com/uwuhidozun.md]
 
* [https://hastebin.com/uwuhidozun.md]
 
* [http://www.easy68k.com/]
 
* [http://www.easy68k.com/]
 +
</div>

Revision as of 01:06, 23 October 2018

=MIPS scripting language for IC10 housings / chips

Functions


Device Variables

Slot Variables

// Text after a // will be ignored to the end of the line. The amount of white
// space between arguments isn't important, but new lines start a new command.



Functions


[Expand]


Device Variables


[Expand]



Slot Variables


[Expand]


Examples


[Expand]

Links