Space Engineers

Space Engineers

Whip's Planetary Compass Script
Komentarzy: 184
Mr.Scout Troop 18 kwietnia o 17:57 
ty
Mr.Scout Troop 18 kwietnia o 17:57 
ok
CaveDweller 18 kwietnia o 17: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  [autor] 18 kwietnia o 15:49 
This isn't a mod
Mr.Scout Troop 18 kwietnia o 14:38 
i cant see the script on the mood loder and i do the script theng i cant see it
CaveDweller 10 stycznia o 20:14 
Hmm, ok. I think I know how I can still make it work. Thank you for your time and reply Whip =)
Whiplash141  [autor] 10 stycznia o 12:34 
scripts can't do that. They are ship automation tools, so I can only do stuff with blocks.
CaveDweller 9 stycznia o 17: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  [autor] 8 stycznia o 20: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 8 stycznia o 20: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
WildLynx 2 sierpnia 2023 o 8:04 
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 lipca 2023 o 21:50 
Is there any way to make this work for void?
Syphond 29 kwietnia 2023 o 20:51 
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 kwietnia 2023 o 20:46 
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  [autor] 26 kwietnia 2023 o 7:59 
@Jotaro: What cockpit is this on?
🍁BuzzedBear🍁 26 kwietnia 2023 o 7:40 
BRILLIANT!
Jotaro 8 marca 2023 o 9:33 
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  [autor] 7 marca 2023 o 17:31 
What does your custom data look like?
Jotaro 7 marca 2023 o 11:37 
for some reason even when false is set on same screen it still draws radial compass
Hallucinate 31 lipca 2022 o 5:10 
Is there a way to make this show your planetary gps coordinates? Thanks!
Whiplash141  [autor] 7 lipca 2021 o 9:04 
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 lipca 2021 o 5:13 
At my current dedicated server it seems to work! Which is sort of odd, as you did not change anything right?
BoompaBlubbah 2 lipca 2021 o 21:19 
When I see a free moment I will see and test it :)
Whiplash141  [autor] 2 lipca 2021 o 21:04 
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 lipca 2021 o 20:57 
Might you have any update regarding this issue? I really liked using this one ;)
BoompaBlubbah 19 maja 2021 o 2:49 
22.0.2, yes playing Dedicated Server
Whiplash141  [autor] 19 maja 2021 o 2:36 
What version and are you in multiplayer?
BoompaBlubbah 19 maja 2021 o 2:22 
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  [autor] 22 stycznia 2021 o 13:56 
Are there any errors? When you spin around, it should update.
Pitch 29 września 2020 o 2:49 
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  [autor] 1 września 2020 o 20:59 
Good luck!
White Wolf 1 września 2020 o 20:42 
a friend and i are trying to edit the compass to make the height and width fit the screen better.
ThePandaNetwork 6 lipca 2020 o 8:59 
can you add a skript for schow inventory full by ship for the seat ?
Whiplash141  [autor] 30 czerwca 2020 o 13:52 
@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 czerwca 2020 o 17:37 
Damn, you are impressive. Thanks so much!
Whiplash141  [autor] 29 czerwca 2020 o 17:30 
Good catch v21.3.2 fixes that
darthboer ☠ 29 czerwca 2020 o 17:13 
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  [autor] 29 czerwca 2020 o 11:16 
I'd start from 178x178 and experiment from there.
notnewbutyork 29 czerwca 2020 o 11:03 
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  [autor] 29 czerwca 2020 o 9:15 
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 czerwca 2020 o 8:09 
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  [autor] 28 czerwca 2020 o 14:51 
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 czerwca 2020 o 5:27 
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  [autor] 27 czerwca 2020 o 20:37 
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  [autor] 27 czerwca 2020 o 14:56 
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 czerwca 2020 o 13:01 
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 czerwca 2020 o 3:13 
This is rad. Text is tiny but looks like you know how to fix it and it's still very useful!
AceBase 24 czerwca 2020 o 12:59 
@Whiplash141 tried them out, they do line up. Really cool stuff.
Tiger 20 czerwca 2020 o 16:12 
I hope it's an easy fix then. :selike:
Whiplash141  [autor] 20 czerwca 2020 o 10:17 
> 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