Space Engineers

Space Engineers

463 ratings
SAMv2 - Sam's Autopilot Manager version 2
2
2
   
Award
Favorite
Favorited
Unfavorite
Tags: autopilot
File Size
Posted
Updated
746.163 KB
12 Feb, 2019 @ 1:36pm
20 May, 2021 @ 1:35am
68 Change Notes ( view )

Subscribe to download
SAMv2 - Sam's Autopilot Manager version 2

Description
What
  • Have your ship autonomously and automatically fly between any multiple Connectors in the Star System, without having to worry about recording waypoints.
  • Turn your ships into autonomous navigation vessels. Without a need for a cockpit, just tell it where you want to go, and it goes, with or without you as a passenger.
  • Automate cargo runs with ease. In the plannet and in Between planets.
  • Worried about mountains and collisions? Worried about your Remote Controller getting stuck? Don't worry anymore.

Usage
The documentation become too big so I added a guide here:
https://steamproxy.net/sharedfiles/filedetails/?id=1947156145

When something does not work
  • Do you own all blocks in the grid? You should.
  • Does your ship have enough power/hydrogen? It must.
  • Does your ship have enough Thrust power in every direction? Including UP. It must.
  • Do your Antennas have enough range to cover each other and are they enabled to broadcast? They should.
  • Are all your blocks in the same construct? (adjacent to rotors or pistons but not connectors);
Things are still wrong? I suck at coding. Leave a comment with a link to the game file, perhaps I can help.

Donations
I have a day job. Please buy food and donate it to your local homeless shelters instead.

Contributions
Regarding contributions. I have made the code available in GitHub:
https://github.com/sugardose/SpaceEngineers/blob/master/SamsAutopilotManager2.cs

I will periodically review submissions and update the script with those submissions.

Discord and Server
I can be found on this discord and related server where I usually play and test SAM: https://discord.gg/JgAt6zBQBm
Popular Discussions View All (5)
52
9 Feb, 2023 @ 8:59am
Report suggestions to improve this script here.
Magistrator
1
18 Sep, 2022 @ 9:09am
Timers Not Working
KnightReaver
0
20 Aug, 2021 @ 2:20pm
Request
Karmasutra
845 Comments
TechCoder 5 hours ago 
If you are having issues with nav points/docks being removed it is LIKELY (as in 98%+ chance...) that it is some MOD you have that was affected by some recent Keen change.

We are using several mods on a server and S.A.M. works just fine. Of course, I use my updated version (https://steamproxy.net/sharedfiles/filedetails/?id=2892105352) , though nothing is that drastically different about waypoints.

As for "dropping to manual", etc. SAM will START, twisting toward the direction and such, but if it decides the ship is not balanced enough to finish, it will just STOP. See https://youtu.be/6o-AR44UEI8
Null 7 hours ago 
I assume this would not work well with very little reverse thrust but a large amount of forward thrust? As in it won’t flip the ship around the use the main drive to slow down?
Zerg 25 Jul @ 7:14pm 
I'm unsure if its just me on my server as I'm the only person using this script but my docks also all vanish each server restart among a few other strange bugs I've never had before such as I'm able to descend from a space station but once I load with ore it only aligns with gyro and doesn't ascend infact I'm able to manually thrust which sam never let me do before
Dubi23 29 Mar @ 2:56pm 
Has anyone had issues with their navigation points unloading from the program? I have had to reset my Nav points several times after my ship sits at base for a day or two all of my points will unload and the NAV & CONF screens will be empty. Is there a way to fix this or at least save the points/stance to quickly re-add them ?
TechCoder 28 Mar @ 11:46am 
If you want a ship to 'hover' at an altitude, I would suggest you look for that keyword on the workshop. I have used a few and none are 'standout' though I would say one to try is from jTurp - if nothing else, it gives one heck of an 'amusement park' ride!
Saa044 26 Mar @ 12:01am 
Hi there. Is there a way to add a minimum altitude from ground line to the script?
TechCoder 23 Feb @ 12:37pm 
Also, you need to define "something in the way" better - if it is just a post or something, the camera likely won't see it - but mountains..... Get on Discord and we can discuss this better.
TechCoder 23 Feb @ 12:35pm 
Other than that (sorry, you did say you tagged them...), then it is likely a weight/power problem. Gotta have enough lift (in all directions) to get it flying. Maybe you have atmos and think you don't need a 'down' one - that would be common, and wrong.... - thrust in all 6 directions, and enough that the autopilot has time and power to compensate.
TechCoder 23 Feb @ 12:33pm 
SAM tag in the CD of the Camera. If SAM can't know where it's 'eyes' are, it can't see where it is going!
Bobbers 21 Feb @ 4:54pm 
I've got SAM working great for nav I think. However, I wanted to test the collision avoidance. I've added the SAM tag to the cameras in the forward, down, and up directions and the SAM.LOG shows it finds 3 cameras. However, if I try to nav where there is something in the way it flies straight into it pretty every time from what I can tell. Is there a test someone can suggest to show if it's working correctly or not (that it should be fine with if it's working)?