[READ-ONLY] Mirror of https://github.com/thoda-dev/sb-fuel-time. a small script that show you how long will last your fuel
0

Configure Feed

Select the types of activity you want to include in your feed.

better refresh time, customizable options, removed advanced chip version

reduced refresh time to 1s
removed the advanced chip version that is useless now
added several customization options for the displayed content

Thomas (Sep 11, 2021, 5:04 PM +0200) 6a43cd33 60e73311

+28 -46
+20
fueltime.yolol
··· 1 + a="h " b="m " c="s" d="Fuel Rods" e="Propellant" f="-" g=3600 h=60 2 + i=1000 j="\n" k=0 m=0 3 + n=k o=m p=f q=f k=:FuelChamberFuel m=:GasNetworkStoredResource r=n-k 4 + s=o-m t=k/(r+r==0) u=m/(s+s==0) v=t/g v=v/i*i w=(t-v*g)/h w=w/i*i 5 + x=t-v*g-w*h x=x/i*i y=u/g y=y/i*i z=(u-y*g)/h z=z/i*i aa=u-y*g-z*h 6 + aa=aa/i*i ifr>0thenp=v+a+w+b+x+c end ifs>0thenq=y+a+z+b+aa+c end 7 + :FuelTime=j+d+j+p+j+j+e+j+q goto3 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + // SHIP FUEL TIME By Jericho (Discord: jericho#1060) 20 + // https://github.com/Jericho1060/sb-energy-management
-20
fueltime_advanced.yolol
··· 1 - a=:FuelChamberFuel b=:GasNetworkStoredResource c="-" d="-" 2 - e=:FuelChamberFuel f=:GasNetworkStoredResource g=(a-e)*5 h=(b-f)*5 3 - i=e/(g+g==0) j=f/(h+h==0) k=i%3600 l=(i-k)/3600 m=k%60 n=(k-m)/60 4 - o=m%1 p=m-o q=j%3600 r=(j-q)/3600 s=q%60 t=(q-s)/60 u=s%1 v=s-u 5 - ifg>0thenc=l+"h "+n+"m "+p+"s"end ifh>0thend=r+"h "+t+"m "+v+"s"end 6 - :FuelTime="\nFuel Rods\n"+c+"\n"+"\n"+"Propellant"+"\n"+d goto1 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - // SHIP FUEL TIME By Jericho (Discord: jericho#1060) 20 - // https://github.com/Jericho1060/sb-energy-management
-20
fueltime_basic.yolol
··· 1 - a=:FuelChamberFuel b=:GasNetworkStoredResource c="-" d="-" 2 - e=:FuelChamberFuel f=:GasNetworkStoredResource g=(a-e)*5 h=(b-f)*5 3 - i=e/(g+g==0) j=f/(h+h==0) k=i/3600 k=k/1000*1000 l=(i-k*3600)/60 4 - l=l/1000*1000 m=i-k*3600-l*60 m=m/1000*1000 n=j/3600 n=n/1000*1000 5 - o=(j-n*3600)/60 o=o/1000*1000 p=j-n*3600-o*60 p=p/1000*1000 6 - ifg>0thenc=k+"h "+l+"m "+m+"s"end ifh>0thend=n+"h "+o+"m "+p+"s"end 7 - :FuelTime="\nFuel Rods\n"+c+"\n"+"\n"+"Propellant"+"\n"+d goto1 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - // SHIP FUEL TIME By Jericho (Discord: jericho#1060) 20 - // https://github.com/Jericho1060/sb-energy-management
+8 -6
readme.md
··· 9 9 10 10 ## Elements Required 11 11 12 - - 1 `Advanced YOLOL Chip` (1.2s refresh time) or 1 `Basic YOLOL Chip` (1.4s refresh time) 12 + - 1 `Basic YOLOL Chip` 13 13 - 1 `Text Panel 24x24` 14 14 - 1 `YOLOL Chip Socket` 15 15 ··· 33 33 34 34 ## Installation 35 35 36 - ### On a basic chip (0.2 slower refresh time than advanced) 37 - 38 - Copy and paste the content of the file `fueltime_basic.yolol` on the chip 36 + Copy and paste the content of the file `fueltime.yolol` on the chip 39 37 40 - ### On an advanced chip (0.2s faster refresh time than on basic) 38 + ## Options 41 39 42 - Copy and paste the content of the file `fueltime_advanced.yolol` on the chip 40 + - `a` separator between hours and minutes, by default `"h "` 41 + - `b` separator between minutes and seconds, by default `"m "` 42 + - `c` separator after seconds, by default `"s"` 43 + - `d` label for fuel rods, by default `"Fuel Rods"` 44 + - `e` label for Propellant, by default `"Propellant"` 43 45 44 46 ## Support or donation 45 47