Space Engineers

Space Engineers

Not enough ratings
Customizable Artificial Horizon Mod (30FPS)
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
217.631 KB
6 Jan, 2021 @ 12:40pm
6 Jan, 2021 @ 2:33pm
4 Change Notes ( view )

Subscribe to download
Customizable Artificial Horizon Mod (30FPS)

Description
# About

This mod allows you to customization each element's colour of the Artificial Horizon, this mod also makes use of Gwindalmir's fast FPS display mod to enable 30FPS refresh rate for the display while flying. So if its a fork (copy with modifications) of Gwindalmir's mod why use this over Whis's artificial mod? There's no reason to as whis's mod is better in almost every aspect except 1) Colour customization, 2) FPS and 3) The velocity vector is real space in this mod, where you so it is where you'll go where as Whis's mod is relative to the display.

This mod replaces the default Artificial Horizon script and will work inplace all you need to do is add it to your world.

# How to use

1) Install Space Engineers (actually skip this part you might've already done it)
2) Subscribe to this mod
3) Add this mod to your world or server
4) Put down an LCD or Get into a cockpit
5) Select the artificial horizon script from the scripts menu

# Customization

This script attempts to expose all customizable variables in the artificial horizon script. To allow for customization an extra ini tag is added to Custom Data to allow for the variables editing.

The following format's are available
1) ALL - This is single number that will be interpreted at ALL,ALL,ALL,255
2) BG / FG = BG is the background colour of the Display and FG is the color of the display
3) #RRGGBB (hex color, 0 to FF)
4) #RRGGBBAA (hex color, 0 to FF)
5) ALL,ALPHA - This is a single integer and an alpha to represet R,G,B, Alpha (0 - 1 or 0 to 255)
6) R,G,B = 0 to 255 or 0 to 1 as R,G,B
7) R,G,B,A = 0 to 255 or 0 to 1 as R,G,B,A where A is transparency, 0 is fully hidden and 1 or 255 is fully visible. This can be used to hide elements

# Help

- How do I reset the colors?
Change the script from Artificial Horizon to something else and then remove the category from the Custom Data tag or just reset Custom Data to nothing then reactivate the script and it'll load the default settings.

- How do I hide an element?
Add an alpha channel to your colour and set it to 0, for example 150,25,0 will become 150,25,0; #123456 to #12345600. If you want to just hide an element the quickest way is to do 0,0 which is R=0,G=0,B=0|A=0
11 Comments
the-cushy-geek 2 Oct, 2022 @ 2:21pm 
i have no custom data when the script it put on an lcd
VS-lockon 21 Nov, 2021 @ 6:16am 
warning pull up pull up I can't do that Dave :P
delsonbb 12 Sep, 2021 @ 12:09am 
Hi. Im encountering problems when using your mod. The script is not compatible with Takeshi's Advance Flight Module 2.0. Have you encountered this problem before?
Callum Carmicheal  [author] 15 Jan, 2021 @ 6:39pm 
@Rusty Shackleford I'm not sure, can you please try to recreate the error and let me know if it still happens. If it still does can you please message me through steam so I can see if i can figure out why.
Rusty Shackleford 12 Jan, 2021 @ 8:20pm 
Does this mod happen to have the same issue as the fast artificial horizon mod it's based off? I experienced crashing every time I tried to delete a programmable block with that mod enabled. Is this still the case?
Whiplash141 8 Jan, 2021 @ 12:21pm 
Yep, I looked at Keen's source the day these TSS scripts were made available (I have a .dll decompiler). The way Keen approached things is also the reason I spun up my own script. :)

"I don't believe this also shows a negative vector."

Correct, it looks like you need at least 0.1 m/s forward velocity to start displaying the prograde indicator.
Callum Carmicheal  [author] 8 Jan, 2021 @ 12:11pm 
If you want to know how Keen approached the issue, I have the code uploaded here: https://github.com/CallumCarmicheal/SE_RealtimeCustomizableArtificialHorizon/blob/main/Data/Scripts/CustomizableAH/TSSArtificialHorizon.cs#L346

Might shed some light onto how they approach the issue, I don't believe this also shows a negative vector.
Whiplash141 8 Jan, 2021 @ 10:29am 
Yeah I wasn't saying you were, I was
just addressingg the "true to where you are traveling" bit. I had experimented with that for mine and it turned out to be not feasible for in-game scripts since I couldn't tell where the viewers eyes were easily.

For a mod that runs clientside like this, it may be easier to do :)
Callum Carmicheal  [author] 8 Jan, 2021 @ 8:27am 
On note 3, I'm not saying that the velocity indicator is worse in your mod as I did not make any of this I just modified the original, In your script it is more useful as you can keep track of your velocity when its off screen. This script does not allow for that.

Also thanks for the feedback. Always learn something new.
Whiplash141 7 Jan, 2021 @ 6:11pm 
Oh and also you'd then need to convert that from meters to pixels based upon the screen size and pixel dimensions.