Difference between revisions of "Common YOLOL"
Line 20: | Line 20: | ||
==Settable on/off Generator flag== | ==Settable on/off Generator flag== | ||
c=(c<1)*(:Battery_1<5000)+c*(:Battery_1<9999) :Gen= | 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) | Fitting this code on the Laborer Module requires renaming at least one device. (here the Generator was renamed Gen) | ||
Revision as of 16:12, 1 August 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
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.
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!