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

Difference between revisions of "Common YOLOL"

From Starbase wiki
Jump to navigation Jump to search
m (Changed note locations. Added note to generator management section about generator spool up.)
(added a generator script)
Line 18: Line 18:


  :Generator=100-:Battery_1/100 goto 1
  :Generator=100-:Battery_1/100 goto 1
==Generator-Settable on/off charge flag==
Maybe you want a little more control with a preset on and off point. Here's some code that does so with a little fancy logic.
===Laborer Module===
c=(c<1)*(:Battery_1<5000)+c*(:Battery_1<9999) :Generator=Generator*21+0.001 goto 1
5000 and 9999 are the start-charging and stop-charging levels. 21 is just enough charge to run the stock two box thrusters.


==Single lever forward/backward script (Basic YOLOL Chip)==
==Single lever forward/backward script (Basic YOLOL Chip)==

Revision as of 02:18, 30 July 2021

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

Generator-Settable on/off charge flag

Maybe you want a little more control with a preset on and off point. Here's some code that does so with a little fancy logic.

Laborer Module

c=(c<1)*(:Battery_1<5000)+c*(:Battery_1<9999) :Generator=Generator*21+0.001 goto 1

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


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


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.