Space Engineers

Space Engineers

35 ratings
Chrisbot Planetary Orbit
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.321 KB
14 Jul, 2017 @ 2:24pm
15 Jul, 2017 @ 12:46pm
6 Change Notes ( view )

Subscribe to download
Chrisbot Planetary Orbit

Description
Version 1.1 (2017-07-15)

Please, 'thumbs up' this script if you find it useful.

In addition to a programmable block, requires remote control and timer blocks and optionally a text panel.

Will reliably maintain altitude of ship. Will set current altitude or an altitude can be specified in the programmable block's argument.

Setting Up
  1. Build a programmable block, remote control facing forward and a timer block.

  2. Load the script into the programmable block and configure the script by setting textPanelName and remoteControlName to their respective block names or set the block's names to the default values provided.

  3. Adjust the speed limit on the remote control block.

  4. Configure the timer block to run the program block and start the timer again with a delay of ten seconds.

  5. Optionally, build a text panel to display orbital diagnostic information.

Operation

Manouver your ship into a planet's gravitational field. Start the timer which will run the programmable block at the interval set by delay. The programmable block will set a single waypoint on the remote control each time it is run. The waypoint will be forward parallel to the sealevel of the planet. Enable autopilot and the ship will travel forward to the waypoint a maximum of 500 meters or continuously as the timer triggers an update.

An altitude in meters argument can be specified in the programmable block. Without the argument, the altitude is set automatically based on current altitude. When using atomatic altitude, the altitude is stored in the remote control block's CustomData field. You can run the script with "reset" as the argument to clear the stored altitude or manually clear it from the remote control block. Setting a toolbar item to perform a reset is recommended.

The text panel will display the script's diagnostic information and is updated at the rate the timer runs the programmable block..
23 Comments
Chrisbot  [author] 25 Apr, 2021 @ 7:28am 
Thanks @[TE] Kuraudo. I will update soon.
CTH2004 20 Apr, 2021 @ 3:42pm 
could you publish it on steam (With Chrisbot's permistion)
[TE] Kuraudo 19 Apr, 2021 @ 11:59pm 
I dig the script a lot as it's a clever way to implement this. I went ahead and fixed it to work with space engineers 2021 by tweaking a few things; notably, remote control blocks now require two waypoints to work at the time of this writing. I also got rid of the need for the timer block by having the script auto update itself using the Program() method we have now. Instead of uploading a new version, I'll just paste the fix in here:

https://pastebin.com/hD0nJr5h

The two edits that matter are the addtional waypoint to make the remote control enter waypoint mode and the Program() set update frequency to 10 which gets rid of the need for a timer block.

Mr. Dude 5 Jul, 2018 @ 6:12pm 
I get no response from the script whatsover I get nothing on the text panet and the script does not act at all I am at a loss. Any help would be great.
CTH2004 11 May, 2018 @ 1:58pm 
Ok!

Thanks!

It's just I've seen that happen to others ):

I'm glad that you think that, since that's my belief to!

Can't wait to see what you make next!
Chrisbot  [author] 9 May, 2018 @ 2:31pm 
I think that like any plugin or script for a game, the user should expect that the author will support it for as long as she is interested. To claim otherwise would be folly, in my opinion. I do not forsee letting it die.
CTH2004 9 May, 2018 @ 1:30pm 
Keen=Scripts Eventually Break (SEB)


Some scritps get "Completed", and when Keen Breaks them, since it's "complete" it doesn't get fixed. So, when it breaks, I just want to know if it would be fixed! (There are many scripts that die that way, I don't want one of the few orbit ones to die.)
Chrisbot  [author] 8 May, 2018 @ 1:57pm 
@CTH2004 Why do you ask?
CTH2004 6 May, 2018 @ 6:02pm 
Ok, but, what I mean, is if (when) Keen breaks it, will you fix it?
Chrisbot  [author] 16 Apr, 2018 @ 2:12pm 
Its been finished for a while.