Space Engineers

Space Engineers

[OUTDATED] Whip's Pixel Artificial Horizon
321 Comments
Whiplash141  [author] Jan 14, 2021 @ 12:01pm 
Have you tried the new one? :)
Voss Aug 26, 2019 @ 4:38am 
legacy favorite
Whiplash141  [author] Apr 10, 2019 @ 11:45am 
The rewrite will be a new script so I can support both without breaking backwards compatibility for this one :)

I'll still try to add cockpit LCD support into this one
FlyinRiz Apr 10, 2019 @ 11:22am 
Are you going to update this script or create a new one (for subscription purposes)?

Great work btw!
Whiplash141  [author] Apr 10, 2019 @ 5:23am 
Nope, I'm in the process of rewrite
Alexli14 Apr 10, 2019 @ 4:21am 
will this work with the builtin lcds now in cockpits?
Whiplash141  [author] Mar 13, 2019 @ 2:14pm 
I personally don't use mods for my lcd's. I just integrate small grid text panels into my designs.
R Mar 13, 2019 @ 10:58am 
What mod are you using for the cockpit LCDs ?
CZdigger146 Feb 20, 2019 @ 8:44am 
Amazing! Only if all my ships had a space for a LCD so i could put it in all my ships!
Whiplash141  [author] Dec 12, 2018 @ 9:34pm 
I guarantee you that the version published works as I am currently using it.

The code will tell you what you are missing in the terminal.
AESTHETICBOI Dec 12, 2018 @ 7:25pm 
i had to use old version with timers
AESTHETICBOI Dec 12, 2018 @ 7:25pm 
yup a bunch of other scripts work
Whiplash141  [author] Dec 12, 2018 @ 6:47pm 
Make sure you have scripts enabled in the world
AESTHETICBOI Dec 12, 2018 @ 5:59pm 
weird doesnt work or display on screen
『KuuHaKu』 Dec 4, 2018 @ 4:02am 
hey there whip.

I was thinking: would it be possible for you to make a script like the vector velocity indicator but one that shows relative target alignment?
Whiplash141  [author] Nov 30, 2018 @ 4:13pm 
I know what you meant, lol

I was telling you what altitude means in the game :P
Sneakyrat Nov 30, 2018 @ 12:05pm 
yeah but what i meant is if your under ground it doesnt do negative values for the altitude its not really an issue but just something i wanted to point out
Whiplash141  [author] Nov 30, 2018 @ 5:18am 
It uses the altitude above the current surface, it is the same as the cockpit altitude
Sneakyrat Nov 30, 2018 @ 1:26am 
nice script however the altitude doesnt do - values if your under ground but other than that amazing script
systat Nov 17, 2018 @ 3:45pm 
Nice. I was looking for something that would indicate prograde and retrograde in a flat space environment.
Whiplash141  [author] Nov 5, 2018 @ 12:53pm 
Also, tried my drop pod script? :P
Whiplash141  [author] Nov 5, 2018 @ 12:52pm 
I have no idea off the top of my head (not at home), but the method names should be pretty self documenting.
epflederer Oct 9, 2018 @ 9:26am 
What methods of your script are used to calculate ship local speed along its axises, surface elevation, and pitch/roll of local gravity? I'm trying to put together a lander script for a rover I built, and I dont have much c# experience, so I'm trying to combine code from different scripts to get what I'm trying to do, and this script has several values I need. Any help is appreciated
Whiplash141  [author] Oct 7, 2018 @ 1:12pm 
Thanks! It means a lot :)
RUSTIK Oct 7, 2018 @ 10:59am 
Whiplash141, I use many of your scripts and I greatly appreciate the time and effort you put into them. You even update them as the game changes, SE is a better game because of you. Thank you!
RobinHorn Oct 4, 2018 @ 4:22pm 
Awesome!
Whiplash141  [author] Oct 4, 2018 @ 2:34pm 
Nope, I'm cool as long as I get credit :)
RobinHorn Oct 4, 2018 @ 1:07am 
I am planning on making a ILS style landing aid for use with Plane Parts, and I am probably going to use at least part of your code for making the display part of it. I will give credit in the code and mod page, should I get it working. Will this be a problem?
Whiplash141  [author] Aug 5, 2018 @ 8:25am 
As for pointing straight up, simply pitch until the entire screen shows sky
Whiplash141  [author] Aug 5, 2018 @ 8:24am 
Not at this resolution. The higher the resolution and the more drawing I do, the performance gets exponentially worse. I was trying to make this as preference friendly as possible.
McDewgle Aug 5, 2018 @ 3:07am 
Would it be possible to add in incremental notches like a traditional attitude indicator? Numbering from 0 (horizon) to +90 -90 (straight up or straight down) This would help greatly with trying to point the ship straight up in order to escape a gravity well

https://techoctave.com/images/artificial-horizon-attitude-indicator.png
Famous5000 Jul 26, 2018 @ 12:31pm 
Damn. Yeah, that's kind of rough.
Whiplash141  [author] Jul 3, 2018 @ 12:33am 
Not easily. I capped the resolution as it is because any higher and the performance impact becomes very noticeable.

While you may only be adding 2 pixels in width, area scales at a rate of width^2 . This means more work for the code and much worse performance.
Aramil 💢 Jul 2, 2018 @ 2:19pm 
Is there a way to increase the resolution, to make it look sharper on a bigger lcd?
Whiplash141  [author] Jun 20, 2018 @ 12:07am 
You dont need the " " around the horizon tag :)

And thanks!
XandreBlues Jun 20, 2018 @ 12:06am 
actually not sure if it did or not. my other mistake was not including " " with "Horizon"
so... maybe it did work.. (all my err, your script is brilliant!) and got it working rather quickly. It really is easy to set up and I've had no problems with it. Just wanted to give you a cheer!
Whiplash141  [author] Jun 19, 2018 @ 11:47pm 
"Yeah.. reading the instructions! I spent two minutes trying to figure out why it wasn't working... because I completely missed setting the font."
The script should set that automatically once you hop in a seat :)
XandreBlues Jun 19, 2018 @ 10:43pm 
place programming block.. add "Horizon" to text panel, change font to monospace.
What could be easier?
Yeah.. reading the instructions! I spent two minutes trying to figure out why it wasn't working... because I completely missed setting the font. (Facepalms)
Totally love this script and its super easy to use! :steamhappy:
Soulebot May 23, 2018 @ 5:22am 
One of the great scripts for SE! I tend to make "turn and burn" types of ships to accel towards, flip, and then decel when I am coming up on a location and being able to easily see my retrograde marker is invaluable!
Famous5000 Mar 30, 2018 @ 10:29pm 
OK. I'll take a look when I hop back on my desktop. [Yes I haven't looked for it, so yeah.]
Whiplash141  [author] Mar 30, 2018 @ 10:26pm 
"Inside the script? People who might not know a few things about scripting may not know where to look for that..."

The very top of the code, nice and commented lol
Famous5000 Mar 30, 2018 @ 10:24pm 
Inside the script? People who might not know a few things about scripting may not know where to look for that... [Myself excluded]
Whiplash141  [author] Mar 30, 2018 @ 6:25pm 
"So that you can run multiple copies? [One for gunner, one for pilot?]"
I dont advise this as this will cause more lag. It is possible though by giving each instance of the script a different ship controller name tag.
Famous5000 Mar 30, 2018 @ 5:19pm 
Is it possible to change what the script looks for? So that you can run multiple copies? [One for gunner, one for pilot?]
STRIKER Mar 30, 2018 @ 3:35pm 
thank you @Whiplash141, i love your work ^^
Whiplash141  [author] Mar 30, 2018 @ 3:20pm 
@๖ۣۜFamous1337 @STRIKER:

I readded in optional name tags. If the code detects a ship controller with the name tag "Forward" it will only pay attention to that one. If it doesn't, it will use all ship controllers on the ship/subgrids and automatically decide which to pick.

If you are not actively controlling the ship controller, but you want the horizon to not pause, you will need to set pauseWhenAway to false :)
Famous5000 Mar 30, 2018 @ 2:45pm 
That would be a good idea whiplash. Make it so that you can change what cockpit it will detect.
STRIKER Mar 30, 2018 @ 11:57am 
hey, whiplash,
i am grateful for your scripts since i am fond of making tanks and warmachines and they help out a lot to make them more than props (i've yet to find the skill, will, or courage to post them on the workshop)
but i do have a question/problem, i am building a tank, and i have your artificial horizon script for the driver, it works fine, but i wanted to put one align to the gunner's sight, or the commander's sight so that they would be able to give bearing to a target as they operated the vehicle and get as close as i could to having an actual gun camera

but since the selected remote control or seat is no longer a variable i only displays the movements of the tank, could help me find a solution to this problem ?

thank you for your attention =)
aviator1280 Mar 18, 2018 @ 8:26am 
@Whiplash141 Hello, I found out that I had the flickering problem when another ship with the same script was connected. Turning it off the problem vanished.
Whiplash141  [author] Mar 7, 2018 @ 3:02am 
Update to the most recent version of this script, v46