Space Engineers

Space Engineers

Cargo Utilization Light
11 Comments
Ibigpapa  [author] 6 Jun, 2019 @ 2:47pm 
Jared_T Glad to hear someone took up the reigns and improved it. Wish i had put the code on github way back when, So you get to take the title :D
Jared_T 27 May, 2019 @ 11:23pm 
Actually, you may have already have noticed, but the script that W4stedspace used was this one, https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1405630071 .
Granted, I used your script as a base / inspiration for the script, it is quite different from yours although does the same thing. I do apologize for not asking you if I could take your script and overhaul it. However, the last time your script was updated was back in 2015, and while I have used your script for a long time it has become a bit outdated. Therefore, I thought it would fair game to do my own support for the script. My current version of the script has quite a few more features than the original, such as including and balancing drill inventory.
Ibigpapa  [author] 24 May, 2019 @ 1:10pm 
Thats awesome
xar582 12 May, 2019 @ 10:18pm 
W4stedspace used this script dack in december 2018 in the episode called, Space Engineers: The Danger Zone - Uncooperative Survival #61 at about the 2hrs 30min point and he had I think 6 lights on this small ship. it also showed him setting the script up to work.
Ibigpapa  [author] 12 May, 2019 @ 4:57pm 
I don't even think i have the code for this any longer. Been since 2015 for me. Sorry it's only using 2 lights
charmander1 12 May, 2019 @ 5:20am 
right now the script is only using 2 lights how do i get it to use more
Haram Bae 31 May, 2015 @ 12:50am 
Late to party, but can you force it to only read only certain containers?
jarhead 26 Feb, 2015 @ 6:57pm 
not bad
15 7 Feb, 2015 @ 2:08pm 
Cool idea!
Ibigpapa  [author] 6 Feb, 2015 @ 1:40pm 
Buzzed Bear,

This script generates a color value between the starting color and ending color using interpolation function built into the vrage library.

It technically handles every percent between 0 and 100. I believe there is an exception to that is if you choose 2 colors very close to each other.

an example though not correctly calculated

starting R: 0; G: 255; B: 0
ending R:255; G:0; B:0
currently at 55%

ending color will look something like R: 140.25; G: 140.25; B:0;

for the actual math behind it look at interpolation(LERP) http://en.wikipedia.org/wiki/Linear_interpolation
🍁BuzzedBear🍁 6 Feb, 2015 @ 11:35am 
Was wondering... how difficult would it be to make the option to have different % values. 100% and 0% leave alot in between. I would like to suggest 100, 75, 50, 25, 0. I have ZERO programming skills, which is why I am asking if its at all possible ,and not just trying to change it...

Oh... And AWESOME idea! It just occured to me as well.... If you can trigger a light with the script - can a timer block be triggered? I am thinking if you could trigger a timer block, you could then not only change the light color, but allow user to add to it - such as, cargo on drill ship 100% = the light changing color, and timer block x triggered - which then turns off the drills....

AWESOME AWESOME!!!