Space Engineers

Space Engineers

Cargo Utilization Light
11 条留言
Ibigpapa  [作者] 2019 年 6 月 6 日 下午 2:47 
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 2019 年 5 月 27 日 下午 11:23 
Actually, you may have already have noticed, but the script that W4stedspace used was this one, https://psteamcommunity.yuanyoumao.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  [作者] 2019 年 5 月 24 日 下午 1:10 
Thats awesome
xar582 2019 年 5 月 12 日 下午 10:18 
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  [作者] 2019 年 5 月 12 日 下午 4:57 
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
John the Don 2019 年 5 月 12 日 上午 5:20 
right now the script is only using 2 lights how do i get it to use more
Haram Bae 2015 年 5 月 31 日 上午 12:50 
Late to party, but can you force it to only read only certain containers?
jarhead 2015 年 2 月 26 日 下午 6:57 
not bad
15 2015 年 2 月 7 日 下午 2:08 
Cool idea!
Ibigpapa  [作者] 2015 年 2 月 6 日 下午 1:40 
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🍁 2015 年 2 月 6 日 上午 11:35 
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!!!