Space Engineers
[OUTDATED] Whip's Pixel Artificial Horizon
Комментариев: 321
Whiplash141  [создатель] 14 янв. 2021 г. в 12:01 
Have you tried the new one? :)
Voss 26 авг. 2019 г. в 4:38 
legacy favorite
Whiplash141  [создатель] 10 апр. 2019 г. в 11:45 
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 10 апр. 2019 г. в 11:22 
Are you going to update this script or create a new one (for subscription purposes)?

Great work btw!
Whiplash141  [создатель] 10 апр. 2019 г. в 5:23 
Nope, I'm in the process of rewrite
Alexli14 10 апр. 2019 г. в 4:21 
will this work with the builtin lcds now in cockpits?
Whiplash141  [создатель] 13 мар. 2019 г. в 14:14 
I personally don't use mods for my lcd's. I just integrate small grid text panels into my designs.
R 13 мар. 2019 г. в 10:58 
What mod are you using for the cockpit LCDs ?
CZdigger146 20 фев. 2019 г. в 8:44 
Amazing! Only if all my ships had a space for a LCD so i could put it in all my ships!
Whiplash141  [создатель] 12 дек. 2018 г. в 21:34 
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 12 дек. 2018 г. в 19:25 
i had to use old version with timers
AESTHETICBOI 12 дек. 2018 г. в 19:25 
yup a bunch of other scripts work
Whiplash141  [создатель] 12 дек. 2018 г. в 18:47 
Make sure you have scripts enabled in the world
AESTHETICBOI 12 дек. 2018 г. в 17:59 
weird doesnt work or display on screen
『KuuHaKu』 4 дек. 2018 г. в 4:02 
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  [создатель] 30 ноя. 2018 г. в 16:13 
I know what you meant, lol

I was telling you what altitude means in the game :P
Sneakyrat 30 ноя. 2018 г. в 12:05 
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  [создатель] 30 ноя. 2018 г. в 5:18 
It uses the altitude above the current surface, it is the same as the cockpit altitude
Sneakyrat 30 ноя. 2018 г. в 1:26 
nice script however the altitude doesnt do - values if your under ground but other than that amazing script
systat 17 ноя. 2018 г. в 15:45 
Nice. I was looking for something that would indicate prograde and retrograde in a flat space environment.
Whiplash141  [создатель] 5 ноя. 2018 г. в 12:53 
Also, tried my drop pod script? :P
Whiplash141  [создатель] 5 ноя. 2018 г. в 12:52 
I have no idea off the top of my head (not at home), but the method names should be pretty self documenting.
epflederer 9 окт. 2018 г. в 9:26 
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  [создатель] 7 окт. 2018 г. в 13:12 
Thanks! It means a lot :)
RUSTIK 7 окт. 2018 г. в 10:59 
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 4 окт. 2018 г. в 16:22 
Awesome!
Whiplash141  [создатель] 4 окт. 2018 г. в 14:34 
Nope, I'm cool as long as I get credit :)
RobinHorn 4 окт. 2018 г. в 1:07 
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  [создатель] 5 авг. 2018 г. в 8:25 
As for pointing straight up, simply pitch until the entire screen shows sky
Whiplash141  [создатель] 5 авг. 2018 г. в 8:24 
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 5 авг. 2018 г. в 3:07 
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 26 июл. 2018 г. в 12:31 
Damn. Yeah, that's kind of rough.
Whiplash141  [создатель] 3 июл. 2018 г. в 0:33 
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 💢 2 июл. 2018 г. в 14:19 
Is there a way to increase the resolution, to make it look sharper on a bigger lcd?
Whiplash141  [создатель] 20 июн. 2018 г. в 0:07 
You dont need the " " around the horizon tag :)

And thanks!
XandreBlues 20 июн. 2018 г. в 0:06 
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  [создатель] 19 июн. 2018 г. в 23:47 
"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 19 июн. 2018 г. в 22:43 
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 23 мая. 2018 г. в 5:22 
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 30 мар. 2018 г. в 22:29 
OK. I'll take a look when I hop back on my desktop. [Yes I haven't looked for it, so yeah.]
Whiplash141  [создатель] 30 мар. 2018 г. в 22:26 
"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 30 мар. 2018 г. в 22:24 
Inside the script? People who might not know a few things about scripting may not know where to look for that... [Myself excluded]
Whiplash141  [создатель] 30 мар. 2018 г. в 18:25 
"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 30 мар. 2018 г. в 17:19 
Is it possible to change what the script looks for? So that you can run multiple copies? [One for gunner, one for pilot?]
STRIKER 30 мар. 2018 г. в 15:35 
thank you @Whiplash141, i love your work ^^
Whiplash141  [создатель] 30 мар. 2018 г. в 15:20 
@๖ۣۜ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 30 мар. 2018 г. в 14:45 
That would be a good idea whiplash. Make it so that you can change what cockpit it will detect.
STRIKER 30 мар. 2018 г. в 11:57 
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 18 мар. 2018 г. в 8:26 
@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  [создатель] 7 мар. 2018 г. в 3:02 
Update to the most recent version of this script, v46