Space Engineers

Space Engineers

Whip's Planetary Compass Script
197 Comments
Whiplash141  [author] 3 Dec, 2024 @ 7:01am 
no because this isn't a mod, it's an in game script
xBowenAero 1 Dec, 2024 @ 7:17pm 
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 4 Oct, 2024 @ 4:06pm 
Awesome, thanks!
Whiplash141  [author] 3 Oct, 2024 @ 7:38pm 
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 3 Oct, 2024 @ 7:20pm 
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 8 Sep, 2024 @ 11:45pm 
this feature will be very helpfull
GAD 8 Sep, 2024 @ 11:20pm 
Not a 0 - 5 - 10 - 15 angle. Like horizontal angle bar in compass script or horizontal script
GAD 8 Sep, 2024 @ 11:12pm 
horizon script shows the exact elevation angle ?
Whiplash141  [author] 8 Sep, 2024 @ 11:10pm 
Nope. My artificial horizon script can.
GAD 8 Sep, 2024 @ 10:54pm 
can it show elevation angle (vertical angle) ?
Into 6 Sep, 2024 @ 6:15am 
SG Industrial Cockpit, Screen 1.
VERSION = "22.0.2";
DATE = "2020/04/22";
Whiplash141  [author] 5 Sep, 2024 @ 8:31pm 
What type of screen and what version of the code?
Into 5 Sep, 2024 @ 4:52pm 
I've set radial compass to false, but it still shows as radial
GIROLD THE GRATE 18 Apr, 2024 @ 5:57pm 
ty
GIROLD THE GRATE 18 Apr, 2024 @ 5:57pm 
ok
CaveDweller 18 Apr, 2024 @ 5:27pm 
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  [author] 18 Apr, 2024 @ 3:49pm 
This isn't a mod
GIROLD THE GRATE 18 Apr, 2024 @ 2:38pm 
i cant see the script on the mood loder and i do the script theng i cant see it
CaveDweller 10 Jan, 2024 @ 8:14pm 
Hmm, ok. I think I know how I can still make it work. Thank you for your time and reply Whip =)
Whiplash141  [author] 10 Jan, 2024 @ 12:34pm 
scripts can't do that. They are ship automation tools, so I can only do stuff with blocks.
CaveDweller 9 Jan, 2024 @ 5:12pm 
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  [author] 8 Jan, 2024 @ 8:24pm 
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 8 Jan, 2024 @ 8:02pm 
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://steamhost.cn/steamcommunity_com/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
WildLynx 2 Aug, 2023 @ 8:04am 
I have a small idea: this script should set lcd to be blank and transparent while in space. May be with small text: "In space" at the bottom of the screen.
RandomOstrich 19 Jul, 2023 @ 9:50pm 
Is there any way to make this work for void?
Syphond 29 Apr, 2023 @ 8:51pm 
Figured it out. I should have looked first. For any one that uses this for the AAW, in the program block, change the aboslute north vector from x:0 y:-1 z:0 to x:0 y:1 z:0. it will invert the compass.
Syphond 29 Apr, 2023 @ 8:46pm 
Hello, got a question, Can the out put be inverted. The planets in a senerio i am using apperently are inverted and there north is south. Can this be done? Thanks in advance from a satisfied customer. ps landing script. :)
Whiplash141  [author] 26 Apr, 2023 @ 7:59am 
@Jotaro: What cockpit is this on?
🍁BuzzedBear🍁 26 Apr, 2023 @ 7:40am 
BRILLIANT!
Jotaro 8 Mar, 2023 @ 9:33am 
Compass - Text Surface Config]
Show on screen 0=false
Show on screen 1=true
Show on screen 2=false
Show on screen 3=false
Show on screen 4=false
Show on screen 5=false
Show on screen 6=false
Show on screen 7=false
Show on screen 8=false

[Compass - Appearance]
Draw radial compass - screen 0=false
Draw radial compass - screen 1=false
Draw radial compass - screen 2=false
Draw radial compass - screen 3=false
Draw radial compass - screen 4=false
Draw radial compass - screen 5=false
Draw radial compass - screen 6=false
Draw radial compass - screen 7=false
Draw radial compass - screen 8=false
Whiplash141  [author] 7 Mar, 2023 @ 5:31pm 
What does your custom data look like?
Jotaro 7 Mar, 2023 @ 11:37am 
for some reason even when false is set on same screen it still draws radial compass
Ha1luciNate 31 Jul, 2022 @ 5:10am 
Is there a way to make this show your planetary gps coordinates? Thanks!
Whiplash141  [author] 7 Jul, 2021 @ 9:04am 
Nope, no changes. It is largely dependent on that game bug mentioned below. If the first block you placed to make the ship is further than 32 meters from your screens, those screens will simply not work at all lol
BoompaBlubbah 7 Jul, 2021 @ 5:13am 
At my current dedicated server it seems to work! Which is sort of odd, as you did not change anything right?
BoompaBlubbah 2 Jul, 2021 @ 9:19pm 
When I see a free moment I will see and test it :)
Whiplash141  [author] 2 Jul, 2021 @ 9:04pm 
This is _very_ likely tied to the following bug: https://support.keenswh.com/spaceengineers/pc/topic/1-197-168-fix-programmable-block-sprite-streaming-for-clients

If your screen is more than 32 meters from the grid pivot (not the same as the CoM), the screens will not receive updates. It is a lovely bug added by keen last major as if sprites werent already hell to get working right...
BoompaBlubbah 2 Jul, 2021 @ 8:57pm 
Might you have any update regarding this issue? I really liked using this one ;)
BoompaBlubbah 19 May, 2021 @ 2:49am 
22.0.2, yes playing Dedicated Server
Whiplash141  [author] 19 May, 2021 @ 2:36am 
What version and are you in multiplayer?
BoompaBlubbah 19 May, 2021 @ 2:22am 
Hello Whiplash, Thanks for all your amazing scripts, which enrich this game so much.
However, I'm afraid I'm having the same issue as Pitch has: the compass used to work fine,
but nowadays only shows a static version of it. Moving around doesn't seem to help :|
Whiplash141  [author] 22 Jan, 2021 @ 1:56pm 
Are there any errors? When you spin around, it should update.
Grand Moff Pitchkins 29 Sep, 2020 @ 2:49am 
Hi Whiplash, great scripts thanks for these. I have uploaded the compass and it shows in the LCD screen, but doesn't appear to do anything else other than show a static image of a compass. Do I need to change something so it shows a live feed of compass bearing? Thanks again.
Whiplash141  [author] 1 Sep, 2020 @ 8:59pm 
Good luck!
White Wolf 1 Sep, 2020 @ 8:42pm 
a friend and i are trying to edit the compass to make the height and width fit the screen better.
ThePandaNetwork 6 Jul, 2020 @ 8:59am 
can you add a skript for schow inventory full by ship for the seat ?
Whiplash141  [author] 30 Jun, 2020 @ 1:52pm 
@all:

Just pushed an update that adds in a radial compass mode. Update to v22.0.0 or later, then open up the custom data of your blocks with screens to turn it on/off. By default, new screens that are more square will use the new radial compass. Short screens like the corner LCDs will use the default horizontal compass. Lmk if y'all run into any issues!
darthboer 29 Jun, 2020 @ 5:37pm 
Damn, you are impressive. Thanks so much!
Whiplash141  [author] 29 Jun, 2020 @ 5:30pm 
Good catch v21.3.2 fixes that
darthboer 29 Jun, 2020 @ 5:13pm 
Hi Whiplash, I built a very small rover with an industrial cockpit, and the prog block says that a ship controller is not found. I've tried putting "Reference" in the cockpit's name but had no luck. The compass shows up on the correct screen that I set in custom data, but it doesn't update and is stuck on bearing 000. How can I fix this?

UPDATE: I discovered that I can either put "Reference" or "Compass" in the Industrial Cockpit's name. One or the other will work, but not both. If I put "Reference" alone in the name, I get an error that there is no text surface with the name "Compass." If I put "Compass" in the name, I get an error that there is no ship controller detected. If I put both "Reference" and "Compass" in the name at the same time, it detects the compass, but then gives me the No Ship Controller Found error.