Space Engineers

Space Engineers

731 평점
Whip's Planetary Compass Script
2
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
태그: visualization
파일 크기
게시일
업데이트일
303.265 KB
2016년 2월 5일 오전 9시 30분
2024년 10월 3일 오후 7시 35분
업데이트 노트 18개 (보기)

다운로드 위해 구독하기
Whip's Planetary Compass Script

Whiplash141님의 1 모음집
Whip's Scripts
아이템 22개
설명
Previously titled: "Whip's Planetary Bearing & Compass Script"





    Update
This code has had a complete rewrite as of June 26, 2020. It should now be much more pretty and work on all text panels and blocks with multiple screens (like cockpits).



    Description
Howdy! This script will determine your planetary bearing angle then display it on a compass! Since the code is only usable in planetary settings, the code will give you a warning if it detects no natural gravity.



    How do I use this?!
  1. Make a program block with this script loaded into it
  2. Make a ship controller (remote control, cockpit, or flight seat) pointing forward
    • (OPTIONAL) Add the phrase Reference somewhere in its name.
    • If no ship controller tagged Reference is detected, the code will use all ship controllers that it finds on the grid/subgrids
  3. Add Compass to the name of text panels or blocks with text surfaces that you want the compass displayed.
    • Blocks with text surfaces include: Cockpits, flight seats, programmable blocks
    • Configure which text surface the compass is displayed on within the block's custom data (You don't need to do this for text panels).

  4. You are good to go! :)



    Custom Data Config
You can configure the colors, appearance, and behavior of the compass displays in the Custom Data of the programmable block that this script is loaded in.



Also, in the Custom Data of each block with text surfaces, you can toggle the display of the radial style of compass. If true, the radial compass will be drawn, if false, the horizontal compass will be drawn.



    Author's Notes
I went ahead and rewrote this code in its entirety to use a sprite based system as of June 26, 2020. With this update came some changes to the default configuration. The name tag for screens is now "Compass" by default instead of "Bearing", but I've added some code to accept "Bearing" as well to preserve backwards compatibility.

I hope y'all enjoy! If you notice any bugs leave me a comment describing what you are experiencing and I will try to help you troubleshoot :)

(Do not reupload without permission, not even to mod.io)
댓글 197
Whiplash141  [작성자] 2024년 12월 3일 오전 7시 01분 
no because this isn't a mod, it's an in game script
xBowenAero 2024년 12월 1일 오후 7시 17분 
Does your mod have a HUD compass that shows angular degrees for when you're mining into the planet, for those underground bases, and you want to drill at a smooth and clean 45 degree angle instead of 45 degree rock slide mined out tunnel?
Into 2024년 10월 4일 오후 4시 06분 
Awesome, thanks!
Whiplash141  [작성자] 2024년 10월 3일 오후 7시 38분 
Try v22.0.3

This script hadn't been touched in 4-ish years and back then, there was not an easy way to discern that. Now the compass script will ignore any blocks only connected via connectors, but it will detect blocks attached via mechanical connection blocks(rotors, pistons, etc.)
Into 2024년 10월 3일 오후 7시 20분 
An option to toggle if Subgrids, or Grids over connectors to be affected would be nice. In our multiplayer, we had the issue that multiple grids got altered LCD's, simply by having parked vehicles to the home base.
GAD 2024년 9월 8일 오후 11시 45분 
this feature will be very helpfull
GAD 2024년 9월 8일 오후 11시 20분 
Not a 0 - 5 - 10 - 15 angle. Like horizontal angle bar in compass script or horizontal script
GAD 2024년 9월 8일 오후 11시 12분 
horizon script shows the exact elevation angle ?
Whiplash141  [작성자] 2024년 9월 8일 오후 11시 10분 
Nope. My artificial horizon script can.
GAD 2024년 9월 8일 오후 10시 54분 
can it show elevation angle (vertical angle) ?