Stationeers

Stationeers

View Stats:
Can’t read variables from large insulated tanks?
Trying to load tank pressure into my code and display it on a small led display. I’ve tried reading other variables from the tank but it won’t load anyththing. Is it a problem with my code or is it a bug?

This is my code:
alias tank d0
Alias display d1

Start:
l r0 tank Pressure
s display r0
J start
Originally posted by Shawn:
Ok, so if you want to see what your code is reading from the tank,

s db Setting r0

that will write the reading in r0 to the IC housing, so you can just point at it to see the reading.
A lot of great tips here:
https://stationeers-wiki.com/MIPS
< >
Showing 1-10 of 10 comments
Shawn Sep 4, 2022 @ 1:47pm 
I don't think you can write to a display like that. So, that is probably the problem.

Use a console with a gas display circuitboard and then you can configure it to show the pressure of the tank
I was originally trying to write it to turn on active vents when the pressure was low, used this to test it.

My original code was:
alias tank d0

define MP 5000
define vents -842048328

start:
l r0 tank Pressure
slt r0 r0 MP
sb vents On r0
j start
The author of this thread has indicated that this post answers the original topic.
Shawn Sep 4, 2022 @ 1:58pm 
Ok, so if you want to see what your code is reading from the tank,

s db Setting r0

that will write the reading in r0 to the IC housing, so you can just point at it to see the reading.
A lot of great tips here:
https://stationeers-wiki.com/MIPS
Originally posted by Shawn:
Ok, so if you want to see what your code is reading from the tank,

s db Setting r0

that will write the reading in r0 to the IC housing, so you can just point at it to see the reading.
A lot of great tips here:
https://stationeers-wiki.com/MIPS

I am stupid was using the hash for the kit active vent instead of the hash for the built vent, I just wasted an hour of my life to this lol. Thank you for your help :)
Shawn Sep 4, 2022 @ 2:14pm 
oohh... that would be an easy trap to fall into.
FarmerPalmer Sep 4, 2022 @ 2:18pm 
Originally posted by 𝖕𝖆𝖙𝖔𝖓:
Trying to load tank pressure into my code and display it on a small led display. I’ve tried reading other variables from the tank but it won’t load anyththing. Is it a problem with my code or is it a bug?

This is my code:
alias tank d0
Alias display d1

Start:
l r0 tank Pressure
s display r0
J start

Led Displays can be written to by IC. you need to write to the 'setting'.

alias tank d0
alias display d1
s d1 mode 0 #display has 3 modes

start:
l r0 tank pressure
s d1 setting r1
yield
j start

That should do it for ya.
Display modes:
0 - Normal number display
1 - Percentage number display - Input range of 0.0 to 1.0 is interpolated and displayed
as the range 0% to 100%
3 - Power display - Adds a watt suffix (W) to the number. Also divides the number as
needed and adds a metric unit prefix to the suffix. (e.g. kW)

Hope that helps

Edit: The 2 pages I always go to for help;
https://stationeers-wiki.com/Main_Page all sorts of info here, warning sum out of date
https://stationeering.com/ good for testing out IC codes
Last edited by FarmerPalmer; Sep 4, 2022 @ 2:25pm
Shawn Sep 4, 2022 @ 2:25pm 
Nice!
Originally posted by FarmerPalmer:
Originally posted by 𝖕𝖆𝖙𝖔𝖓:
Trying to load tank pressure into my code and display it on a small led display. I’ve tried reading other variables from the tank but it won’t load anyththing. Is it a problem with my code or is it a bug?

This is my code:
alias tank d0
Alias display d1

Start:
l r0 tank Pressure
s display r0
J start

Led Displays can be written to by IC. you need to write to the 'setting'.

alias tank d0
alias display d1
s d1 mode 0 #display has 3 modes

start:
l r0 tank pressure
s d1 setting r1
yield
j start

That should do it for ya.
Display modes:
0 - Normal number display
1 - Percentage number display - Input range of 0.0 to 1.0 is interpolated and displayed
as the range 0% to 100%
3 - Power display - Adds a watt suffix (W) to the number. Also divides the number as
needed and adds a metric unit prefix to the suffix. (e.g. kW)

Hope that helps

Edit: The 2 pages I always go to for help;
https://stationeers-wiki.com/Main_Page all sorts of info here, warning sum out of date
https://stationeering.com/ good for testing out IC codes
Some great info here thank you!!
Graf Schokola Sep 5, 2022 @ 5:51am 
Originally posted by FarmerPalmer:
Originally posted by 𝖕𝖆𝖙𝖔𝖓:
Trying to load tank pressure into my code and display it on a small led display. I’ve tried reading other variables from the tank but it won’t load anyththing. Is it a problem with my code or is it a bug?

This is my code:
alias tank d0
Alias display d1

Start:
l r0 tank Pressure
s display r0
J start

Led Displays can be written to by IC. you need to write to the 'setting'.

alias tank d0
alias display d1
s d1 mode 0 #display has 3 modes

start:
l r0 tank pressure
s d1 setting r1
yield
j start

That should do it for ya.
Display modes:
0 - Normal number display
1 - Percentage number display - Input range of 0.0 to 1.0 is interpolated and displayed
as the range 0% to 100%
3 - Power display - Adds a watt suffix (W) to the number. Also divides the number as
needed and adds a metric unit prefix to the suffix. (e.g. kW)

Hope that helps

Edit: The 2 pages I always go to for help;
https://stationeers-wiki.com/Main_Page all sorts of info here, warning sum out of date
https://stationeering.com/ good for testing out IC codes
This wont work.
r1 has no value.


CODE:
alias tank d0
alias display d1
s d1 mode 0 #display has 3 modes

start:
l r0 tank pressure
s d1 setting r0
yield
j start
FarmerPalmer Sep 5, 2022 @ 10:12am 
Originally posted by Graf Schokola:
Originally posted by FarmerPalmer:

Led Displays can be written to by IC. you need to write to the 'setting'.

alias tank d0
alias display d1
s d1 mode 0 #display has 3 modes

start:
l r0 tank pressure
s d1 setting r1
yield
j start

That should do it for ya.
Display modes:
0 - Normal number display
1 - Percentage number display - Input range of 0.0 to 1.0 is interpolated and displayed
as the range 0% to 100%
3 - Power display - Adds a watt suffix (W) to the number. Also divides the number as
needed and adds a metric unit prefix to the suffix. (e.g. kW)

Hope that helps

Edit: The 2 pages I always go to for help;
https://stationeers-wiki.com/Main_Page all sorts of info here, warning sum out of date
https://stationeering.com/ good for testing out IC codes
This wont work.
r1 has no value.


CODE:
alias tank d0
alias display d1
s d1 mode 0 #display has 3 modes

start:
l r0 tank pressure
s d1 setting r0
yield
j start

Good spotting there, my bad typo.
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Sep 4, 2022 @ 1:35pm
Posts: 10