Space Engineers

Space Engineers

Not enough ratings
Helper Script For SAM
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
476.843 KB
2 Feb @ 8:00am
9 May @ 8:27am
9 Change Notes ( view )

Subscribe to download
Helper Script For SAM

Description
Helper Script for S.A.M.
Wait what is S.A.M.? And, why does it need help?
Well S.A.M. (or commonly typed SAM) is an amazing Autopilot Script created by Magistrator now updated/maintained by TechCoder
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2892105352

SAM AUTOMATES Shuttle Routes between Outposts and Bases

If it is already great, why do I need a HELPER?

This Helper Script adds CONFIGURATION CONTROL for EVERY SAM CONNECTOR
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2892105352

Do you want to use full speed when the SAM ship is going to a mine outpost and slower speed when the ship is returning to base?
Do you need to switch Docking connectors when moving between multiple bases?
Well that 's exactly what you can do with this Helper Script !!! and much more....

EVERY SAM DOCK WITHIN THE WORLD CAN HAVE ITS OWN PROFILE!

Yes You can even choose wich Connector to use when docking !!! that's great ...and you can set ANY SAM Attributes Values and Lots of Specific Bloks like Remote Controller, Timers, Sorters

Installation
Block Requirements
You can either use Tag Or Custom Data to enable a block to be used by the Helper script.
Tagging
  • LCD : [SamHelper]
  • Cockpit : [SamHelper Panel0=] : 0 is the index of the Cockpit screen
  • LOG LCD : [SamHelper LOG]
  • Cockpit : [SamHelper Panel0=LOG] : 0 is the index of the Cockpit screen
  • EG ; Multiple Display on cockpit : [SamHelper Panel0= Panel1=]

Custom Data
  • LCD : SamHelper.
  • Cockpit : SamHelper.Panel0= : 0 is the index of the Cockpit screen
  • LOG LCD : SamHelper.LOG
  • Cockpit : SamHelper.Panel0=LOG : 0 is the index of the Cockpit screen
  • EG ; Multiple Display on cockpit : Same as above per line

Profile
By default : a DEFAULT profile will be generated in this script's Custom Data
Copy it and create another Section with the Dock you want to set up and the values you want to use

[DEFAULT]
MaxSpeed=95
ConvergingSpeed=60
ApproachDistance=500
ApproachingSpeed=30
DockDistance=10
DockingSpeed=5
UndockDistance=10
TaxiingSpeed=5
TaxiingDistance=10
TaxiingPanelDistance=10
Wait=10
NODAMPENERS=false
IGNOREGRAVITY=false
Connector=Underside
Rc=Remote Control
Timer=

[BASE2]
MaxSpeed=150
Connector=Right

Demo World : https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3470377681

Command references

SAM attributes
In addition to setting exact values (like you do in S.A.M.), you can increase or decrease the current value by adding "+" or "-" :
Eg : "mx +10" will add 10 to the current SAM MAX SPEED : if it was 100, calling mx +10 will add 10 so it will be 110

Command
Short Command
Arguments
Description
MaxSpeed
ms
Integer
Change SAM MaxSpeed by Integer
ConvergingSpeed
cs
Integer
Change SAM ConvergingSpeed by Integer
ApproachDistance
ad
Integer
Change SAM ApproachDistance by Integer
ApproachingSpeed
as
Integer
Change SAM ApproachingSpeed by Integer
DockDistance
dd
Integer
Change SAM DockDistance by Integer
DockingSpeed
ds
Integer
Change SAM DockingSpeed by Integer
UndockDistance
ud
Integer
Change SAM UndockDistance by Integer
TaxiingSpeed
ts
Integer
Change SAM TaxiingSpeed by Integer
TaxiingDistance
td
Integer
Change SAM TaxiingDistance by Integer
TaxiingPanelDistance
tpd
Integer
Change SAM TaxiingPanelDistance by Integer
Wait
Wait
Integer
Change SAM Wait by Integer
NODAMPENERS
nd
boolean
Enable Disable SAM NODAMPENERS (true or false)
IGNOREGRAVITY
ig
boolean
Enable Disable SAM IGNOREGRAVITY (true or false)
MODE
mode
"" or "LIST" or "LOOP"
Change SAM Mode : Normal Mode (no argument), LIST or LOOP
CYCLE
cycle
"" or "LIST" or "LOOP"
Change SAM Mode from normal mode , to List , to LOOP

Other Commands
Command
Arguments
Description
refresh
Refresh the screen
rtb
Start SAM to go to the "HomeDock" in DEFAULT Profile (if set up)
callShuttle
SHIP DESTINATION
Needs Configuration* : Run SAM Remote Commands to call the ship "SHIP" to the dock "DESTINATION"
land
Start SAM to land on the current planet (must start within the gravity well !!! )

Other Commands Configuration *
callShuttle
  • The Grid must have a SAM PB with SAM ADVERTISE
  • The Grid must Have a LCD with "S.A.M.RC" Custom DATA for SAM Remote commands

DEV DEMO WORLD : https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3518121643
Popular Discussions View All (1)
0
12 May @ 10:16am
Known issues
debstar
3 Comments
gigglelamer 10 Sep @ 6:27pm 
Thanks debstar, I'll give it a try!
debstar  [author] 9 Sep @ 8:58am 
@gigglelamer

not realy but there is a fix.
You need to set a list of your waypoints as SAM "DOCK"

You need to add the GPS as a dock in the SAM
-> SAM ADD WAYPOINT1 [YOUR GPS]
-> SAM ADD WAYPOINT2 [YOUR GPS]

Your SHIP must be using [SAM LIST] or [SAM LOOP]

Then add a profile for that Dock
[WAYPOINT1]
MaxSpeed = 1500

[WAYPOINT2]
MaxSpeed = 400

A profile is a "SAM DOCK" so adding all of your GPS with SAM ADD will

I ll work on the project soon to release the DEV version with some fixes
gigglelamer 30 Aug @ 11:51am 
debstar! Thanks for keeping SAM alive. My question is; Is it possible to create a SAM helper profile for a manual gps entry?

For example, I'm using an aerodynamics mod and I want SAM to move @ full speed (1300 m/s) towards a planet then decrease it's speed to 400m/s at a manual waypoint above the planet then proceed to a dock on the planet's surface.