Space Engineers

Space Engineers

Not enough ratings
Memory Code (Obsolete)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.032 KB
12 Apr, 2015 @ 10:21pm
1 Change Note ( view )

Subscribe to download
Memory Code (Obsolete)

In 1 collection by Elfi Wolfe
Orbital Industrial Services (O.I.S.) Discontinued items
15 items
Description
This is a code snipit to allow persistant memory

Memory code snippit to put used as people need memory
Allows blocks of 24 bool

To Create:
Program block
a light or series of light with the name in the list below ie 'memorylights"
like light memorylights 1, light memorylight 2
This will read the color on the light into the memory array.
memoryArray[0] is reserved for telling the program if another program has the memory locked.

!@#$!% Just found out about string Storage;
Um nope Storage empties each time the code is compiled. I still have a use for this to store the state of the airlocks. as well to pass info between programing blocks.
someone suggest I use the A channel as well to get another 8 bool will look at that once I get done with this week's TDY. After looking at a light. the A channel cannot be read by just looking at the light where as the RGB channels can be read easily. Will keep it at the RGB channels.
1 Comments
Elfi Wolfe  [author] 26 Apr, 2015 @ 7:05pm 
Wonder if I should change it to do it from IMyInterorLight instead?