Space Engineers

Space Engineers

Not enough ratings
Jawas Orbital Navigation Sigma Draconis
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
314.186 KB
23 Aug, 2021 @ 3:41pm
31 Aug, 2021 @ 7:47pm
3 Change Notes ( view )

Subscribe to download
Jawas Orbital Navigation Sigma Draconis

Description
For a vanilla version of this script follow the link below:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1725062680&searchtext=jon

Description:
This script was made to assist in navigating around planets. It generates orbital, drop, and surface coordinates. Since you cannot jump into a gravity well you either have to already have coordinates just outside the gravity well or jump even farther from the planet and fly in on slow sub-light engines. This script avoids this difficulty by providing exact coordinates to jump to. This script is useful for jumping to planets, dropping packages from orbit, or landing at a desired landing zone. The dead zone is also included. The script will give you coordinates just outside the sector, and just outside the no jump zone.

What it does:
When you run this script it will output orbital, drop, and surface coordinates for all planets in the system. These coordinates will be based on your current position so they will be as close to you as possible. You can also specify custom GPS coordinates to be use for calculations in addition to your current position. The jump coordinate is fairly obvious, it is a point just outside the planet's gravity that you can jump to. The drop coordinates are inside the planets gravity so that you can release a drop pod (or bomb!) and it will be pulled to the surface. The surface coordinates are directly under the drop coordinates which are directly under to orbital coordinates..

The script will also accept GPS coordinates as input. This allows you to generate all the coordinates (jump, drop, and surface) given any other single point. So if you have surface coordinates you can generate the drop and jump coordinates or the other way around. It also allows you to generate coordinates for someone else. All the have to do is give you their coordinates.

Features:
  • Coordinate generation for nearest jump, drop, and surface position
  • Coordinate generation for all planets (as well as the dead zone)
  • Coordinate generation based off of input GPS
  • Ability to use custom planets
  • Ability to specify orbital distance via command

How to use this:
To start:
  1. Place a programmable block and load the script.
  2. Click run to see results.

This is all you need to do, but there are more options. The script accepts two command formats.

Commands: (optional):
Format 1: GPS:GPS_NAME:X:Y:Z:Optional_Planet_Name:Optional_Padding_Distance
Format 2: Padding_Distance

-Format 1:
--GPS:
Entering GPS coordinates as an argument makes the program output data based on the GPS coordinates in addition to the data based on your ship's coordinates. The GPS coordinates are only accepted in the format used by the game when you use the "Copy to clipboard" option. You can replicate this format by typing, but it is recommended to simply use the "Copy to clipboard" button in the GPS tab.

--Planet_Name: (optional)
This argument is optional. This allows you to specify the planet your GPS coordinates are related to.
The name is case sensitive. The default planet names are lowercase for this script. If you add your own planets it is recommended to enter their names in lowercase letters as well. If you do not enter this argument the program will calculate which planet is closest to the coordinates you entered and will use that planet's data for calculations.

--Padding_Distance: (optional)
When using Format 1, this argument can only be used after the Planet_Name argument.
This argument allows you to change the distance between the orbit coordinates and the edge of gravity for the planet. The default is 500m. This means that if you fly or jump to the orbit coordinates you will be 500 meters outside of the range of the planet's gravity.

-Format 2:
This format is used when you only want to change the orbit distance without adding GPS coordinates.
This argument allows you to change the distance between the orbit coordinates and the edge of gravity for the planet. The default is 500m. This means that if you fly or jump to the orbit coordinates you will be 500 meters outside of the range of the planet's gravity.


Output:
Output is placed in the "Custom data" section of the programmable block and is in the following format:
-------------------------------- khar -------------------------------- GPS:kharNearSurf:3430487.27:-23458.26:2819298.68: GPS:kharNearOrbit:3401019.77:-23228.66:2795063.34: GPS:kharNearDrop:3401560.4:-23232.87:2795507.97: -------------------------------- abraxas -------------------------------- GPS:abraxasNearSurf:5245574.33:2712263.85:387806.17: GPS:abraxasNearOrbit:5223413.45:2700809.82:386172.42: GPS:abraxasNearDrop:5224033.97:2701130.54:386218.17: -------------------------------- satreous -------------------------------- GPS:satreousNearSurf:-2822859:-11463.69:3426378.28: GPS:satreousNearOrbit:-2800251.8:-11346.13:3398990.1: GPS:satreousNearDrop:-2800697.4:-11348.44:3399529.94: -------------------------------- vali -------------------------------- GPS:valiNearSurf:2834617.09:19158.79:-3426504.41: GPS:valiNearOrbit:2811968.82:19031.39:-3399074.79: GPS:valiNearDrop:2812414.5:19033.9:-3399614.56: -------------------------------- qunn -------------------------------- GPS:qunnNearSurf:16923.63:5927828.18:50186.09: GPS:qunnNearOrbit:16870.22:5902883.59:49980.7: GPS:qunnNearDrop:16871.72:5903583.56:49986.46: -------------------------------- nekros -------------------------------- GPS:nekrosNearSurf:-11424.43:-5947786.87:-45302.95: GPS:nekrosNearOrbit:-11331.36:-5912424.82:-45025.41: GPS:nekrosNearDrop:-11333.2:-5913124.8:-45030.9: -------------------------------- exolia -------------------------------- GPS:exoliaNearSurf:-3437693.95:30061.11:-2823538.53: GPS:exoliaNearOrbit:-3410624.01:29850.15:-2801321.06: GPS:exoliaNearDrop:-3411165.09:29854.37:-2801765.15: -------------------------------- crait -------------------------------- GPS:craitNearSurf:-5289843.43:-2748847.31:-401929.38: GPS:craitNearOrbit:-5268176.62:-2737584:-400278.68: GPS:craitNearDrop:-5268796.3:-2737906.13:-400325.89: -------------------------------- sigmadraconis -------------------------------- GPS:sigmadraconisNearSurf:115681.3:88371.23:38303.17: GPS:sigmadraconisNearOrbit:201611.67:154015.05:66755.27: GPS:sigmadraconisNearDrop:201073.72:153604.1:66577.15: -------------------------------- deadzone -------------------------------- GPS:deadzoneNoJumpEdge:384251.88:293537.34:127228.64: GPS:deadzoneZoneEdge:1921641.67:1467978.22:636268.42:

Customization:
If you open the code for the script there is the option to add custom planets and change the default orbit and drop padding distances. When adding planets you will need to know the name, position, radius, and gravitational influence radius. new planets can be added to the "ADD NEW PLANETS HERE" section, and default planets can be removed in the "Default Planets Here" section. A template is provided in the code for adding new planets.

in the section titled "Change Constants Between These Lines" you can change the default distances for how far inside the gravitational influence of planets you want the drop coordinates to be and how far outside the gravitational influence the orbital coordinates to be. The orbital coordinates can also be changed on the fly using the commands listed above.

Limitation:
Since planets are not perfect spheres and their terrain changes elevation it is not possible to generate surface coordinates at the exact elevation for a specific point. Because of this the surface coordinates may be somewhat above or below the actual point on the surface as they use the base radius of the planet.

Let me know if you have any feedback or bugs to report.
3 Comments
Jawa  [author] 24 Aug, 2021 @ 12:41pm 
Thanks. I hope y'all find it useful.
Synirr 24 Aug, 2021 @ 9:06am 
Thanks for contributing to the community Jawa!
Silk 24 Aug, 2021 @ 3:19am 
This looks cool, trying it out.