Skip to content

CLS v2.0.0

Latest

Choose a tag to compare

@Qwarkk6 Qwarkk6 released this 17 Mar 20:23
8a34a96

When I set out to write CLS a long time ago, I had zero experience ever writing anything in code or using kOS. I reverse engineered the script from LaunchtoCirc by /u/only_to_downvote, as that has always been the best way I learn. It was still my first work though and of course that meant it had poor practises and pretty inefficient ways of doing stuff.

CLS v2.0 is basically a complete rewrite of the central code. It is by far the biggest update it has received, and it is also the one which adds next to no new functionality. This is because it focuses on optimisation and reducing the hardware strain present in v1.

Following the rewrite it is now hugely more efficient, much cleaner and much more reliable.

Below are the major changes, but there are loads more - please check the changelog.md file for a complete list.

Key Points

  • Major rewrite of main code with a view of increasing its efficiency, removing some bad coding practise and reducing hardware strain
  • Remove callouts for downrange & altitude due to high hardware strain
  • New staging pitch control to avoid sudden pitch inputs before, during and after staging
  • Pre-flight input box now allows you to specify the chance of a random failure on ascent if enabled, and define longitude of Ascending Node for precise launches
  • Ships with SRBs will now lift off at a TWR of 1.8 (previously used 1.4, but this required unrealistic & aggressive throttling of Main engines)
  • Script now ignores children parts of attached SRBs during staging checks, which was throwing a warning if SRBs had parts attached (Thanks u/StreitLeak)
  • Initial countdown now happens on a single HUD line to conserve space and limit use of scrollprint function due to its hardware strain
  • New compatibility with the TAC Self Destruct Continued Mod - Flight Termination System will deploy if a mid-flight abort occurs
  • New compatibility with the Hullcam VDS Continued mod to add a cinematic element to your launches - The script will auto switch to Hullcam VDS cameras at various points. Cameras for launch need to be tagged "CameraLaunch". Cameras for Stage sep need to be tagged "CameraSep". Cameras for onboard views need tagged "Camera1" or "camera2" with the number associated with their stage.
  • CLS now checks that a crewed pod has chutes attached in case of an abort scenario and will hold the launch if no chutes are detected.
  • If the user decides to continue with a countdown for a crewed vessel after CLS identifies issues with the abort AG or no chutes are detected, the random launch failure feature is automatically deactived, to avoid the script throwing an error later down the line if an abort occurs.