Space Engineers

Space Engineers

评价数不足
Anyblock GPS Advanced
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
2.525 KB
2015 年 1 月 4 日 上午 5:59
2015 年 1 月 21 日 下午 1:00
5 项改动说明 ( 查看 )

订阅以下载
Anyblock GPS Advanced

描述
An Extended version of Anyblock GPS. This version allows the use of an orientation grid and input of a target destination or the world center.

Version 1.4

Set this on a self triggering timer for fastest updates.
To use the Basic Functions: Add "GPS:" to the end of any block's name.


For advanced functions you must rename the following additional blocks:

-1 block "GPS Abs:" to get orientation to the World Center and/or
-1 block "GPS Dest:" to get orientation to the input destination (currently coords must be entered in the top of the script, future will allow other entry modes and possibly a waypoint system.)

-3 blocks for orienting the script to the ship (REQUIRED for the two above to work) named "GPS Origin" "GPS Right" and "GPS Forward"
These blocks should be inline with each other as thier names indicate based off the origin. They do NOT need to be shown on hud like the screenshot. They also do not need to be directly next to each other as long as they are inline correctly (for minimal error).
GPS Up is no longer required, disregard it in the screenshot.

-1 block To set destination name a block end in "Destination:" "X:" Xcoordinate " Y:" Ycoordinate " Z:" Zcoordinate.
eg: "Destination: X:12000 Y:-12300 Z:1200", Another example: "Cargo Container 2 Destination:X:1200 Y:-4400 Z:12122", Yet One More: "Destination: Cargo 2 X:12321 Y:222 Z:-1230". !!IMPORTANT!! While you can have other characters between "Destination:" and "X:" you must not put anything besides coordinates between "X: "Y:" and "Z:" and must not have anything following the Z coordinates.

The output for the advanced features displays Distance to location, Required change in pitch and yaw to get on target, and an indicator if the target destination is in the rear arc of your ship. The screenshot example shows that to get to the destination the ship must Pitch Down 12 degrees and Yaw Left 53 degrees before traveling 33153 meters to arrive.


Current Plans:
-Waypoint Saving System (Will probably require a companion script for waypoint saving)
-Possibly make new input method optional

Known issues:
-Left and Down display negative angles which may be confusing if you overthink it.
-"º" keeps turning into a question mark in a diamond as if its a missing character when downloaded off steam, if it bothers you search the code and replace it by holding "Alt" and typing "0186"

Simple Version: http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=367866252

Update:
1.4b Fixed issue introduced last patch
1.4 Cleaned up and "GPS Up" requirement removed
1.3 New input method for destination
1.2 Fixed Destination script to work propperly.
17 条留言
[BOX] Trevish  [作者] 2015 年 4 月 23 日 下午 2:21 
I never got around to looking up how to work with the LCDs (actually totally stopped working on any scripts around that time) and honestly there are far better people to get help from on this front... head to the keen forums or maybe request additions to this script: http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=403921671
Deathpaw 2015 年 4 月 23 日 上午 11:36 
Could i please make a request, I am looking for a script to display orientation, position and speed on an LCD/Text pannel. Would you be able to assist? I've been through every scrip on the workshop and none serve my need.
[BOX] Trevish  [作者] 2015 年 2 月 26 日 下午 10:22 
I'll probably look into it this weekend
Lumios 2015 年 2 月 26 日 下午 10:00 
Could you update this to display on an LCD?
Dark_453 2015 年 1 月 24 日 上午 7:17 
Since they have added in GPS Most of the GPS mods not needed- Tho i Still use one. so i get a HUD Display :P
[BOX] Trevish  [作者] 2015 年 1 月 21 日 下午 1:26 
Updated, apparently last patch broke the script and I hadn't been on to notice.
[BOX] Trevish  [作者] 2015 年 1 月 12 日 上午 9:21 
I'm thinking of doing an autopilot script so looking for feedback on 2 options:
First should I add it this script as another optional setting or release as a seperate script?

Second, to turn on the autopilot is it preferred to take a block named "Autopilot:" with "On"/"Off" or force the use of interior or spot light name "Autopilot" that you then turn the block on and off (which can then be put in the hotbar)

The reason for the second is so that you don't have to stop this script/timer if I include that as part of it and because of a waypoint following option I may also include using the same toggle method.
[BOX] Trevish  [作者] 2015 年 1 月 11 日 上午 7:53 
Cleaned it up alot, thanks for the reminder on crossproduct idjles, GPS Up is nolonger needed/used!
[BOX] Trevish  [作者] 2015 年 1 月 11 日 上午 12:28 
New Input method, let me know if this is preferred or if I should make it an optional step
[BOX] Trevish  [作者] 2015 年 1 月 10 日 下午 11:00 
ok... finally figured it out, i derped up the dest part of the script, was using dest positions where it should have been vectors due to a variable naming fail.