Space Engineers

Space Engineers

评价数不足
GRP - GPS Route Plotter
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
379.720 KB
2022 年 12 月 27 日 上午 5:42
2022 年 12 月 27 日 下午 12:43
5 项改动说明 ( 查看 )

订阅以下载
GRP - GPS Route Plotter

描述
Script written by StarWarsFTW for ITF and the First Moon Empire on the Alehouse PvP Vanilla server

This script is designed to plot routes between NPC stations, given their coordinates, however I'm sure it can be used for other purposes as well.

The next GPS on the route is always the closest one possible without visitng a previous GPS again. It will not be the most efficient way of covering the given list of coordinates, but it should take away the boring process of renaming every single station coordinate to figure out the route manually.

Usage:
  1. Specify your settings at the start of the script (the Setup section). This includes the name of the output LCD panel (supports multi-LCD blocks), hex code for your output GPS colour, prefix of the output GPS names, separator of the argument's elements when running the script and planet center/gravity radius setup (by default set to the vanilla star system, needed only if avoiding gravity wells when plotting a route)

  2. Feed all gps coordinates you wish to include in the plotting into the programmable block's Custom Data field. Each coordinate has to be on a new line, otherwise the script will not create the route.

  3. Run the script with an argument using your set separator (default ':') following this guide:

    [starting gps name]:[number of waypoints in route]:[maximum distance in kilometers from the system center*]:[true/false specifying if you want to avoid gravity wells]

    Example - StarWarsFTW #1:12:1234.56:true <- this will plot a route starting at StarWarsFTW #1, 12 waypoints long, not going further than 1234.56 km from the system center, while avoiding planet gravity wells


    *The system center (coordinates 0,0,0) is located in the center of the EarthLike planet by default. If you present this value with a negative number, the distance from the system center will not be limited.

  4. The script will output the route on the specified LCD panel, or show an error in the programmable block's control panel. Open the LCD's Edit Text field, close it and enable the (greyed out, on the bottom) coordinates in your GPS menu.


NOTE: There is a decent chance this messes up sometimes, definitely let me know if it does in the comments.
2 条留言
StarWarsFTW  [作者] 2023 年 1 月 4 日 下午 4:35 
resident endar found my script lol
Endarkaris 2023 年 1 月 2 日 下午 4:23 
Hi