Space Engineers

Space Engineers

Whip's Planetary Compass Script
184 Comments
Mr.Scout Troop 18 Apr @ 5:57pm 
ty
Mr.Scout Troop 18 Apr @ 5:57pm 
ok
CaveDweller 18 Apr @ 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 @ 3:49pm 
This isn't a mod
Mr.Scout Troop 18 Apr @ 2:38pm 
i cant see the script on the mood loder and i do the script theng i cant see it
CaveDweller 10 Jan @ 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 @ 12:34pm 
scripts can't do that. They are ship automation tools, so I can only do stuff with blocks.
CaveDweller 9 Jan @ 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 @ 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 @ 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://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
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
Hallucinate 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.
Pitch 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.
Whiplash141  [author] 29 Jun, 2020 @ 11:16am 
I'd start from 178x178 and experiment from there.
notnewbutyork 29 Jun, 2020 @ 11:03am 
To update some images converted via your app or the gif converter.
So, essentially what their resolution would be for that purpose.
Since that's text based I assume it doesnt really correspond to the pixels per se.
Whiplash141  [author] 29 Jun, 2020 @ 9:15am 
Resolution in what sense? I can give you the pixel resolution pretty easily which is used for sprite drawing: https://www.dropbox.com/s/f3wzzmtfrrmpg25/screen_size_tester.cs?dl=0

Just place the screens you want to see, then run that script.

The amount of text you can fit on a particular screen depends on the font and the aspect ratio of the screen. Also text that is written via sprites vs text displayed in text and image mode size differently for God knows what reason.
notnewbutyork 29 Jun, 2020 @ 8:09am 
He made it great again! Nice!

On a side note, is there a list with the resulutions of the ingame lcds anywhere?
I can't seem to find one that is up to date...
Whiplash141  [author] 28 Jun, 2020 @ 2:51pm 
Alright, script has been rewritten. It will now work with all text panels and any blocks that have multiple screens! See the updated instructions above.
notnewbutyork 28 Jun, 2020 @ 5:27am 
Ah, ok. Didn't use it on anything but small grid corner lcd and didn't read too deep into it. I literally just saw it resetting to 1.25 so I ctrl+f'd that in the script...

I'm a simple man... I do simple things.

Nice rework though, looks good!
Whiplash141  [author] 27 Jun, 2020 @ 8:37pm 
Working on a much needed update. Needed a rewrite anyway and this will allow me to make things more configurable/sharp

https://steamproxy.net/sharedfiles/filedetails/?id=2145089642
Whiplash141  [author] 27 Jun, 2020 @ 2:56pm 
That only fixes _corner_ LCDs and only the small grid set. It will fuck every other screen. Large corner LCDs need a factor of 4, not a simple change one number solution.
notnewbutyork 27 Jun, 2020 @ 1:01pm 
Wouldn't it be enough to simply change the scaling in the code from 1.25 to 2.5?

I mean... It worked for me...
FrozenMonkey 26 Jun, 2020 @ 3:13am 
This is rad. Text is tiny but looks like you know how to fix it and it's still very useful!
AceBase 24 Jun, 2020 @ 12:59pm 
@Whiplash141 tried them out, they do line up. Really cool stuff.
Tiger 20 Jun, 2020 @ 4:12pm 
I hope it's an easy fix then. :selike:
Whiplash141  [author] 20 Jun, 2020 @ 10:17am 
> do you know whether this lines up with the HUD Compass mod?

No earthly idea

> How can I adjust the font size to scale up the display

It is non trivial. I need to just rewrite it