Stationeers

Stationeers

View Stats:
Guardian50 Apr 14, 2020 @ 12:53pm
IC programming
i am new to IC code, so i started with simple steps.

i took a stationary battery and my goal, was to read the ratio.

first step: i build a stationary batter, 1 logic reader, 1 logic writer, logic memory and a display. the idea was to read out the ratio and show it on the display.

worked out so far.

then i tried to move this setting over to the IC. my bad luck was, that according to the unofficial wiki, the ratio value cannot be read via IC at the moment, so i switched over to some alternative value, just for testing.

the 2nd experiment was set the following way.
stationary battery
IC
display
memory
logic IO - logic writer.

d0 was connected to the battery, d1 to the memory.

my IC code was

l r0 d0 Mode
s d1 r0

but it is not working.

it always says that the error is in Line 1.

Do i address the value incorrect?
< >
Showing 1-8 of 8 comments
FarmerPalmer Apr 14, 2020 @ 1:49pm 
Last edited by FarmerPalmer; Apr 14, 2020 @ 1:52pm
Tom Apr 14, 2020 @ 2:36pm 
I think you need your second line to be
s d1 Setting r0
if d1 points to the memory.
At the moment the code won't know which parameter to set on the d1 device.

Also, instead of Mode, I think you can read Charge and Maximum into registers and then divide the two using div.
HoschiTv Apr 14, 2020 @ 8:51pm 
Hello together,
first of all you can read the ratio
from the battery with the IC. You don't
need a logic reader or writer cause
you can write it with the IC to your Led.

This should work,
Setting is Battery screw d0
and Console Kit little led d1.

The Code look like this,

start:
l r0 d0 Ratio
s d1 Setting r0
s d1 Mode 1
j start

Greetings from Hoschi,
Have fun with the game :)

Last edited by HoschiTv; Apr 14, 2020 @ 8:57pm
Guardian50 Apr 15, 2020 @ 1:10am 
thx hoschi,

but what is unclear to me, at the moment,

but why "s d1 Mode 1"

s - store
d1 - screw
Mode 1 ?
HoschiTv Apr 15, 2020 @ 1:34am 
Hey Guardian,
this will allow you LED to
show you the value in %,
cause otherwise ti will use the integer Number 0.00 - 1.
Try it without the line and you can see the difference ;)
Guardian50 Apr 15, 2020 @ 2:41am 
thx
HoschiTv Apr 15, 2020 @ 3:49am 
You're welcome. Have fun. :)
Pawn63295 Apr 15, 2020 @ 6:08am 
Thank you for posting these videos. They helped me an absolute ton to learn the basics and actually get some stuff done without looking up the exact code and copying it. Instead I am able to think of my idea and code it for myself now. Within the complete nub realm anyway :) thanks again
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Apr 14, 2020 @ 12:53pm
Posts: 8