This commit is contained in:
Zan 2024-05-10 10:43:54 -07:00
parent 829c151baf
commit 7b16bc9bbd
35 changed files with 488 additions and 0 deletions

Binary file not shown.

Binary file not shown.

BIN
Behemoth/Cost.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@ -0,0 +1,20 @@
mn=20 mx=100 stp=20 if:td then goto2end if:ti then goto3end goto1
a=(:turtle-stp)<mn :turtle=(:turtle-stp)*(1-a)+mn*a goto1
a=(:turtle+stp)>mx :turtle=(:turtle+stp)*(1-a)+mx*a goto1
// :turtle = Turtle Button
// :ti = Turtle Increase Button
// :td = Turtle Decrease Button

View File

@ -0,0 +1,20 @@
mn=5 mx=90 stp=5 if:sld then goto2end if:sli then goto3end goto1
a=(:sleep-stp)<mn :sleep=(:sleep-stp)*(1-a)+mn*a goto1
a=(:sleep+stp)>mx :sleep=(:sleep+stp)*(1-a)+mx*a goto1
// :sleep = Sleep Timer
// :sli = Sleep Increase Button
// :sld = Sleep Height Decrease Button

View File

@ -0,0 +1,20 @@
mn=2 mx=30 stp=1 if:hhd then goto2end if:hhi then goto3end goto1
a=(:hover-stp)<mn :hover=(:hover-stp)*(1-a)+mn*a goto1
a=(:hover+stp)>mx :hover=(:hover+stp)*(1-a)+mx*a goto1
// :hover = Hover Height
// :hhi = Hover Height Increase Button
// :hhd = Hover Height Decrease Button

View File

@ -0,0 +1,20 @@
mn=.1 mx=.3 stp=.001 if :tsd then goto2end if :tsi then goto3end goto1
a=(:ts-stp)<mn :ts=(:ts-stp)*(1-a)+mn*a goto1
a=(:ts+stp)>mx :ts=(:ts+stp)*(1-a)+mx*a goto1
// :depth = Shortest RF Depth
// :mdi = Mining Depth Increase Button
// :mdd = Mining Depth Decrease Button

View File

@ -0,0 +1,20 @@
mn=1000 mx=6000 stp=1000 if:cd then goto2end if:ci then goto3end goto1
a=(:collectors-stp)<mn :collectors=(:collectors-stp)*(1-a)+mn*a goto1
a=(:collectors+stp)>mx :collectors=(:collectors+stp)*(1-a)+mx*a goto1
// :collectors = Collectors Power
// :ci = Collectors Power Increase Button
// :cd = Collectors Power Decrease Button

View File

@ -0,0 +1,20 @@
mn=5 mx=100 stp=5 if :csd then goto2end if :csi then goto3end goto1
a=(:crawlspeed-stp)<mn :crawlspeed=(:crawlspeed-stp)*(1-a)+mn*a goto1
a=(:crawlspeed+stp)>mx :crawlspeed=(:crawlspeed+stp)*(1-a)+mx*a goto1
// :crawlspeed = Crawl Speed Multiplier
// :csi = Crawp Speed Increase Button
// :csd = Crawp Speed Decrease Button

10
Behemoth/Left/MEM1.MEMORY Normal file
View File

@ -0,0 +1,10 @@
h = 0
h1 = 0
avg = 0
ta = 0
e = 0
ChipField6 = 0
ChipField7 = 0
ChipField8 = 0
ChipField9 = 0
ChipField10 = 0

10
Behemoth/Left/MEM2.MEMORY Normal file
View File

@ -0,0 +1,10 @@
md = 21
sa1 = 0
sa2 = 0
sa3 = 0
sa4 = 0
sa5 = 0
dsa = 0
mo = 0
as = 0
os = 0

View File

@ -0,0 +1,20 @@
:os=30*((:md-:dsa)>30)+(:md-:dsa)<30 :e=:dsa-(:md-:dsa) goto1
// :os = Offset
// :md = Mining Depth
// :dsa = Distance Smart Average
// :e = Preset / Bias value

View File

@ -0,0 +1,20 @@
:crawlspeed=:crawlspeed-(((:avg-:ta)*(:spd>0.1)*(:spd<0.2))) goto1
// :crawlspeed = Dynamic Crawl Speed
// :avg = Average Speed
// :ta = Target Average Speed
// :spd = Speedometer Speed

View File

@ -0,0 +1,20 @@
x=10 y=x-1
s=:spd :avg=a a=(a*y+s)/x goto2
// x = Amount of linereads to average speed
// :spd = Speedometer Speed
// :avg = Average Speed

View File

@ -0,0 +1,20 @@
t=50 i=2.5 c=0 goto(1+((:dsa>=:md)*(:spd==0)))*:crwl
goto(2+(c++>t)-((:spd>0)*2))*:crwl
:crawlspeed+=i c=0 goto1
// t = Delay on how long to wait before increasing CrawlSpeed
// i = Amount to increase CrawlSpeed
// :dsa = Distance Smart Average
// :md = Mining Depth
// :spd = Speedometer Speed
// :crwl = Auto-Crawl Butto
// :crawlspeed = Dynamic Crawl Speed

View File

@ -0,0 +1,20 @@
:crawlspeed=15 goto1+:crwl
:crwlf=100 :crwlb=500*(:avg-:ta)*(1+(:md-:dsa)) goto1+:crwl
// :crawlspeed = Dynamic Crawl Speed
// :crwl = Auto-Crawl Button
// :crwlf = Crawl Forward Lever
// :crwlb = Crawl Backward Lever
// :avg = Average Speed
// :ta = Target Average Speed
// :md = Mining Depth
// :dsa = Distance Smart Average

View File

@ -0,0 +1,20 @@
:dsa=(:sa1+:sa2+:sa3+:sa4+:sa5)/10 goto1
// dsa = Distance smart average
// sa(#) = The clamped and combined values of the range finders
// essentially making DSA an average of the range finders, removing
// outliers to prevent ore catchup.

View File

@ -0,0 +1,3 @@
:timeremaining=0 a=0 goto1+:timer
:timeremaining=:sleep-(a/300) goto(2+(a++>(:sleep*300)))*:timer
:estop=1 a=0 :timer=0 :timeremaining=0 goto1

View File

@ -0,0 +1,20 @@
:gurl=((100-:bat/100)+(:bst*85)) :rdy=(:generator>=85) goto1
/// :gurl = Generator Unit Rate Limit
/// :bat = Slave Battery
/// :bst = Generator Boost Button
/// :rdy = Mining Laser Ready BUtton
/// :generator = Generator

View File

@ -0,0 +1,20 @@
:crs=((:cruise==0)*5) :fuel=:fc1+:fc2 goto1
/// :crs = Cruise Button
/// :cruise = Cruise Lever Name

View File

@ -0,0 +1,20 @@
a=1000 b=60 c=3600
rt="Infinite" rt=(:fuel)/(r-(:fuel)) r=(:fuel)
h=rt/c/a*a m=(rt-h*c)/b/a*a rt=h+"h "+m+"m"
pt="Infinite" pt=:propellant/(p-:propellant) p=:propellant
h=pt/c/a*a m=(pt-h*c)/b/a*a pt=h+"h "+m+"m"
:gentime="\n"+rt+"\n\n\n\nPropTime:\n"+pt goto2
/// :fuel = Fuel Chamber Fuel
/// :propellant = GasNetworkStoredResource
/// :gentime = Progress Pannel

View File

@ -0,0 +1,6 @@
:calibrate=1
f=0.5 r=1 m=4 goto2+:Center
gp=:GyroPitch :FcuRotationalPitch=(gp<-r)*f-(gp>r)*f-gp*m
:FcuRotationalPitch=0 gpok=(gp<r)*(gp>-r)
gr=:GyroRoll :FcuRotationalRoll=(gr<-r)*f-(gr>r)*f-gr*m
:FcuRotationalRoll=0 grok=(gr<r)*(gr>-r) goto2

View File

@ -0,0 +1,2 @@
ta=:Hover m=10 a=:H da=ta-a w=da/8 goto1+:HVR
sud=a-oa oa=a d=w-sud :FcuUpDown=(d*(a<999)*(a>0.1)*m)*(:h<50) goto1

View File

@ -0,0 +1 @@
:h1=:HFL :h1-=(:h1-:HFR)*(:h1>:HFR) :h1-=(:h1-:HBL)*(:h1>:HBL) goto1

View File

@ -0,0 +1 @@
:h=:h1 :h-=(:h-:HBR)*(:h>:HBR) :HoverT=((:Hover-:h)*:hvr) goto1

View File

@ -0,0 +1,20 @@
goto1+:crwl+(:estop*2)
goto(2+(:crfd<10))*:crwl+:estop
:crwl=0 :cvg=0 :gud=0 :bst=0 :ml=0 :clct=0 :timer=0 goto1+(:estop*2)
// :crfl = Emergency RF On
// :crfd = Emergency RF Distance
// :crwl = Crawl Button
// :cvg = Mining Laser Converge Button
// :guide = Trench Guide
// :bst = Generator Boost Button
// :ml = Mining Lasers
// :clct = Collector On Button

View File

@ -0,0 +1,20 @@
:szp=(:szp*:sz) goto1+(:szp*:sz)
:transponder=1 goto2+(c++>5)
:transponder=0 c=0
if :sz==0 then :estop=1 goto5end goto4*:szp
:FCUBackward=50*(:sz==0) :szp=0 goto5*(:sz==0)
// :szp = SafeZone Protection Button
// :sz = Renamed "insideSafeZone" field from transponder
// :estop = Emergency Stop (shuts down all mining systems)

View File

@ -0,0 +1,17 @@
e=19 :sa5=:d8*(:d8>e)+:dsa*(:d8<e)+:d9*(:d9>e)+:dsa*(:d9<e) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@ -0,0 +1,20 @@
e=19 :sa4=:d6*(:d6>e)+(:dsa*(:d6<e))+:d7*(:d7>e)+(:dsa*(:d7<e)) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@ -0,0 +1,20 @@
e=19 :sa3=:d4*(:d4>e)+(:dsa*(:d4<e))+:d5*(:d5>e)+(:dsa*(:d5<e)) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@ -0,0 +1,20 @@
e=19 :sa2=:d2*(:d2>e)+(:dsa*(:d2<e))+:d3*(:d3>e)+(:dsa*(:d3<e)) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@ -0,0 +1,18 @@
e=19 :sa1=:d0*(:d0>e)+(:dsa*(:d0<e))+:d1*(:d1>e)+(:dsa*(:d1<e)) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@ -0,0 +1,20 @@
:dsl=21.8 :md=21.8 b=1 a=0 :ta=:ts*(:dsa/:md) goto1
// :md-.75 so it reactes before the crawl script stops the ship-
// gives the laser a chance to destroy blockage, also
// allows for OS to slow down ship slightly before full hault.
// If Dsa is > md, rotate miners back to destroy debri-
// when true, script assumes the mining lasers are falling behind crwl
//md = mining distance
// dsa = Distance Smart Offset
// OS = Offset variable for crawl.

Binary file not shown.

BIN
Behemoth/TheBehemoth_v3.fbe Normal file

Binary file not shown.