Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

Common YOLOL

From Starbase wiki
Jump to navigation Jump to search

Standard Generator Script (Basic YOLOL Chip)

Note: This script will require enough batteries on the ship to act as a buffer for the generator spool up time.

Default Fields

:FuelChamberUnitRateLimit=100-:StoredBatteryPower/100 goto 1

Non Default Fields

Note: This version of the script assumes either "GeneratorUnitRateLimit" or "FuelChamberRateLimit" (preferably the latter) are renamed to "limit", and at least one battery exists on the network with it's "StoredBatteryPower" field renamed to "bat".

:limit=100-:bat/100 goto 1

Tutorial Laborer

Note: The Laborer has renamed field names by default so this version will work for the tutorial ship.

:Generator=100-:Battery_1/100 goto 1

Settable on/off Generator flag

c=(c<1)*(:Battery_1<5000)+c*(:Battery_1<9999) :Gen=c*22+0.001 goto 1

Fitting this code on the Laborer Module requires renaming at least one device. (here the Generator was renamed Gen)

5000 and 9999 are the start-charging and stop-charging levels. 22 is just enough charge to run the stock two box thrusters.

Receiver Signal Display

Using a display named Nav

if :SignalStrength>0 then goto2 else :Nav="No Signal" goto1 end
:Nav=:Message+"\n"+(1000000-:SignalStrength)/1000+" km" goto1

Single lever forward/backward script (Basic YOLOL Chip)

Note: This script assumes you have a center lever bound to FcuForward

Default device fields

:FcuBackward=-:FcuForward goto 1

Material Point Scanner Script

Note: Additionally to two output panels for "Material" and "Volume" and two buttons to toggle "Active" and "Scan" install a third button and rename "ButtonState" to "Next" and set its "ButtonStyle" to 1.

:Material=:Material :Volume=:Volume
:Index=(:Index+:Next)*(:Index<:ScanResults) :Next=0 goto 1

Continuous Material Point Scanner Script

Note: This is a modified version of the above script

:Material=:Material :Volume=:Volume
:Index=(:Index+:Next)*(:Index<:ScanResults) :Next=1
//pause
:Scan=1
goto 1


This page is a WIP. Please contribute to it!

Cookies help us deliver our services. By using our services, you agree to our use of cookies.