Space Engineers

Space Engineers

547 ratings
Blarg's Ascent Cruise Control
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
212.727 KB
Feb 28, 2018 @ 5:30am
Sep 12, 2023 @ 1:45pm
9 Change Notes ( view )

Subscribe to download
Blarg's Ascent Cruise Control

In 1 collection by Blargmode
Blargmode's scripts
5 items
Description
2023-09-12 Fixed!
Sorry for taking ages, this script now works again.


Tired of wasting fuel when leaving a gravity well? What you need is cruise control!

This script adjusts the thrust of your rear thrusters to the lowest possible without losing speed.

What thrusters you have doesn't really matter as long as they can take you to space.
It works with inertia dampeners on as well, if you don't want to go straight up.

What difference does it make?
Here's the results from the ship in the thumbnail, leaving earth in the standard solar system start.
Method
H2 before
H2 after
H2 used
Full throttle, 100m/s
100%
2 500 000L
34.8%
871 181L
65.1%
1 628 819L
This script set to 99m/s
100%
2 500 000L
82.5%
2 061 503L
17.5%
438 497L
This ship, with the script can get to orbit 5 times on one tank, full throttle wouldn't even do it twice.



1. Install script.
2. Sit in flight seat and add the script to the toolbar: 'Run' and leave argument empty.

The script looks for an occupied flight seat every 10 seconds, to determine what is forward. Once one is found, it stops looking and will remember it, even if you get out or recompile the script.



Press the button from step 2 above and the cruise control will engage. Press it again and it turns off.
When engaged, your front thrusters will be off, your rear thrusters will be adjusted automatically.



LCDs/Lights
The script can show status on LCDs, both regular and corner.
It can also show if it's engaged or not using a light.

In either case, just add the tag #ACC to the name of the light/LCD.

You can have more than one light/LCD.

Timer blocks
If the option to disable the cruise control once exiting the gravity well is on, it will trigger any timer block tagged with #ACC as well. Allowing you to have things happen automatically once you've reached space.

Arguments
Cruise Control can also be engaged via a button, a sensor, or any other action.

These are the arguments to control the script. All of them must be triggered as an action, i.e. from the toolbar, a sensor, a button etc.. All of them can be used while cruise control is engaged.
Argument
Does this
(Empty argument) Toggles cruise control on or off, depending on its current state.
on*
Turn cruise control on, if it's not.
off*
Turn cruise control off, if it's not.
95**
(accepts any number, including negative) Sets the new target speed.
swap**
Swap between using rear and bottom thrusters.
* Optional.
** Optional and can also be changed in the settings.

Controlled descent
This was an unintended feature, but since the script can do it, why not keep it.
If you set the target speed to a negative value, point the ship's back towards the planet, and engage cruise control; the script will hold that speed. Be careful when aligning the ship though. And don't forget to take over for the actual landing.



Are found in Custom Data of the programmable block.
After changing one, press run with an empty argument field, or start the cruise control.

Setting
Default value
Possible values
Tag
#ACC
Any word, I recommend keeping the pund sign.
Target Speed (m/s)
95
Any number, including negative.*
Disable when exiting gravity
yes
yes, no
Select thrusters
auto
auto, rear, bottom
Thrust effectiveness cutoff (%)
5
0-100
* Setting a target speed to the same or above the speed limit of your world will ruin the performance. Keep it a couple of m/s below.



Thanks for checking it out!
I hope it comes in handy, and please like if you do!
Popular Discussions View All (2)
24
Apr 18, 2023 @ 9:00pm
PINNED: Suggestions
Blargmode
17
Aug 31, 2023 @ 3:24pm
PINNED: Problems/Bugs
Blargmode
186 Comments
nFactor Jul 2, 2024 @ 9:05am 
If I dont have trusters bottom?
hanels Nov 20, 2023 @ 1:57am 
hello, negative numbers use only gravity to get speed? It does not use forward thrusters?
SileniusFF Sep 14, 2023 @ 7:24am 
It is alive! Yay!
Lama Sep 13, 2023 @ 12:54pm 
yay new update
StubieDubie Sep 12, 2023 @ 6:13pm 
Hooray indeed!
Spicie Sep 12, 2023 @ 5:44pm 
Hooray!!
TenTech Sep 12, 2023 @ 2:21pm 
Blarg lives!
Blargmode  [author] Sep 12, 2023 @ 2:01pm 
I just updated the script, it now works again. Sorry for the delay.
StubieDubie Sep 6, 2023 @ 7:58pm 
I republished Blarg's v2.0 beta that he referred to in an old comment on this script. Initially I refactored the v1.0 script, but the v2.0-beta was far superior so I published that instead. If Blarg objects, I will take it down.

Find it here: https://steamcommunity.com/sharedfiles/filedetails/?id=3031986332 .
Kaito Sep 5, 2023 @ 12:09am 
Keen removed some LCD methods iirc