Space Engineers

Space Engineers

[OUTDATED] Whip's Pixel Artificial Horizon
321 条留言
Whiplash141  [作者] 2021 年 1 月 14 日 下午 12:01 
Have you tried the new one? :)
Voss 2019 年 8 月 26 日 上午 4:38 
legacy favorite
Whiplash141  [作者] 2019 年 4 月 10 日 上午 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 2019 年 4 月 10 日 上午 11:22 
Are you going to update this script or create a new one (for subscription purposes)?

Great work btw!
Whiplash141  [作者] 2019 年 4 月 10 日 上午 5:23 
Nope, I'm in the process of rewrite
Alexli14 2019 年 4 月 10 日 上午 4:21 
will this work with the builtin lcds now in cockpits?
Whiplash141  [作者] 2019 年 3 月 13 日 下午 2:14 
I personally don't use mods for my lcd's. I just integrate small grid text panels into my designs.
R 2019 年 3 月 13 日 上午 10:58 
What mod are you using for the cockpit LCDs ?
CZdigger146 2019 年 2 月 20 日 上午 8:44 
Amazing! Only if all my ships had a space for a LCD so i could put it in all my ships!
Whiplash141  [作者] 2018 年 12 月 12 日 下午 9: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 2018 年 12 月 12 日 下午 7:25 
i had to use old version with timers
AESTHETICBOI 2018 年 12 月 12 日 下午 7:25 
yup a bunch of other scripts work
Whiplash141  [作者] 2018 年 12 月 12 日 下午 6:47 
Make sure you have scripts enabled in the world
AESTHETICBOI 2018 年 12 月 12 日 下午 5:59 
weird doesnt work or display on screen
『KuuHaKu』 2018 年 12 月 4 日 上午 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  [作者] 2018 年 11 月 30 日 下午 4:13 
I know what you meant, lol

I was telling you what altitude means in the game :P
Sneakyrat 2018 年 11 月 30 日 下午 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  [作者] 2018 年 11 月 30 日 上午 5:18 
It uses the altitude above the current surface, it is the same as the cockpit altitude
Sneakyrat 2018 年 11 月 30 日 上午 1:26 
nice script however the altitude doesnt do - values if your under ground but other than that amazing script
systat 2018 年 11 月 17 日 下午 3:45 
Nice. I was looking for something that would indicate prograde and retrograde in a flat space environment.
Whiplash141  [作者] 2018 年 11 月 5 日 下午 12:53 
Also, tried my drop pod script? :P
Whiplash141  [作者] 2018 年 11 月 5 日 下午 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 2018 年 10 月 9 日 上午 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  [作者] 2018 年 10 月 7 日 下午 1:12 
Thanks! It means a lot :)
RUSTIK 2018 年 10 月 7 日 上午 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 2018 年 10 月 4 日 下午 4:22 
Awesome!
Whiplash141  [作者] 2018 年 10 月 4 日 下午 2:34 
Nope, I'm cool as long as I get credit :)
RobinHorn 2018 年 10 月 4 日 上午 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  [作者] 2018 年 8 月 5 日 上午 8:25 
As for pointing straight up, simply pitch until the entire screen shows sky
Whiplash141  [作者] 2018 年 8 月 5 日 上午 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 2018 年 8 月 5 日 上午 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 2018 年 7 月 26 日 下午 12:31 
Damn. Yeah, that's kind of rough.
Whiplash141  [作者] 2018 年 7 月 3 日 上午 12: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 💢 2018 年 7 月 2 日 下午 2:19 
Is there a way to increase the resolution, to make it look sharper on a bigger lcd?
Whiplash141  [作者] 2018 年 6 月 20 日 上午 12:07 
You dont need the " " around the horizon tag :)

And thanks!
XandreBlues 2018 年 6 月 20 日 上午 12: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  [作者] 2018 年 6 月 19 日 下午 11: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 2018 年 6 月 19 日 下午 10: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 2018 年 5 月 23 日 上午 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 2018 年 3 月 30 日 下午 10:29 
OK. I'll take a look when I hop back on my desktop. [Yes I haven't looked for it, so yeah.]
Whiplash141  [作者] 2018 年 3 月 30 日 下午 10: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 2018 年 3 月 30 日 下午 10: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  [作者] 2018 年 3 月 30 日 下午 6: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 2018 年 3 月 30 日 下午 5: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 2018 年 3 月 30 日 下午 3:35 
thank you @Whiplash141, i love your work ^^
Whiplash141  [作者] 2018 年 3 月 30 日 下午 3: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 2018 年 3 月 30 日 下午 2:45 
That would be a good idea whiplash. Make it so that you can change what cockpit it will detect.
STRIKER 2018 年 3 月 30 日 上午 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 2018 年 3 月 18 日 上午 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  [作者] 2018 年 3 月 7 日 上午 3:02 
Update to the most recent version of this script, v46