Space Engineers

Space Engineers

221 ratings
[OUTDATED] Whip's Graphical Velocity Indicator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.513 KB
Jun 6, 2016 @ 4:02pm
Nov 7, 2016 @ 7:05pm
3 Change Notes ( view )

Subscribe to download
[OUTDATED] Whip's Graphical Velocity Indicator

In 1 collection by Whiplash141
Whip's Script Archive
5 items
Description
ATTENTION: This code has been functionally replaced by my Artificial Horizon Redux code! It retains all the functionality of this code with even more goodies (and better performance)!


Code has been restructured due to advances made in my artificial horizon code. You no longer need to set the text size, the code will do it for you. Also acceleration is now indicated. No additional setup is required!



This code creates a colored graphical representation of your velocity vector and displays it on a screen! It also displays your speed in blue at the bottom of the screen. The colors and size of the vector grid are configurable in the code.

This is primarily made for space flight! If you are flying in atmosphere use this code! It is an artificial horizon indicator with a built in velocity vector display :)


See the VIDEO for a detailed walkthrough.
  1. Make a program block and put this code in it
  2. Make a timer with actions:
    • "Trigger Now" itself
    • "Start" itself
    • "Run with default argument" the program from step 1
  3. Start the timer
  4. Find the control seat, cockpit, remote control, or passenger seat that you wish to
    measure the velocity of and add the name tag "Forward" somewhere in its name
  5. Find the Text Panel or LCD Panel that you want to display the data on and add the tag
    "Velocity" somewhere in the name of the block. Set the text size to 0.4 (default)
  6. Fly around and enjoy :)


The code is a bit messy as I had to get creative with how I added strings together! Thanks to user alex-theradarguy for his method of using the Xbox control symbols to make colored monospaced grids! If you notice any bugs, be sure to comment on the workshop page.

- Whiplash141
66 Comments
Voss Aug 26, 2019 @ 4:38am 
legacy favorite
AnsontheToad May 11, 2017 @ 9:31pm 
Whip, are you going to update this script with the advancements you've made with your artificial horizon script?
Dr Cedric Jan 15, 2017 @ 11:13am 
@McBain - when you open the terminal for the programmable block you want to use, click the edit button, then on the bottom click the browse workshop button. A list of your scripts should pop up and you can double click the one you want. Click check code button, then remember&exit button.. done!
McBain Jan 2, 2017 @ 4:49am 
Sorry guys, noob question. Where can I find the actual script code (Step 1: "Make a program block and put this code in it")? I subscribed in the Workshop but I can't find the code anywhere.
... I feel stupid...
ZEN Sep 11, 2016 @ 6:01pm 
This is quality work. I like the multi-colored symbols. I've been using another for a long time and while it matches the rest of my industrial looking displays- I can't help but think a real HUD would make things visually simple for ease of understanding.

I look forward to the magnitude-less version as it's the style I've been using up until this point.
Caffeinix Aug 12, 2016 @ 12:10am 
Awesome! Thank you! :D I also use your artificial horizon mod, so I'm very excited by this!
Whiplash141  [author] Aug 10, 2016 @ 10:08am 
@Caffeinix:
Upon playing around with the idea, I've decided to implement your suggestion :P

The magnitude-less vector is much more useful for my artificial horizon, so I have already implemented it there. I figured I might as well implement it in this one as well. I will update it soon.
Whiplash141  [author] Aug 10, 2016 @ 10:06am 
@o RawRaSauRus o:
Yes, on the timer there is a check box to turn off the timer noise. See time stamp 2:18 in my video :)
o RawRaSauRus o Aug 10, 2016 @ 6:06am 
Need Help it all works fine, apart from the sound the timer block is making when the prommgram is running is there a way to turn that off ? its like its running the code so fast i just have a high pitch sound that seems tobe coming from the timer
Whiplash141  [author] Jul 13, 2016 @ 12:06am 
@Caffeinix:
"Also, wouldn't increasing the max speed make the problem worse?"
Yes, I misspoke.

However, I am not interested in discarding information about magnitude. I might go back and add a toggleable function. Depends on how much work it is.