Space Engineers

Space Engineers

667 평점
Whip's Planetary Compass Script
2
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
태그: visualization
파일 크기
게시일
업데이트일
303.192 KB
2016년 2월 5일 오전 9시 30분
2021년 4월 22일 오후 2시 42분
변경 사항 17개 ( 보기 )

다운로드 위해 구독하기
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)
댓글 184
Mr.Scout Troop 2024년 4월 18일 오후 5시 57분 
ty
Mr.Scout Troop 2024년 4월 18일 오후 5시 57분 
ok
CaveDweller 2024년 4월 18일 오후 5시 27분 
You'll see it when you go into the programmable block to load a script. Just ensure you enable scripts in the world settings and on the programmable block
Whiplash141  [작성자] 2024년 4월 18일 오후 3시 49분 
This isn't a mod
Mr.Scout Troop 2024년 4월 18일 오후 2시 38분 
i cant see the script on the mood loder and i do the script theng i cant see it
CaveDweller 2024년 1월 10일 오후 8시 14분 
Hmm, ok. I think I know how I can still make it work. Thank you for your time and reply Whip =)
Whiplash141  [작성자] 2024년 1월 10일 오후 12시 34분 
scripts can't do that. They are ship automation tools, so I can only do stuff with blocks.
CaveDweller 2024년 1월 9일 오후 5시 12분 
Sorry for the confusion Whip, I only included the mod link to serve as a visual example of what I was talking about. With your script specifically, I was wondering if you would be willing to include a n option for the compass to be viewed from a third person perspective?
Whiplash141  [작성자] 2024년 1월 8일 오후 8시 24분 
I didn't have any hand in the making of that mod. I only made this in-game script. That question is more suited for the mod author @CaveDweller
CaveDweller 2024년 1월 8일 오후 8시 02분 
Hi Whip. While I am very excited about your mod and the clarity of the bearing, I was wondering if you would be willing to make an addition.

Reference this compass mod https://steamproxy.net/sharedfiles/filedetails/?id=2687667563 would you be willing to include a third person view option? I usually play from a third person view, and having your compass showing from that perspective would contribute significantly to the control tower role play that I would like to add to my play throughs.

Thank you