Archean

Archean

Otillräckligt med betyg
[ACE] Flight HUD (Sci-Fi Style)
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
390.267 KB
17 jul, 2024 @ 15:32
28 jul, 2024 @ 22:33
5 ändringsnotiser ( visa )

Abonnera för att ladda ner
[ACE] Flight HUD (Sci-Fi Style)

Beskrivning
Thank you to snjo in the Archean discord for your help.

----------------------------------------------------------------------------------

Here is a flight HUD that should work with any reasonably sized screen. Please report any bugs that break the HUD. Because of the dynamic nature of the code, some HUD elements might be in unusual places but should still be readable unless the screen is too small.

To properly integrate the HUD, use the Code IDE, not the Node IDE.
Minimum Recommended Screen Size: 100x80

Using a mini-computer might cause it to run the wrong script, resulting in a black screen. It's perfectly fine to use a normal computer if you prefer to avoid the complexities of a mini-computer. (I will update this once I figure out how to force-load a script on a mini-computer.)

----------------------------------------------------------------------------------
Integration Steps:

1. Dashboard with a screen alias "ace-hud"
2. Navigation Instrument with an alias "ace-navin"
3. Linear Velocity Sensor (place on CoM for accuracy) with an alias "ace-lvs"
4. Connect all devices to a computer or router.
5. Create a new script named "ace-hud" in your vehicles main computer and paste the contents of "ace-hud.main.xc" from my workshop blueprint into the new script.
6. In your vehicle's main script, add these lines at the top:


include "ace-hud.main.xc"
var $dashboardScreen = screen("ace-hud", INSERT YOUR SCREEN CHANNEL HERE)


7. Add this line in your tick or update function:


@updateHUD($dashboardScreen)

----------------------------------------------------------------------------------
Proper Usage When Uploading a Workshop Creation with any part of my Flight HUD code

You may copy, edit and repost any part of my flight HUD code in your workshop creation but you must credit me at the top of the description of the workshop post like this "Thank you ace-it for part or whole code for the HUD".
Using my code, you will also have to add a link to my HUD at the bottom of your workshop creation description.

The main part of your workshop item may not be a flight HUD, as this one is, unless: you post it privately, ask for my permission and I will have to review your workshop creation in its entirety before you post the workshop creation publicly.

----------------------------------------------------------------------------------
Fixing Common Problems

Black Screen:
For Mini Computer Only
If you get a black screen, ensure the right script is running. There are a few workarounds, here's my favorite method below:

Click into the 'ace-hud' script.
Press "Ctrl + A" then "Ctrl + C" a few times to ensure you copied it.
Delete the 'ace-hud' script.
Press "Ctrl + S" to save and check the log at the bottom of the IDE to ensure your vehicle script is running.
Create a new script named 'ace-hud' and press "Ctrl + V" to paste the contents.
Press "Ctrl + S" again to save and check the log at the bottom of the IDE to ensure your vehicle script is running.
6 kommentarer
ah  [skapare] 28 jul, 2024 @ 22:37 
update notes:
removed green line
added white FPM
updated pitch ladder with a ladder line at every 5 degrees
ah  [skapare] 28 jul, 2024 @ 1:34 
update notes:
actually made a horizon line just after a few minutes of realizing i had forgot what it was
ah  [skapare] 27 jul, 2024 @ 20:38 
If you have the old version integrated into your flying UFOs, copy and paste the new one into the 'ace-hud' script or wherever you have the ace-hud code
ah  [skapare] 27 jul, 2024 @ 20:33 
[Mini Computer Only] Make sure the right script is running if you get a black screen! There are a few workarounds for this! My favorite is:

click into the 'ace-hud' script
"ctrl + a" then "ctrl + c" a few times to ensure you copied it
delete the 'ace-hud' script
'ctrl + s' to save and read the log at the bottom of the IDE to ensure your vehicle script is running
make a new script named 'ace-hud' and "ctrl + v" inside of it
'ctrl + s' again to save and read the log at the bottom of the IDE to ensure your vehicle script is running
ah  [skapare] 27 jul, 2024 @ 20:23 
update notes:
Pitch ladder properly renders within the circle, now with a line every 10 degrees
Orange Horizon Line
The pitch ladder lines at 90 and -90 are now red
ah  [skapare] 26 jul, 2024 @ 17:53 
Also, you do not need to implement the hud into your vehicle script, you can keep the computer from the blueprint and solely use that one to control the hud.